Error in sidebars when wpml is activated

Hi,

I’ve detected an error in sidebars after 4.2.3 updated when wpml is activated.
That’s it:

Fatal error: Uncaught Error: Call to a member function get_element_language_details() on null in /usr/home/mmcercs.cat/web/wp-content/themes/pro/cornerstone/includes/extend/custom-sidebars.php:379 Stack trace: #0 /usr/home/mmcercs.cat/web/wp-admin/includes/template.php(1389): ups_sidebar_do_meta_box(Object(WP_Post), Array) #1 /usr/home/mmcercs.cat/web/wp-content/themes/pro/cornerstone/includes/extend/custom-sidebars.php(321): do_meta_boxes(Object(WP_Screen), ‘normal’, NULL) #2 /usr/home/mmcercs.cat/web/wp-includes/class-wp-hook.php(292): ups_sidebars_do_page(’’) #3 /usr/home/mmcercs.cat/web/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(’’, Array) #4 /usr/home/mmcercs.cat/web/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #5 /usr/home/mmcercs.cat/web/wp-admin/admin.php(259): do_action(‘appearance_page…’) #6 /usr/home/mmcercs.cat/web/wp-admin/themes.php(10): require_once(’/usr/home/mmcer…’) #7 {main} thrown in /usr/home/mmcercs.cat/web/wp-content/themes/pro/cornerstone/includes/extend/custom-sidebars.php on line 379

Thank you!

Hello @Juanjo,

Thanks for writing in!

Did you add custom PHP code in your child theme’s functions.php file? A certain PHP function is causing the issue. To better assist you with your issue, kindly provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
- Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.