Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Some clients are unable to log in to the WordPress admin area, encountering a PHP Fatal error related to the WPML plugin. The temporary fix involves synchronizing posts taxonomies, clearing the WPML cache, removing ghost entries from translation tables, fixing element_type collation, setting language information, synchronizing local job IDs, fixing Terms count, and fixing post assignment for translations. However, this fix has to be reapplied for each new user facing the issue.

Solution:
First, confirm if the issue is resolved when WPML is temporarily disabled. If the problem persists, update the WPML plugin to the latest version, currently 4.6.10, along with any add-ons. Updating may not necessarily solve the problem, but it is essential to troubleshoot on the latest version. Before updating, ensure to back up your database. You can find the latest versions in the Downloads section of your account, and update instructions are available at http://wpml.org/faq/install-wpml/. For database backups, you may use plugins like Duplicator.

If the issue continues after updating, it might be due to an outdated solution or a different problem. In such cases, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket for further assistance.

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 1 reply, has 2 voices.

Last updated by Andrey 1 year, 2 months ago.

Assisted by: Andrey.

Author Posts
April 10, 2024 at 9:02 pm #15506530

barrettL

I am trying to: some users can't login to wordpress admin

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

Somme user can login with no issue me included. To fix I'm following instruction from previous ticket: https://wpml.org/forums/topic/wpml-chat-support-ticket-by-barrettl-1712590058/ for each user can't login issue and that fixed until next person trying to login:

- Synchronize posts taxonomies
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Synchronize local job IDs
- Fix Terms count
- Fix post assignment for translations

I did this already 4 times within 3 last days. Is there any permanent solution to this?

Thanks

April 10, 2024 at 9:41 pm #15506571

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Do I correctly understand there is no issue if you temporarily disable WPML?

Could you please update your WPML plugin to the latest version 4.6.10 and add-ons to benefit from the latest bug fixes and improvements? This may not necessarily resolve your problem, however, in order to troubleshoot the issue best we need to work on the latest code available.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

Please remember to backup your database first before you proceed. You can use a plugin for this if you like (example: http://wordpress.org/plugins/duplicator/)

Let me know if the issue persists after an update has been done.