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.

This topic contains 1 reply, has 2 voices.

Last updated by Osama Mersal 1 year, 2 months ago.

Assisted by: Osama Mersal.

Author Posts
September 8, 2023 at 3:41 pm #14367683

cristianS-23

Hi there,

recently after updating WPML plugin and wordpress to the most recent version I started getting a following error when trying to login into admin panel:
There has been a critical error on this website. Please check your site admin email inbox for instructions.

If I turn off Strings Translation then backend loads.
I've already tried to rolling back to version wpml-string-translation.3.2.6. as advised in other blog with no luck.

I 've checked log file and it's throwing following error:

PHP Fatal error: Uncaught WpOrg\Requests\Exception\InvalidArgument: WpOrg\Requests\Cookie::__construct(): Argument #1 ($name) must be of type string, integer given in /var/www/vhosts/droix.net/httpdocs/blogs/wp-includes/Requests/src/Exception/InvalidArgument.php:29 Stack trace: #0 /var/www/vhosts/droix.net/httpdocs/blogs/wp-includes/Requests/src/Cookie.php(84): WpOrg\Requests\Exception\InvalidArgument::create() #1 /var/www/vhosts/droix.net/httpdocs/blogs/wp-includes/class-wp-http.php(472): WpOrg\Requests\Cookie->__construct() #2 /var/www/vhosts/droix.net/httpdocs/blogs/wp-includes/class-wp-http.php(352): WP_Http::normalize_cookies() #3 /var/www/vhosts/droix.net/httpdocs/blogs/wp-includes/class-wp-http.php(634): WP_Http->request() #4 /var/www/vhosts/droix.net/httpdocs/blogs/wp-content/plugins/sitepress-multilingual-cms/classes/REST/Status.php(75): WP_Http->get() #5 /var/www/vhosts/droix.net/httpdocs/blogs/wp-content/plugins/sitepress-multilingual-cms/classes/REST/Status.php(47): WPML\Core\REST\Status->pingRestEndpoint() #6 /var/www/vhosts/droix.net/httpdocs/blogs/wp-content/plugins/sitepress-multilingual-cms/classes/REST/Status.php(62): WPML\Core\REST\Status->WPML\Core\REST\{closure}() #7 /var/www/vhosts/droix.net/httpdocs/blogs/wp-content/plugins/sitepress-multilingual-cms/classes/REST/Status.php(45): WPML\Core\REST\Status->cacheInTransient() #8 /var/www/vhosts/droix.net/httpdocs/blogs/wp-content/plugins/sitepress-multilingual-cms/classes/REST/Status.php(38): WPML\Core\REST\Status->is_rest_accessible() #9 /var/www/vhosts/droix.net/httpdocs/blogs/wp-content/plugins/sitepress-multilingual-cms/inc/functions.php(813): WPML\Core\REST\Status->isEnabled() #10 /var/www/vhosts/droix.net/httpdocs/blogs/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/UI/Factory.php(27): wpml_is_rest_enabled() #11 /var/www/vhosts/droix.net/httpdocs/blogs/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(148): WPML\ST\MO\Scan\UI\Factory->create() #12 /var/www/vhosts/droix.net/httpdocs/blogs/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(125): WPML_Action_Filter_Loader->run_factory() #13 /var/www/vhosts/droix.net/httpdocs/blogs/wp-includes/class-wp-hook.php(310): WPML_Action_Filter_Loader->deferred_loader() #14 /var/www/vhosts/droix.net/httpdocs/blogs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #15 /var/www/vhosts/droix.net/httpdocs/blogs/wp-includes/plugin.php(517): WP_Hook->do_action() #16 /var/www/vhosts/droix.net/httpdocs/blogs/wp-settings.php(632): do_action() #17 /var/www/vhosts/droix.net/httpdocs/blogs/wp-config.php(185): require_once('...') #18 /var/www/vhosts/droix.net/httpdocs/blogs/wp-load.php(50): require_once('...') #19 /var/www/vhosts/droix.net/httpdocs/blogs/wp-admin/admin.php(34): require_once('...') #20 /var/www/vhosts/droix.net/httpdocs/blogs/wp-admin/plugins.php(10): require_once('...') #21 {main} thrown in /var/www/vhosts/droix.net/httpdocs/blogs/wp-includes/Requests/src/Exception/InvalidArgument.php on line 29

Please advise how this issue can be resovled

I can not access debug information. I'm getting:

There has been a critical error on this website. Please check your site admin email inbox for instructions.

September 10, 2023 at 9:11 am #14370723

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) First of all, sorry for the late reply due to a higher workload. Please update WPML plugins to the latest version. You can find the latest version of WPML plugins here. (https://wpml.org/account/downloads/)

If you still face the issue after installing the latest version, please check if the issue persists in a minimal environment by following these steps.

1- Deactivate all the plugins except WPML CMS and String Translation.
2- Switch to a WordPress default theme like Twenty Twenty-one.

If the issue is gone, activate them one by one to see which one is causing an interaction issue.

❌ Please backup your database before performing the above test ❌

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.

Best regards,
Osama

September 11, 2023 at 1:47 pm #14376949

cristianS-23

So the issue was related to cookies, I've deleted cookies for my website and now was able to login with no issues.