#59013 closed defect (bug) (worksforme)
Fatal error while trying to preview Block themes from the Appearance> Themes panel
Reported by: | shivashankerbhatta | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.3 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
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.
Change History (3)
#2
@
15 months ago
- Resolution set to worksforme
- Status changed from new to closed
Hi again,
Thank you for your update. I appreciate your diligence in investigating the issue further. It's good to know that the root cause of the problem has been identified as a third-party plugin that might not be fully compatible with WordPress version 6.3 codes.
Thanks again
#3
@
15 months ago
- Keywords reporter-feedback removed
- Milestone Awaiting Review deleted
- Severity changed from critical to normal
Seems to be a duplicate of #59000 / https://github.com/WordPress/gutenberg/issues/53284.
Hello, welcome to WP Core Trac and thanks for the ticket,
I wasn't able to reproduce the issue on my side when previewing TT3 after having activated another theme. Could you please provide the exact steps to reproduce the issue? Are you using the Site Editor live preview?