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?
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.