Hello,
I have problem after updating to 4.7 WP. On the front page it is a sentence like:
Warning: Illegal string offset ‘language_code’ in /home/umetne01/public_html/wp-content/themes/enfold/config-wpml/config.php on line 486
Best regards,
Daniel
Hello,
same problem here. The issue is present on the homepage and the ‘news’ (blog) section.
issue: Warning: Illegal string offset ‘language_code’ in …/home/wp-content/themes/enfold/config-wpml/config.php on line 488
Please help as the website is live and my client won’t like this we he’ll realize.
Regards,
Fulvio
Hi!
Please refer to this post – https://wpml.org/forums/topic/nach-update-folgende-fehlermeldung/
We will include the fix in upcoming Enfold update
Best regards,
Yigit
Hello,
visited WPML website (https://wpml.org/forums/topic/language-switcher-url-issues-links-to-lange-instead-of-en/) and they provided a temporary code to be included in the functions.php file of any website. Apparently it solved the issue. The code is this one:
/**
* 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 );
}
Hope it helps.
Cheers,
Fulvio
Thanks Yigit,
found the same solution and posted it before refreshing the page so I did not see your super-quick answer.
Cheers,
Fulvio
Hey!
@dannunzio thank you for sharing the solution :)
Let us know if you have any other questions or issues and enjoy your weekend!
Regards,
Yigit
@Yigit enjoy your weekend too and keep up the awesome work.
Ciao!
Fulvio
Hi!
Thanks :)
We will keep the thread open to hear from the creator of this thread. Feel free to start a new thread if you have any other questions or issues
Best regards,
Yigit
Dear Yigit,
thank you for the quick reply.
It works. Thank you very much.
Have a nice weekend,
Daniel