• Resolved Maxime Michaud

    (@maximemichaud)


    I am currently running PHP 8.1 on my WordPress site and have encountered multiple PHP deprecation warnings when using the latest version of the Weglot plugin. These warnings are due to the use of null values in functions that expect string parameters. Here are the specific log entries:

    [02-Jul-2024 18:26:57 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/dev-prod/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Server.php on line 55
    [02-Jul-2024 18:26:57 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/dev-prod/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Text.php on line 26
    [02-Jul-2024 18:17:48 UTC] PHP Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /var/www/dev-prod/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Text.php on line 53

    Request: Could the Weglot development team please investigate these deprecation warnings and consider updating the plugin for better compatibility? Addressing these issues will help ensure future compatibility with newer PHP versions. Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @maximemichaud ,

    thanks for your message it’s help. This issue are still wip on our side and it will fix on our next release.

    Don’t hesitate if you’ve another feedbacks

    Regards

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    The new release is not plan for now so if you need a beta version with the fix let me know

    Regards

    Thread Starter Maxime Michaud

    (@maximemichaud)

    Hi,

    Thank you for your prompt reply.

    I appreciate the update regarding the progress on resolving the deprecation warnings. Could you please provide an estimated release date for the new version that includes these fixes?

    Thank you for your support.

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi,

    glad to help you. We hope release the new version of the plugin during August.
    Here the current version we work on it : https://we.tl/t-yt4E6J8YvE, it fix the issue you’re facing.

    Don’t hesitate if you’ve some feedbacks

    Regards

    Thread Starter Maxime Michaud

    (@maximemichaud)

    Hello,

    Thank you for addressing the issue with the plugin update. We have automatic updates enabled, so I wanted to confirm: will the new update scheduled for release in August automatically apply?

    Looking forward to your confirmation.

    Best regards,

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @maximemichaud

    yes sure, all the update provide in the plugin i share you would be automatically apply in the next release so they will be present in the next update
    Regards

    Thread Starter Maxime Michaud

    (@maximemichaud)

    That’s perfect, thank you for everything!

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    hi @maximemichaud ,

    If you appreciated my help and if you have 2 minutes to help me, it would be awesome if you could give us a review on WordPress
    —-> https://ww.wp.xz.cn/support/plugin/weglot/reviews/
    It’s really useful for me :intello:

    And of course, if you need anything, don’t hesitate to ask me.

    Have a nice day,

    Regards,

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

The topic ‘Deprecated PHP Functions in Weglot Plugin’ is closed to new replies.