• Resolved kwdavids

    (@kwdavids)


    I can access my site content ok, and I can login. When logged in the site shows the admin toolbar across the top, but when I try to access wp-admin, I get:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    1. No changes to the site in a long time.
    2. No email was sent to the admin email address
    3. Renaming the wp-content\plugins via FTP didn’t help.
    4. Nothing in wp-admin error_log since 2017.
    5. Nothing in plugins error_log since 2018.
    6. The admin header bar on the site says there are 6 updates pending.
    7. Host system error logs for today are empty
    8. Site is running WordPress 6.0.3.

    I turned on debug mode and received the following. I assume much of it is because I use a really old theme, and the other may relate to my disabling the caching plug-in for this debugging effort. Here’s the debug info:

    Warning: include_once(/home/dh_k68wyz/obots.org/wp-content/plugins/comet-cache/src/includes/stub.php): Failed to open stream: No such file or directory in /home/.../obots.org/wp-content/advanced-cache.php on line 36
    
    Warning: include_once(): Failed opening '/home/dh_k68wyz/obots.org/wp-content/plugins/comet-cache/src/includes/stub.php' for inclusion (include_path='.:') in /home/.../obots.org/wp-content/advanced-cache.php on line 36
    
    Deprecated: Creation of dynamic property wpdb::$categories is deprecated in /home/.../obots.org/wp-includes/wp-db.php on line 760
    
    Deprecated: Creation of dynamic property wpdb::$post2cat is deprecated in /home/.../obots.org/wp-includes/wp-db.php on line 760
    
    Deprecated: Creation of dynamic property wpdb::$link2cat is deprecated in /home/.../obots.org/wp-includes/wp-db.php on line 760
    
    Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/.../obots.org/wp-includes/comment-template.php on line 1747
    
    Notice: Function register_sidebar was called incorrectly. No id was set in the arguments array for the "north_sidebar" sidebar. Defaulting to "sidebar-1". Manually set the id to "sidebar-1" to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/.../obots.org/wp-includes/functions.php on line 5825
    
    Notice: Function register_sidebar was called incorrectly. No id was set in the arguments array for the "south_sidebar" sidebar. Defaulting to "sidebar-2". Manually set the id to "sidebar-2" to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/.../obots.org/wp-includes/functions.php on line 5825
    
    Notice: Function register_sidebar was called incorrectly. No id was set in the arguments array for the "west_sidebar" sidebar. Defaulting to "sidebar-3". Manually set the id to "sidebar-3" to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/.../obots.org/wp-includes/functions.php on line 5825
    
    Notice: Function register_sidebar was called incorrectly. No id was set in the arguments array for the "east_sidebar" sidebar. Defaulting to "sidebar-4". Manually set the id to "sidebar-4" to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/.../obots.org/wp-includes/functions.php on line 5825
    
    Deprecated: Creation of dynamic property WP_Block_Type::$skip_inner_blocks is deprecated in /home/.../obots.org/wp-includes/class-wp-block-type.php on line 391
    
    Deprecated: Creation of dynamic property WP_Block_Type::$skip_inner_blocks is deprecated in /home/.../obots.org/wp-includes/class-wp-block-type.php on line 391

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Faisal Ahammad

    (@faisalahammad)

    I fixed a similar issue a few weeks ago. Check the functions.php and sidebar.php files. I believe the register_sidebar function has the issue. Your theme code is backdated/deprecated now.

    1. First, make a complete backup of your site.
    2. Then, create a staging site and restore the backup there.
    3. Then upgrade the WordPress core and all other plugins.
    4. Enable WP DEBUG and check what else is not working/deprecated.
    5. Search by the warning message on Google, and you’ll find a solution.

    Keep me posted if you are stuck with a specific error/issue.

    Notice: Function register_sidebar was called incorrectly. No id was set in the arguments array for the “north_sidebar” sidebar. Defaulting to “sidebar-1”. Manually set the id to “sidebar-1” to silence this notice and keep existing sidebar content.

    Thread Starter kwdavids

    (@kwdavids)

    Thank you for your advice. I had not realized that a faulty theme (one that was working OK to display the site) could prevent wp-admin from working, but that was indeed the case with my site.

    Since the site is old and no longer being updated, I decided that rather than fighting the theme, I would just replace it with my old favorite Twenty Ten.

    The particular steps I took were to backup the site, and then do a manual WordPress upgrade from 6.0.3 to 6.2. (That didn’t fix anything, but I had to try it). Then I renamed the inove theme, and after that I was able to access the wp-admin functions where I could select a new theme.

    And really, the the Twenty Ten theme with its default image of someone walking away down the road, is a good one for a site that has served its purpose and is now only a historical reminder.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘“There has been a critical error on this website. ” when accessing wp-admin’ is closed to new replies.