Hello dear support team, I am using the WPML plugin, and I am getting the following error message while loading the site:
”
Warning: Illegal string offset ‘language_code’ in /home/edoshumm/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488″
Could you please assist?
thanks
Oren
Hey Oren!
Please add following code to Functions.php file in Appearance > Editor
/**
* This fixes the issue with truncated links in Enfold theme with WPML 3.6.0
* WARNING: ILLEGAL STRING OFFSET 'LANGUAGE_CODE' IN …\WP-CONTENT\THEMES\ENFOLD\CONFIG-WPML\CONFIG.PHP ON LINE (number of line)
*/
add_action( 'init', 'wpmlcore_3776_temporary_fix' );
function WPMLcore_3776_temporary_fix() {
remove_filter( 'WPML_filter_link','avia_change_wpml_home_link', 10 );
}
Regards,
Yigit
Thank you Yigit.
Just before receiving your reply, I found this workaround on WPML forums:
https://wpml.org/forums/topic/after-upgrading-wpml-my-header-crashes-the-error-is-warning-illegal-string-o/
It seems to have worked. If not, I will use your suggestion.
Thanks again
Oren
: