[Resolved] Translation and language information deleted
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is unable to see translation icons and language assignments on their website after entering the last translation. An error message indicates an 'Uncaught InvalidArgumentException' related to the WPML plugin. Solution: 1. Verify that active languages are declared in WPML > Languages. If no languages appear, attempt to add them again. 2. If unable to add languages, check the database for the WPML languages table. Back up the site and navigate to WPML > Support > Troubleshooting. Use the "Clear language information and repopulate languages" option. 3. If the issue persists, and the priorly set default language appears as greyed out, set another language as the site's default language. This may allow you to re-add the greyed out laguage and set it as default language.
If these steps do not resolve the issue or seem outdated, we 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 problems continue, please open a new support ticket at WPML support forum.
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.
Background of the issue:
I am trying to manage translations on my site hidden link. All translations have already been introduced. After the last translation was entered, suddenly all the icons with the ability to add a translation disappeared. In the options, there is no information about what language and what translation is assigned to the site. When trying to enter the settings, a message is shown: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /martamarek/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112 Stack trace: #0 [internal function]: WPMLFPObj::WPMLFP{closure}(NULL, 'code', false) #1 /martamarek/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #2 [internal function]: WPMLFPObj::WPMLFP{closure}(NULL, 'code', false) #3 /martamarek/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array) #4 /martamarek/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPMLFPObj::__callStatic('propOr', Array) #5 [internal function]: WPMLFPObj::WPMLFP{closure}('code', false) #6 /martamarek/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #7 [ in /martamarek/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112
Symptoms:
All translation icons disappeared, and there is no information about language assignments. Error message: Uncaught InvalidArgumentException in WPML plugin.
Questions:
How can I restore the English translations I entered?
I tried to reinstall the plug-in, enable and disable the plug-in - but to no avail.
The error appeared after translating the Cookie Policy page. The page is marked “Legal document, Elementor”.
After performing this action, I can add English language, but now I can't add Polish as the main language (it is inactive for selection from the list of languages).
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.