 
	
		Tagged: wpml
- 
		AuthorPosts
- 
		
			
				
June 6, 2021 at 7:54 pm #1304290Hey there, 
 I’m having issues with the WPML language plugin every time I save a new page, it shows the following message:Notice: Trying to access array offset on value of type bool in /home/customer/www/domain.com/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4326 Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/domain.com/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:4326) in /home/customer/www/domain.com/public_html/wp-admin/post.php on line 231 Any idea of how can I fix this? 
 I already tried to contact WPML support but they say it might be a problem of the template… Anyway, any help will be welcome.
 Thank you!Didac June 7, 2021 at 2:38 pm #1304424Hey Didac, Thanks for contacting us! Could you please refer to this post – https://kriesi.at/documentation/enfold/theme-update/ and update Enfold to the latest version 4.8.3 and WP to 5.7.2 and check if that helps? :) Best regards, 
 YigitJune 8, 2021 at 9:02 am #1304568Hi Yigit, Just updated both WordPress and Enfold to the latest versions (4.8.3 and WP to 5.7.2) and still having the same issue. Regards, 
 DidacJune 9, 2021 at 2:20 pm #1304873Hi Didac, Thanks for the info. I edited functions.php file and deleted closing php tag from the end of the file and then tried updating one of your existing page and creating a new page (later deleted the test page) however I could not reproduce the issue. 
 Could you please check if you can reproduce it and if you can let us know how we can do as well? :)Best regards, 
 YigitJune 9, 2021 at 5:21 pm #1304948Hi Yigit, Thanks for your help. Now looks like it works fine, the only thing is that appears the following message on the top: Notice: WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /home/customer/www/skualo.com/public_html/wp-includes/functions.php on line 5313 Regards, 
 DidacJune 9, 2021 at 5:23 pm #1304949Hi Didac, You are welcome! It is not coming from Enfold. Could you please try de-activating your plugins one by one to find the culprit? Best regards, 
 YigitJune 9, 2021 at 6:47 pm #1304960Hi, I think the problem is with the Yoast SEO plugin, but it only shows me that message when I click in the “Redirects” menu, the rest of the menus such us general, search appearance, social… do not make any problem. Same with the rest of the website, I can create new pages, translate them, etc. and no problem. I tried to de-activate and activate the plugin again but the problem persists. Regards, 
 DidacJune 14, 2021 at 12:27 pm #1305587Hi, In that case you can edit wp-config.php file and set debug to false – https://codex.wordpress.org/WP_DEBUG define( 'WP_DEBUG', false );Since it is a notice, it would not cause any issues on your site :) Best regards, 
 YigitJune 15, 2021 at 9:38 am #1305745Great! You’re right, looks like everything is working fine now, thank you :) Regards, 
 DidacJune 15, 2021 at 11:09 am #1305765
- 
		AuthorPosts
- The topic ‘Notice: Trying to access array offset on value of type bool in…’ is closed to new replies.
