• UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in wp-content/plugins/subscribe-to-comments-reloaded/templates/request-management-link.php on line 87

    You define $post_permalink as null and pass it to strpos() function. I suggest defining the variable (line 12) as an empty string to avoid such misunderstandings:

    $post_permalink = ”; // instead $post_permalink = null;

    And change code in line 242:

    if ( isset( $post_permalink ) )

    To:

    if ( $post_permalink !== ” )

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TinyPNG

    (@tinypng)

    Hi Mikhail,

    Thanks for your suggestion. We took a look, but we couldn’t find the code you mentioned in our repository.

    After some further investigation, we discovered that the code is actually located in a PHP library called “subscribe-to-comments-reloaded,” which we aren’t currently using in our plugin.

    Did you perhaps mean to send this message to the creator of that library? If not, could you please let us know where you found this code in our plugin?

    Thanks again for your help! We appreciate your cooperation.

    Thread Starter Mikhail Alferov

    (@malferov)

    You’re right. I was wrong.

    Thread Starter Mikhail Alferov

    (@malferov)

    @tinypng Here some deprecation:

    PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in wp-content/plugins/tiny-compress-images/src/vendor/tinify/Tinify/Client.php on line 31

    PHP Deprecated: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in wp-content/plugins/tiny-compress-images/src/class-tiny-bulk-optimization.php on line 102

    Plugin Author Tinify

    (@tinify)

    Hi Mikhail,

    Thank you for your cooperation in making Tinify code the best it can be.
    We will address this deprecation in out next version release.

    seanhalley

    (@seanhalley)

    I am seeing this too. Do you know when this will be fixed please?

    • Error Level: E_DEPRECATED
    • Message: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated
    • File: /bitnami/wordpress/wp-content/plugins/tiny-compress-images/src/class-tiny-bulk-optimization.php
    • Line: 102
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Deprecated on PHP 8.1’ is closed to new replies.