• Resolved Saket Jajodia

    (@dzire2dzine)


    Please assist with PHP 8.3

    [29-Apr-2025 00:43:23 UTC] PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/***/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-util.php on line 312

    [28-Apr-2025 01:07:26 UTC] PHP Deprecated: Creation of dynamic property WC_REST_WCCOM_Site_Installer_Error::$http_code is deprecated in /home/***/wp-content/plugins/woocommerce/includes/wccom-site/rest-api/class-wc-rest-wccom-site-installer-error.php on line 26

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Animesh Gaurav

    (@bizanimesh)

    Hey @dzire2dzine – These looks like a general PHP errors that occur when a function is deprecated or removed in a newer version of PHP.

    Could you please confirm where these errors are appearing? If the errors are appearing on your site, but it is not affecting Jetpack features then could you please make sure that WP Debug mode is disabled for your site in wp-config.php file. Here is how you can disable the Debug mode (in the this same page if you scroll little up, it shows how you can reach wp-config.php file).

    Thread Starter Saket Jajodia

    (@dzire2dzine)

    I don’t think it is apearing anywhere as eror dispaly is disabled, however I can’t disable the log as I need to keep track of all the errors that might occor at any point of time

    Hi @dzire2dzine

    Thanks for the reply and we do understand the need to track error logs.

    For more context, you’re seeing these warnings because the code is using functions in ways that are no longer recommended for future updates. This warning means that while the code may still work for now, it will no longer be considered a good practice, and future versions of PHP might remove this support completely. Usually, this is fixed when future plugin updates are released, so there’s no need to worry for now.

    To keep things running smoothly, make sure all your plugins are up to date. I also noticed that your site is using PHP version 8.2.27. The latest version is PHP 8.4.6, which is usually faster and more secure.

    I would suggest updating your PHP version at this point. Before doing so, please back up your website to keep everything safe.

    Hope this helps!

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

The topic ‘Deprecated stripos Passing null haystack’ is closed to new replies.