Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing PHP errors with the 'sitepress-multilingual-cms' WordPress plugin using PHP 8.2, specifically a deprecated rtrim() issue, you are not alone.
Solution:
We recommend updating to WPML version 4.6.12, which includes a fix for this issue. This version is currently released.

If this solution becomes outdated or does not apply to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bigul 1 year, 3 months ago.

Assisted by: Bigul.

Author Posts
October 1, 2023 at 3:20 am #14492303

Johnny

I expected to see: No php errors for the sitepress-multilingual-cms WordPress plugin using PHP 8.2

Instead, I got:


Deprecated rtrim(): Passing null to parameter #1 ($string) of type string is deprecated	
wp-includes/formatting.php:2827
rtrim()
wp-includes/formatting.php:2827
untrailingslashit()
wp-includes/formatting.php:2812
trailingslashit()
wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-include-url.php:23
WPML_Include_Url->filter_include_url()
wp-includes/class-wp-hook.php:312
apply_filters('style_loader_src')
wp-includes/class-wp-styles.php:412
WP_Styles->_css_href()
wp-includes/class-wp-styles.php:221
WP_Styles->do_item()
wp-includes/class-wp-dependencies.php:137
WP_Dependencies->do_items()
wp-includes/script-loader.php:2244
print_admin_styles()
wp-includes/class-wp-hook.php:310
do_action('admin_print_styles')
wp-admin/admin-header.php:132
396	Plugin: sitepress-multilingual-cms

I've applied the temporary fix as explained in thread below:

https://wpml.org/forums/topic/deprecated-rtrim-passing-null-to-parameter-1-string-php-8-1-2/

But as of the 4.6.6. release - this bug still remains.

October 2, 2023 at 4:30 am #14494125

Bigul
Supporter

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

The fix for this bug is included in the WPML 4.7 version. It is in the QA stage now and is expected to be released in a month. So kindly wait for the fix.

We will get back to you soon when we have an update from our developers about the WPML 4.7 releases. Please wait.

--
Thanks!

Bigul