qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
550 stars 103 forks source link

Deprecated: Some notices with PHP 8.1 #1277

Closed X-Raym closed 1 year ago

X-Raym commented 1 year ago

Hi, when updated to PHP 8.1, I got some notices with debug activated. Here are formatted log:

Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in qtranslate-xt/qtranslate_core on line 821

Deprecated: setcookie(): Passing null to parameter #5 ($domain) of type string is deprecated in qtranslate-xt/qtranslate_core on line 456

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in qtranslate-xt/modules/acf/src/plugin.php on line 168

Doesnt looks too bad, just some compatibility regarding some arguments.

Can we have a fix for these?

This would be very appreciated :) Thx!

herrvigg commented 1 year ago

This should be fixed long ago. See #1085. What version are you using? See readme to update to a more recent version.

X-Raym commented 1 year ago

@herrvigg Oh, it seems my update fails as I can see on admin it is still in Version 3.10.1 |

I will update with last, and reopen if needed, thx for the support!