• At present I am running PHP 7.4

    I would like to upgrade to 8.0 or higher as some of my plugins are starting to request it. Also Vodien the hosting company ran a script and changed the site to 8.4 and it crashed.

    When the PHP is changed – the website appears to crash when an item is added to cart in woocommerce or if I try to login to WP-ADMIN. I get a critical error. It appears that general browsing keeps the site alive for a short periord, but then it crashes (I assume that caching could cause this). I have tried updating all plugins.

    Fault finding
    Thinking it is a plugin issue – I cloned my site and then disabled all plugins, but issue is still present. I have tried using the default Theme incase it is a Theme issue but issue still exists.

    I tried to look at the error logs but no issue seems to show up that refers to PHP or the time of the crash. I assume it is not being logged or maybe I am looking at the wrong file.

    Last week this error message came up, (see below) however when I remove the plugin referred to in the message then a different plug in gets referred to. Which makes me question the validity ot the errorausing the error , the error just seems to just refer to a differnt plugin.

    Fatal error: Uncaught Error: Call to undefined function json_decode() in /home/absolut8/public_html/biomintoothpaste.com.au/wp-content/plugins/js_composer/include/classes/core/class-autoload-manager.php:38 Stack trace: #0 /home/absolut8/public_html/biomintoothpaste.com.au/wp-content/plugins/js_composer/include/classes/core/class-vc-manager.php(358): Vc_Autoload_Manager->load() #1 /home/absolut8/public_html/biomintoothpaste.com.au/wp-content/plugins/js_composer/js_composer.php(41): Vc_Manager->loadComponents() #2 /home/absolut8/public_html/biomintoothpaste.com.au/wp-settings.php(453): include_once(‘/home/absolut8/…’) #3 /home/absolut8/public_html/biomintoothpaste.com.au/wp-config.php(93): require_once(‘/home/absolut8/…’) #4 /home/absolut8/public_html/biomintoothpaste.com.au/wp-load.php(50): require_once(‘/home/absolut8/…’) #5 /home/absolut8/public_html/biomintoothpaste.com.au/wp-admin/admin.php(34): require_once(‘/home/absolut8/…’) #6 /home/absolut8/public_html/biomintoothpaste.com.au/wp-admin/index.php(10): requir in /home/absolut8/public_html/biomintoothpaste.com.au/wp-content/plugins/js_composer/include/classes/core/class-autoload-manager.php on line 38

    Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/absolut8/public_html/biomintoothpaste.com.au/wp-includes/functions.php on line 5865

    Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/absolut8/public_html/biomintoothpaste.com.au/wp-includes/functions.php on line 5865

    I am not overly technical, so a simple explanation if possible would be appreciated.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • WordPress 6.7 itself works fine with PHP 8.4. I have several sites running on 8.4 and haven’t seen any issues (other than the usual warnings and notices). Certainly no fatal errors.

    If you’re seeing a fatal error with PHP 8.4 on plain vanilla WordPress 6.7.2 with just the default Twenty Twenty-Five theme and NO plugin active (not a single plugin nor a must-use plugin!), then the only thing I can think of is perhaps a required PHP extension is not available.

    But perhaps 8.0 (I’d go 8.2) would be a safer bet for you. Here’s the official WordPress/PHP compatibility table: https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

    Note that PHP notices and warnings are a part of life. They’re meant for developers, and they shouldn’t break your site. The only thing you should do is ensure they’re not displayed on your public website… but, in most cases, you can safely ignore them (unless you’re the developer).

    Fatal errors break sites. And from the logs you provided, the only fatal error is from the JS Composer (aka WPBakery plugin). This is a commercial plugin that’s often bundled with commercial themes. If you want to continue to use this plugin, then report the issue to the vendor, as they’re the ones to fix issues with their product: https://support.wpbakery.com/

    Hey @aussieles
    As I can see you were facing issue with the JS Composer. This may be you need to update your theme and Js Composer plugin.

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

The topic ‘PHP 7.4 to 8.0+ Critical Error’ is closed to new replies.