WordPress 5 - 6 always results in "critical error"

Soldato
Joined
17 Jul 2008
Posts
7,391
i can get the site working with WordPress 5.1.18 & PHP 5.5 (i have upgraded it from WP 3.x)

but it always breaks when i move to wordpress (latest) - and upgrade the PHP version on the web provider (IONOS), i tried Hostinger but that does the same

"There has been a critical error on this website"

its just a simple 5 page web site with a contact form!

any help much appreciated
 
Last edited:
Enable wp_debug and wp_debug_log, look at wp-content/debug.log to see if anything gets logged there. https://wordpress.org/support/article/debugging-in-wordpress/

i guess there is some HTML formatting error that v5 did not care about but v6 does?

'Footer Wide First Column', 'id' => 'footer-wide-col-1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '​

', )); ?>
This is a preview of a website by a customer of Hostinger
There has been a critical error on this website.
 
There will be a syntax error in one of your plugins or theme due to the php upgrade.

Get a print of the error and ask chatgpt what it means and which file its likely to be in.

The host doesn't matter, when upgrading php, all third party modules and your theme files must be updated too.

Thats a pretty big php version jump.

Dm me the error if you’re struggling and I’ll look it over to see if I can give you a pointer.
 
i guess there is some HTML formatting error that v5 did not care about but v6 does?

'Footer Wide First Column', 'id' => 'footer-wide-col-1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '​

', )); ?>
This is a preview of a website by a customer of Hostinger
There has been a critical error on this website.
Is this the error that the wp debug thing printed?

Suggest you tidy up the formatting of the functions.php file in your theme(according to google, every theme should have one?)

Search for footer-wide-col-1 or something in your file and copy that entire array into a text editor and clean it up. Should look something like this:

b558TFI.png
 
Last edited:
There will be a syntax error in one of your plugins or theme due to the php upgrade.

Get a print of the error and ask chatgpt what it means and which file its likely to be in.

The host doesn't matter, when upgrading php, all third party modules and your theme files must be updated too.

Thats a pretty big php version jump.

Dm me the error if you’re struggling and I’ll look it over to see if I can give you a pointer.

dam, thanks i think gpt fixed it (nearly) need to test a little more, i just posted it the error log
 
Back
Top Bottom