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 6 replies, has 2 voices.

Last updated by Bruno Kos 1 year, 4 months ago.

Assisted by: Bruno Kos.

Author Posts
August 2, 2023 at 9:56 am #14140947

caterinag-2

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

wp-includes/formatting.php:2809

174 Plugin: sitepress-multilingual-cms
wp-includes/formatting.php:2809
rtrim()
wp-includes/formatting.php:2809
untrailingslashit()
wp-includes/formatting.php:2794
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:310
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:2213
print_admin_styles()
wp-includes/class-wp-hook.php:308
do_action('admin_print_styles')
wp-admin/admin-header.php:132

My site is experiencing a lot of server error. My host says resources are used by a plugin and I'm trying to understand which is the one creating this overload.
this is a message I get from Query Monitor.
almosto all of my PHP errors come from sitepress-multilingual-cms

here you have the debug. Please note thah some of the plugin that are listed as not installed are installed in fact

Schermata 2023-08-02 alle 11.54.37.png
August 2, 2023 at 11:54 am #14141917

Bruno Kos
Supporter

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

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

Hi,

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

Regards,
Bruno Kos

August 2, 2023 at 2:00 pm #14143175

caterinag-2

hi Bruno thanks for your reply. which steps shall I do? Both (disinstalling and reinstalling and php edit) or jusy the php edit?

August 2, 2023 at 2:08 pm #14143247

Bruno Kos
Supporter

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

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

You can simply use our workaround as described on the above URL.

The permanent fix may be added to WPML 4.6.5., after which the workaround would no longer be needed.

August 2, 2023 at 2:36 pm #14143473

caterinag-2

solved. thanks Bruno

August 3, 2023 at 10:23 am #14148147

caterinag-2

hi Bruno, don't know if it's relòated to the same issue but now I get this error
GET hidden link cURL error 28: Operation timed out after 5001 milliseconds with 0 bytes received

WPML\C\R\Status->pingRestEndpoint()

Plugin: sitepress-multilingual-cms

August 3, 2023 at 1:25 pm #14149929

Bruno Kos
Supporter

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

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

That issue is not related to this PHP error so please open a new ticket so we could investigate.