 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
December 8, 2016 at 12:34 pm #721911Hi Issue after updating WordPress to 4.7 and WPML to latest versions! Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488 Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488 Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488 Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488 Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488 Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on lineThis happened after WordPress and WPML update to latest versions! December 8, 2016 at 2:18 pm #721969This is kind of urgent as the website is live! 
 Would rather have it fixed before client calls me!- 
		This reply was modified 8 years, 10 months ago by grafixstudio. 
 December 8, 2016 at 4:19 pm #722042In the meantime, try to add the following lines in the functions.php file inside your theme folder /** 
 * This fixes the issue with truncated links in Enfold theme with WPML 3.6.1
 * WARNING: ILLEGAL STRING OFFSET ‘LANGUAGE_CODE’ IN \WP-CONTENT\THEMES\ENFOLD\CONFIG-WPML\CONFIG.PHP ON LINE 489
 */
 add_action( ‘init’, ‘wpmlcore_3776_temporary_fix’ );
 function wpmlcore_3776_temporary_fix() {
 remove_filter( ‘WPML_filter_link’,’avia_change_wpml_home_link’, 10 );
 }December 11, 2016 at 8:01 am #722795Hi, 
 .
 Thank you for using Enfold.
 @grafixstudio: Please try the snippet that @bborsi provided.
 @bborsi: Thanks for the help! :)Best regards, 
 IsmaelDecember 11, 2016 at 6:15 pm #722844Yes I implemented it and it worked. But is this a real solution? December 13, 2016 at 3:00 pm #723736Hi, as you can see it’s a temporary fix. The dev team is working on a permanent fix for this. Best regards, 
 Andy
- 
		This reply was modified 8 years, 10 months ago by 
- 
		AuthorPosts
- You must be logged in to reply to this topic.
