Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Bruno Kos 12 months ago.

Assisted by: Bruno Kos.

Author Posts
July 31, 2024 at 6:24 am

manuelS-24

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?

July 31, 2024 at 6:49 am
July 31, 2024 at 8:14 am #16023520

Bruno Kos
WPML Supporter since 12/2018

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.

July 31, 2024 at 8:50 am #16023685

manuelS-24

Sure. Duplicator is already installed in the staging site. I also created a package earlier, but feel free to create another package if you like.

July 31, 2024 at 10:00 am #16024005

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

This is escalated to our 2nd tier team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.

August 1, 2024 at 6:46 am #16027722

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

The issue you're encountering with WPML happens because of corrupted serialized data in the "widget_icl_lang_sel_widget" option key.

Can you delete it from wp_options table?

icl.jpg
August 5, 2024 at 7:47 am #16037773

manuelS-24

Thank you for everyone's support! This has resolved my issue.