Hi,
referring to (@nhdwordpressorg) … this is exactly what happened to one of our clients websites. The fatal error must have occurred with an automatic update to WordPress 5.9 on January 26th,2022. We received an email saying that there are problems with this special website. We couldn’t get access via wp-admin. To solve the problem we: purchased a more extensive webspace, the host said, we should wait a day until all everything should be transferred to the new hosting-package. Yesterday we discovered, that there was no way to get into the dashboard. The fatal error is this:
Fatal error: Uncaught Error: Call to undefined function wp_is_block_theme() in /homepages/29/d196894685/htdocs/clickandbuilds/SRDAnwlteundNotare/wp-admin/menu.php:205 Stack trace: #0 /homepages/29/d196894685/htdocs/clickandbuilds/SRDAnwlteundNotare/wp-admin/admin.php(158): require() #1 /homepages/29/d196894685/htdocs/clickandbuilds/SRDAnwlteundNotare/wp-admin/index.php(10): require_once('/homepages/29/d...') #2 {main} thrown in /homepages/29/d196894685/htdocs/clickandbuilds/SRDAnwlteundNotare/wp-admin/menu.php on line 205
... in menu.php on line 205 looks like this...
if ( wp_is_block_theme() ) {
$submenu['themes.php'][6] = array(
sprintf(
/* translators: %s: "beta" label */
__( 'Editor %s' ),
'<span class="awaiting-mod">' . __( 'beta' ) . '</span>'
),
'edit_theme_options',
'site-editor.php',
);
}
As (@nhdwordpressorg) says: “…strange thing is, the website is still viewable. I just have no access to the backend and receive a ‘critical error’ when trying to access.
When logged in I still see the WP admin bar on top. All the links cause ‘critical errors’…”
The other things we tried for solving the problem:
– update from php 7.3 to php 7.4
– disable all plugins
– change password
– last storage of the website dates January 28th, 2022, unfortunatly 2 days after the error must have occurred.
We are very much looking forward to a solution for this problem.