-
AuthorPosts
-
December 9, 2016 at 2:39 pm #722427
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,
DanielDecember 9, 2016 at 6:11 pm #722552Hello,
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,
FulvioDecember 9, 2016 at 6:15 pm #722558Hi!
Please refer to this post – https://wpml.org/forums/topic/nach-update-folgende-fehlermeldung/
We will include the fix in upcoming Enfold updateBest regards,
YigitDecember 9, 2016 at 6:18 pm #722561Hello,
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,
FulvioDecember 9, 2016 at 6:21 pm #722563Thanks Yigit,
found the same solution and posted it before refreshing the page so I did not see your super-quick answer.
Cheers,Fulvio
December 9, 2016 at 6:23 pm #722566Hey!
@dannunzio thank you for sharing the solution :)
Let us know if you have any other questions or issues and enjoy your weekend!Regards,
YigitDecember 9, 2016 at 6:26 pm #722568@Yigit enjoy your weekend too and keep up the awesome work.
Ciao!Fulvio
December 9, 2016 at 6:26 pm #722570Hi!
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 issuesBest regards,
YigitDecember 9, 2016 at 7:01 pm #722575Dear Yigit,
thank you for the quick reply.
It works. Thank you very much.
Have a nice weekend,
DanielDecember 9, 2016 at 9:17 pm #722609 -
AuthorPosts
- The topic ‘Warning: Illegal string offset 'language_code Enfold Theme’ is closed to new replies.
