Home›Support›English Support›[Resolved] This plugin failed to load properly and is paused during recovery mode.
[Resolved] This plugin failed to load properly and is paused during recovery mode.
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing a critical error when activating WPML Multilingual CMS, with an 'E_ERROR' on their WordPress site. The error message indicates an undefined function
str_contains()
. The client has attempted to delete and reinstall WPML, restore a working backup, and is considering updating PHP and WordPress with the help of their sysadmins.
Solution: We recommend checking the PHP version on the server, as the
str_contains()
function is not defined in versions of PHP prior to 8.0. The client is also advised to update their WordPress installation to the latest version, as they are currently using an outdated version (5.7.10), and the latest version is 6.4.2, which can be downloaded from https://wordpress.org/download/. Updating both PHP and WordPress should resolve the issue.
If this solution does not seem relevant or if further assistance is needed, please do not hesitate to open a new support ticket with us here.
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.
I can't do anything with my WordPress site because I got the following error (I am currently in recovery mode) when I activate WPML Multilingual CMS:
An error of type E_ERROR was caused in line 123 of the file /var/www/html/nona.ucolick.org/wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/wpml-request.class.php. Error message: Uncaught Error: Call to undefined function str_contains() in /var/www/html/nona.ucolick.org/wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/wpml-request.class.php:123 Stack trace: #0 /var/www/html/nona.ucolick.org/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(981): WPML_Request->show_hidden() #1 /var/www/html/nona.ucolick.org/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(4676): SitePress->get_active_languages() #2 /var/www/html/nona.ucolick.org/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(416): SitePress->move_current_language_to_the_top() #3 /var/www/html/nona.ucolick.org/wp-includes/class-wp-hook.php(292): SitePress->init('') #4 /var/www/html/nona.ucolick.org/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #5 /var/www/html/nona.ucolick.org/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #6 /var/www/html/nona.ucolick.org/wp-settings.php(423): do_action('plugins_loaded') #7 /var/www/html/nona.uco
I have already tried deleting and reinstalling WPML Multilingual CMS (Version 4.6.8) and I'm using WordPress version 5.7.10.
From what I can see, this type of error has been reported on multiple sites and is not necessarily related to a specific plugin or theme: hidden link
It might be related to the PHP version that you are using on the server.
Also, something else I have seen is that you are using a very very old version of WordPress. You are running version 5.7.10 while the most up to date version available here (https://wordpress.org/download/) is version 6.4.2
I hope that you will find this information helpful.
Restored to working version from backup and working with sysadmins to try updating PHP and WordPress to see if that will resolve issues. Unfortunately, probably won't get all that work done for many weeks due to sysadmin availability. Hence, resolution is pending, but for the short term we are up and running with the old version.