• Resolved ioet

    (@ioet)


    Hello, we’ve updated to php 8.0 as well as updated a bunch of plugins this week, and at the same time my website started giving a critical error on some pages of the site, i.e., we can’t even login on wp-admin. I’ve tried to restore manually with our backups, but then the critical error takes over the whole site.

    When I did the debug log, it says something like this (but there are 20+ more pages of it). Is this an error with the Theme? What else should I do to fix this?:

    [02-Apr-2024 14:58:57 UTC] PHP Fatal error: Cannot redeclare _inject_theme_attribute_in_block_template_content() (previously declared in /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/block-template-utils.php:429) in /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/deprecated.php on line 6055
    [02-Apr-2024 14:58:57 UTC] PHP Fatal error: Uncaught Error: Call to undefined function filter_block_content() in /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/formatting.php:5226
    Stack trace: 0 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/class-wp-hook.php(324): wp_pre_kses_block_attributes() 1 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/plugin.php(205): WP_Hook->apply_filters() 2 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/kses.php(946): apply_filters() 3 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/kses.php(754): wp_kses_hook() 4 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/functions.php(6028): wp_kses() 5 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/functions.php(5975): wp_trigger_error() 6 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/query.php(882): _doing_it_wrong() 7 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/robots-template.php(93): is_embed() 8 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/class-wp-hook.php(324): wp_robots_noindex_embeds() 9 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/plugin.php(205): WP_Hook->apply_filters() 10 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/robots-template.php(32): apply_filters() 11 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/functions.php(3841): wp_robots() 12 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/functions.php(3763): _default_wp_die_handler() 13 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/class-wp-fatal-error-handler.php(239): wp_die() 14 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/class-wp-fatal-error-handler.php(154): WP_Fatal_Error_Handler->display_default_error_template() 15 /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/class-wp-fatal-error-handler.php(58): WP_Fatal_Error_Handler->display_error_template() 16 [internal function]: WP_Fatal_Error_Handler->handle() 17 {main}

    thrown in /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/formatting.php on line 5226
    [02-Apr-2024 14:59:08 UTC] PHP Fatal error: Cannot redeclare _inject_theme_attribute_in_block_template_content() (previously declared in /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/block-template-utils.php:429) in /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/deprecated.php on line 6055
    [02-Apr-2024 14:59:08 UTC] PHP Fatal error: Uncaught Error: Call to undefined function filter_block_content() in /home/ib0ui7bouupz/public_html/tokyoesque.com/wp-includes/formatting.php:5226

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    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 (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Hopefully, this will force the default theme to activate and rule out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter ioet

    (@ioet)

    Unfortunately, neither of those options worked. The first one did not change anything. The second one made the whole website not even load. Any other ideas?

    Thread Starter ioet

    (@ioet)

    FYI, the issue definitely seems to be some sort of compatibility issue with Shapely and our recent updates (wordpress, plugins, php).

    I have managed to get rid of the Critical Error by using my Updraft restore to put back the database & plugin files. When I did the Themes, it gave the critical error again. At this point the debug file was showing a different error which seems to be related to PHP 8.0 conflicts with the Shapely theme, but they were easily fixable. Now the site is working again and not reproting any errors but we do have issues displaying the widgets on front page & blog page. I will report back if we manage to fix this.

    Moderator Support Moderator

    (@moderator)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical Error & debug log help’ is closed to new replies.