Home›Support›English Support›[Resolved] An error of type E_ERROR was caused in line 84 of the file class-wpml-ls-widget.php
[Resolved] An error of type E_ERROR was caused in line 84 of the file class-wpml-ls-widget.php
This thread is resolved. Here is a description of the problem and solution.
Problem: After updating WPML plugins, you are unable to see your created widget areas in the WordPress admin alongside Avada theme's widgets. Instead, an error of type E_ERROR occurs in
class-wpml-ls-widget.php
due to corrupted serialized data in the "widget_icl_lang_sel_widget" option key. Solution: We recommend deleting the corrupted "widget_icl_lang_sel_widget" option key from the wp_options table in your database. This action should resolve the issue with the widget areas not displaying correctly.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly encourage you to open a new support ticket.
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 updated my WPML plugins to the latest version today. I wanted to update my widgets in WP admin. URL: hidden link
Symptoms:
Instead of seeing my created widget areas beside Avada theme's available widgets, I only see Avada's available widgets and the column beside that is blank. I got an email that this error was caused by WPML. Error details: An error of type E_ERROR was caused in line 84 of the file /usr/www/users/invense/www1/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-widget.php. Error message: Uncaught Error: Call to a member function slug() on array in /usr/www/users/invense/www1/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-widget.php:84 Stack trace: #0 /usr/www/users/invense/www1/wp-includes/class-wp-widget.php(535): WPML_LS_Widget->form(Array) #1 /usr/www/users/invense/www1/wp-admin/includes/widgets.php(276): WP_Widget->form_callback(Array) #2 /usr/www/users/invense/www1/wp-includes/widgets.php(845): wp_widget_control(Array, Array) #3 /usr/www/users/invense/www1/wp-admin/includes/widgets.php(119): dynamic_sidebar('wp_inactive_wid...') #4 /usr/www/users/invense/www1/wp-admin/widgets-form.php(477): wp_list_widget_controls('wp_inactive_wid...', 'Inactive Widget...') #5 /usr/www/users/invense/www1/wp-admin/widgets.php(34): require('/usr/www/users/...') #6 {main} thrown
Questions:
Why am I seeing an E_ERROR in class-wpml-ls-widget.php after updating WPML?
How can I resolve the issue where my created widget areas are not displaying?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size. You can find more information about the process here: [link](https://wpml.org/faq/provide-supporters-copy-site/). Please confirm if this approach is acceptable to you.
Thank you for everyone's support! This has resolved my issue.
Manage Cookie Consent
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.