• 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)
Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.