Thanks for your quick response. Here is the full log whenever I try to show a live preview of theme 2023.
I could not see how to attach a file to this post, so hope an embed is OK.
[05-Oct-2023 22:44:36 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /home/patgennz/public_html/wp2021/wp-includes/capabilities.php:877
Stack trace:
#0 /home/patgennz/public_html/wp2021/wp-includes/theme-previews.php(17): current_user_can('switch_themes')
#1 /home/patgennz/public_html/wp2021/wp-includes/class-wp-hook.php(310): wp_get_theme_preview_path('tempera')
#2 /home/patgennz/public_html/wp2021/wp-includes/plugin.php(205): WP_Hook->apply_filters('tempera', Array)
#3 /home/patgennz/public_html/wp2021/wp-includes/theme.php(317): apply_filters('template', 'tempera')
#4 /home/patgennz/public_html/wp2021/wp-includes/theme.php(328): get_template()
#5 /home/patgennz/public_html/wp2021/wp-includes/l10n.php(1306): get_template_directory()
#6 /home/patgennz/public_html/wp2021/wp-includes/l10n.php(1331): _load_textdomain_just_in_time('wp-photo-album-...')
#7 /home/patgennz/public_html/wp2021/wp-includes/l10n.php(185): get_translations_for_domain('wp-photo-album-...')
#8 /home/patgennz/public_html/wp2021/wp-includes/l10n.php(297): translate('General', 'wp-photo-album-...')
#9 /home/patgennz/public_html/wp2021/wp-content/plugins/wp-photo-album-plus/wppa-setting-see-also.php(15): __('General', 'wp-photo-album-...')
#10 /home/patgennz/public_html/wp2021/wp-content/plugins/wp-photo-album-plus/wppa-init.php(75): require_once('/home/patgennz/...')
#11 /home/patgennz/public_html/wp2021/wp-content/plugins/wp-photo-album-plus/wppa.php(15): require_once('/home/patgennz/...')
#12 /home/patgennz/public_html/wp2021/wp-settings.php(462): include_once('/home/patgennz/...')
#13 /home/patgennz/public_html/wp2021/wp-config.php(89): require_once('/home/patgennz/...')
#14 /home/patgennz/public_html/wp2021/wp-load.php(50): require_once('/home/patgennz/...')
#15 /home/patgennz/public_html/wp2021/wp-admin/admin.php(34): require_once('/home/patgennz/...')
#16 /home/patgennz/public_html/wp2021/wp-admin/site-editor.php(12): require_once('/home/patgennz/...')
#17 {main} thrown in /home/patgennz/public_html/wp2021/wp-includes/capabilities.php on line 877
The trace mentions both my active theme ‘tempera’ and plugin wp-photo-album-plus, but disabling these makes no difference.
Running PHP 8.1.21
Andy