Skip to content Skip to sidebar

Tagged: 

This topic contains 0 reply, has 1 voice.

Last updated by Olivier 9 months, 2 weeks ago.

Assisted by: Noman.

Author Posts
October 9, 2024 at 9:13 am #16268785

Olivier

Background of the issue:
I am trying to address a deprecation issue in PHP 8.1 related to the WPML plugin. I have the same issue as described here: https://wpml.org/forums/topic/deprecated-rtrim-passing-null-to-parameter-1-string-php-8-1-2/. The workaround proposed by Bigul on May 18, 2023, works perfectly (fix in this file: /sitepress-multilingual-cms/classes/url-handling/class-wpml-include-url.php). However, this fix has not been implemented in new versions of WPML.

Symptoms:
Deprecated: rtrim(): Passing null to parameter #1 ($string) in PHP 8.1.

Questions:
Why has the workaround not been implemented in new versions of WPML?
Is it planned to be implemented in future versions?