• Resolved Tom

    (@godsdead)


    When I switch from PHP 7.4 to PHP 8.1 I get a bunch of errors in my footer caused by Jetpack, why is this not updated to 8.1 yet?

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/username/public_html/wp-content/plugins/jetpack/functions.compat.php on line 77
    
    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/username/public_html/wp-content/plugins/jetpack/modules/photon-cdn.php on line 75
    
    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/username/public_html/wp-content/plugins/jetpack/functions.compat.php on line 77
    
    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/username/public_html/wp-content/plugins/jetpack/functions.compat.php on line 77
    
    Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/username/public_html/wp-includes/formatting.php on line 2761
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hey @godsdead,

    Thanks for reporting this. These notices are not errors. They are deprecations, so everything should be still working as expected.

    You may see such notifications on development when running with WP_DEBUG turned on, however, the good news is that PHP functionality should have not changed, meaning that should be working fine as usual, especially if you check this on a production environment with WP_DEBUG turned off.

    If that doesn’t resonate with you, I’d like to take a closer look at your site; could you post your site URL here?
    ?
    If you want it to remain private, you can also contact us via this contact form:
    Contact Support. Thanks!

    Thread Starter Tom

    (@godsdead)

    How strange as I don’t have WP_DEBUG on, hmmm

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', false );
    

    Is set in my wp-config.php

    Edit, I just found define( 'WP_DEBUG_DISPLAY', false ); So I will try that, not sure why this would display if the debug is false.

    • This reply was modified 3 years ago by Tom.
    • This reply was modified 3 years ago by Tom.
    Thread Starter Tom

    (@godsdead)

    Did not work, I even tried the lot:

    define( 'WP_DEBUG', false );
    define( 'WP_DEBUG_DISPLAY', false );
    ini_set('display_errors','Off');
    ini_set('error_reporting', 0 );

    Still showing Deprecated errors.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Errors with PHP 8.1’ is closed to new replies.