[wp-trac] [WordPress Trac] #59013: Fatal error while trying to preview Block themes from the Appearance> Themes panel
WordPress Trac
noreply at wordpress.org
Wed Aug 9 03:39:09 UTC 2023
#59013: Fatal error while trying to preview Block themes from the Appearance>
Themes panel
--------------------------------+-----------------------------
Reporter: shivashankerbhatta | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.3
Severity: critical | Keywords:
Focuses: |
--------------------------------+-----------------------------
I recently upgraded my WordPress installation to version 6.3 and
encountered a challenge when attempting to preview the Block theme Twenty
Twenty-Three. The error message I received is as follows:
{{{
Fatal error: Uncaught Error: Call to undefined function
wp_get_current_user() in /Applications/MAMP/htdocs/theme-review/wp-
includes/capabilities.php:877 Stack trace: #0 /Applications/MAMP/htdocs
/theme-review/wp-includes/theme-previews.php(17):
current_user_can('switch_themes') #1 /Applications/MAMP/htdocs/theme-
review/wp-includes/class-wp-hook.php(310)
}}}
Interestingly, I performed tests on alternative setups and attempted to
preview different Classic Themes, where everything worked as expected, But
no luck for the Block Themes. I was wondering if any fellow users have
come across a similar issue and if there are any insights or solutions
available.
Thank you very much for your time and assistance. I truly appreciate any
guidance you can provide in resolving this matter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59013>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list