• Resolved acsafrica

    (@acsafrica)


    Well i get tens of these errors periodically on PHP 8.4 causing website to become unresponsive many times a day 1732851:[19-Sep-2025 05:23:00 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) oftype string is deprecated in /home/example/public_html/wp-content/plugins/woocommerce/includes/libraries/class-wc-eval-math.php on line 162

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi @acsafrica,

    I understand you’re experiencing frequent PHP deprecation errors on PHP 8.4 that are causing your website to become unresponsive. This specific error in the WooCommerce eval-math library is related to PHP 8.4’s stricter handling of null values.

    Here are some steps to help:

    • Make sure you’re running the latest version of WooCommerce, as newer versions often include PHP 8.4 compatibility fixes.
    • If these messages are causing your site to become unresponsive, you can temporarily suppress them by adjusting your wp-config.php file:
    error_reporting(E_ALL & ~E_DEPRECATED);
    

    This won’t fix the root cause, but it will prevent the warnings from flooding your logs and affecting performance.

    • If the it’s persistent and critical, consider downgrading PHP until WooCommerce releases a patch for full 8.4 compatibility.

    Let me know how it goes!

    Plugin Support thelmachido a11n

    (@thelmachido)

    It’s been a while since we heard back from you @acsafrica for this reason we are closing this thread. 

    If WooCommerce has been useful for your store and you appreciate the support you’ve received, we’d truly appreciate it if you could leave us a quick reviewhere: 

     https://wordpress.org/support/plugin/woocommerce/reviews/#new-post 

    Feel free to open a new forum topic if you run into any other problem. 

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

The topic ‘PHP 8.4 compatibility’ is closed to new replies.