Deprecated PHP Functions in Weglot Plugin 2
-
Hello,
I am currently running PHP 8.1 on my WordPress site and am still encountering multiple PHP deprecation warnings with the latest version of the Weglot plugin, despite previous resolutions. These warnings concern the use of null values in functions that expect string parameters, indicating ongoing compatibility issues with PHP.
Here are the specific log entries indicating deprecation:
PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/*****/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Url.php on line 292
PHP Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/*****/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Parser.php on line 561
PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/*****/wp-content/plugins/weglot/src/services/class-request-url-service-weglot.php on line 65
PHP Warning: Undefined array key "source_before_callback" in /var/www/*****/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Parser.php on line 561Request: Could the Weglot development team please re-investigate these deprecation warnings and consider further updates to enhance compatibility with newer PHP versions? Addressing these persistent issues is crucial for ensuring that the plugin remains functional and efficient with future PHP releases.
Thank you for your attention to this matter. We have +10GB debug file with 99% Weglot.
Previous Issue : https://www.ads-software.com/support/topic/deprecated-php-functions-in-weglot-plugin/
You can send us the corrected file, and we will apply it and then wait for the official release. We have automatic updates enabled.
Thank you!
- You must be logged in to reply to this topic.