• Hello, I’ve updated to php 8.0 and the same week my website started giving me a critical error on some pages of the site. 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
    Stack trace:

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    I also have experienced the “fatal error.” I am not internet smart enough to figure this out. WordPress tels me to call Bluehost. Bluehost tells me to call Shapely. Shapely takes me back to WordPress.

    What a shitstorm

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shapely in PHP 8.0 Critical Error’ is closed to new replies.