Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Bruno Kos 1 day, 12 hours ago.

Assisted by: Bruno Kos.

Author Posts
November 21, 2024 at 12:10 pm #16428818

Andrii Sergiichuk

Background of the issue:
I noticed that the WPML plugin started to cause a lot of errors after I enabled the debug panel.

Symptoms:
WPML plugins have a lot of bugs.Ievgenii, [21.11.2024 12:53]
[21-Nov-2024 10:32:26 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/functions.php on line 7329
[21-Nov-2024 10:32:26 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/functions.php on line 2189
[21-Nov-2024 10:32:26 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/functions.php on line 7329
[21-Nov-2024 10:32:26 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/functions.php on line 2189
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Warning: Undefined variable $link in /home/sexdolls/sexdolls.com.ua/www/wp-content/plugins/js_composer/include/templates/params/notice/notice.php on line 16
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819

Ievgenii, [21.11.2024 12:53]
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819
[21-Nov-2024 10:32:27 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sexdolls/sexdolls.com.ua/www/wp-includes/formatting.php on line 2819

Ievgenii, [21.11.2024 12:54]
[21-Nov-2024 10:32:27 UTC] PHP Warning: Undefined variable $link in /home/sexdolls/sexdolls.com.ua/www/wp-content/plugins/js_composer/include/templates/params/notice/notice.php on line 16

Questions:

November 21, 2024 at 12:22 pm #16428883

Andrii Sergiichuk

Also, I have a report from the debug panel in notepad form, and I don't know how to upload it here.

November 21, 2024 at 12:25 pm #16428902

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Can you check this?
https://wpml.org/forums/topic/deprecated-rtrim-passing-null-to-parameter-1-string-php-8-1-2/#post-13670953

However the fix will go into WPML 4.7 (for which I don't have dates though).

November 26, 2024 at 9:23 am #16443540

Andrii Sergiichuk

We have checked everything again and I can say for sure that this is not the issue you linked to.

November 26, 2024 at 11:30 am #16444353

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Did you try that workaround?

That workaround was introduced because of this message:

Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/andrii/Local Sites/wpmltriage-168-fresh/app/public/wp-includes/formatting.php on line 2786

And this looks exactly as one of the the error messages you reported.

Please apply the workaround and tell me what notices/warning show on your site then.