• Resolved nhdwordpressorg

    (@nhdwordpressorg)


    Hi,

    Since updating this site to WordPress 5.9 I have had no access to the backend (dashboard).

    I have tried

    ??Adding more memory to the PHP
    ??Deactivating all plugins
    ??Reverting the theme to Twenty Twenty One
    ??Trying PHP 7.4, 8.0 and 8.1

    Strange thing is, the website is still viewable without issue. 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’ apart from EDIT WITH BRIZY, where I can edit the page design.

    I can log out using the WP admin bar and it directs me to the wp-admin page where I can log back in. BUT it then shows a ‘critical error’ whilst trying to direct to the backend (dashboard). But the site is still live…

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    I just have no access to the backend and receive a ‘critical error’ when trying to access.

    Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host. Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://www.ads-software.com/support/article/debugging-in-wordpress/

    You can also try disabling plugin/theme:
    – Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.
    – If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Also review https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-critical-error-in-wordpress/

    Thread Starter nhdwordpressorg

    (@nhdwordpressorg)

    Hi,

    I activated the debug but don’t overly understand. If you take a look at the site now you’ll see the debug messages.

    Note, all plugins are deactivated by moving them to a new folder. The theme I was using was moved to a new folder and now ‘Twenty Nineteen’ is activated.

    Thoughts?

    Moderator t-p

    (@t-p)

    Do get same error on PHP 7.4 ? My understanding is PHP8.1 which isn’t fully supported

    Also, did you auto update to 5.9?

    • This reply was modified 3 years, 2 months ago by t-p.
    Thread Starter nhdwordpressorg

    (@nhdwordpressorg)

    If I roll back to 7.4 the way changes to this

    Fatal error: Uncaught Error: Call to undefined function wp_is_block_theme() in /home/nerdhous/pubmontfort.nerdhousedesign.com/wp-admin/menu.php:205 Stack trace: #0 /home/nerdhous/pubmontfort.nerdhousedesign.com/wp-admin/admin.php(158): require() #1 /home/nerdhous/pubmontfort.nerdhousedesign.com/wp-admin/index.php(10): require_once(‘/home/nerdhous/…’) #2 {main} thrown in /home/nerdhous/pubmontfort.nerdhousedesign.com/wp-admin/menu.php on line 205

    My site didn’t autoupdate. I clicked ‘UPDATE TO 5.9’ in the dashboard as it had worked on all 20 other my other sites perfectly. Just failed on 2-3.

    Moderator t-p

    (@t-p)

    I clicked ‘UPDATE TO 5.9’ in the dashboard as it had worked on all 20 other my other sites perfectly. Just failed on 2-3

    To troubleshoot these "Just failed on 2-3", Please review 5.9 Master List and attempt troubleshooting outlined therein.

    Moderator t-p

    (@t-p)

    FYI:

    Looking at the error at your site, they all are deprecation notices

    WordPress is not fully compatible with PHP 8.0 or 8.1. All remaining known PHP 8.1 issues are deprecation notices.

    See this for more https://make.www.ads-software.com/core/2022/01/10/wordpress-5-9-and-php-8-0-8-1/

    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.

    Thread Starter nhdwordpressorg

    (@nhdwordpressorg)

    Thanks for the reply.

    The next day I logged into my hosting CPanel and noticed that the websites were still on a previous version of WP. Strange considering I’d updated them in the dashboard. But I clicked update in my CPanel and everything worked again.

    I’m guessing the Dashboard update errored.

    All sites are working now.

    Hi, thank you for your reply too. I am afraid I am not that fortunate. My host says, they cannot refer to a previous version of WP. Any idea, how I could manage to get into the dashboard – via a trick, a gap?

    Thread Starter nhdwordpressorg

    (@nhdwordpressorg)

    Sorry I don’t… I was stuck until I saw the CPanel

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WordPress 5.9 – wp-admin access problem’ is closed to new replies.