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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Andrey 1 year, 2 months ago.

Assisted by: Andrey.

Author Posts
August 30, 2023 at 11:14 pm #14316369

Johnny

I receive the following error related to WPML in our logs after upgrading to PHP 8.2

Please provide an update on how to fix. Thanks!

---/

Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated	

Stack trace: 

wp-includes/formatting.php:2828
rtrim()
wp-includes/formatting.php:2828
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

August 31, 2023 at 11:43 pm #14323921

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

Can you share with me the complete log of these notifications?

Are you still having this issue if you temporarily deactivate all plugins except WPML?

Please back up your database before making any changes.