• Resolved vixperth

    (@vixperth)


    I am developing a site, so it does not have a url you can visit, however I have just installed The Events Calendar and I have two PHP deprecation notices:

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in \Local Sites\xxx\app\public\wp-includes\functions.php on line 7360

    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in \Local Sites\xxx\app\public\wp-includes\functions.php on line 2195

    I have deactivated every plugin except this one and returned it to the Twenty Twenty Five theme, but the notices are still there.

    I am on PHP 8.3.11. I have tried PHP 8.2.23 and the notices are still there, but if I change to 8.1.29 they go away.

    Query Monitor shows this

    • This topic was modified 10 months, 3 weeks ago by vixperth.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @vixperth ,

    Thank you for reaching out.

    These are deprecation notices. Apart from these notices, are there any functionalities that are not working for you?

    If you are working on a production site, I recommend getting these notices suppressed from being shown on the screen by adjusting your server’s PHP configuration. Your WebHost should be able to assist you on this.

    Our products team are aware of these deprecation notices (due to PHP version updates) and are working through them via our regular maintenance releases of the plugin (see PHP 8.x: Understanding what the Deprecation notices mean).

    Thread Starter vixperth

    (@vixperth)

    It is not a production site, it is a development site, so I need debugging turned on to assist in identifying any issues I have.

    Although they do not stop anything from working, they mess up the admin screen a bit, which makes it a bit more difficult to work with.

    Plugin Support tristan083

    (@tristan083)

    Hi @vixperth ,

    Thank you for your message and the information.

    Are you referring to the notices appearing on the screen? If yes, I’d recommend disabling the display of errors and warnings and instead opt for logging these on a log file (see Debugging in WordPress) for the time being.

    Plugin Support Darian

    (@d0153)

    Hi there,

    I hope you’re doing well. I just wanted to touch base and check in with you. It’s been a little while since we’ve heard from you. I was just curious if you had the chance to try out the recommendation provided above.

    Let me know if there’s anything I can assist you with.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It looks like we haven’t heard back from you in a while, so I’ll go ahead and close this thread for now. If you need further assistance, feel free to reopen it or start a new thread.

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

The topic ‘PHP Deprecation notices’ is closed to new replies.