• Resolved slavikcz

    (@slavikcz)


    Hello,

    I got this in error log, is generate about 80 lines per second making huge error log file. Have anyone resolved?

    Woocommerce version: 6.9.4
    Wordpress: 6.0.2
    Php : 8.1.6

    [29-Sep-2022 18:34:43 UTC] PHP Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/wp-content/plugins/woocommerce/includes/wc-page-functions.php on line 139

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Saif

    (@babylon1999)

    Hello @slavikcz,

    I got this in error log, is generate about 80 lines per second making huge error log file. Have anyone resolved?

    Can you please change your PHP version to 7.4? If that didn’t work, please share a copy of your site’s System Status.

    You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Look forward to hearing back from you!

    I have the same error. Returned php 7.4 and the error was gone.
    Now live with this version of php?

    Saif

    (@babylon1999)

    Hello @efimov2025,

    Please make your own thread in the future as we need to address each case individually.

    That said, the mentioned so-called “error” is just a notice. It’s not breaking anything, you can just ignore it for now.

    There’s already an open Github report about this topic here, you’re more than welcome to comment and add your suggestions there.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Deprecated on wc-page-functions.php’ is closed to new replies.