Hey Enfold guys,
I’m trying to troubleshoot a project. We moved a site from Network Solutions to Bluehost and now we can’t save the menu and there is an error log that appears at the top of the page. I’ve just used CSS to make that error go away but it affecting SEO info:
Warning: Illegal string offset ‘custom_css_post_id’ in /home3/wmfrtrte/public_html/wp-includes/theme.php on line 904
#wrap_all {
margin-top: -65px;
}
When I try to save a menu it doesn’t save it and shoots out this error instead:
Warning: Illegal string offset ‘nav_menu_locations’ in /home3/wmfrtrte/public_html/wp-includes/theme.php on line 904
Notice: Array to string conversion in /home3/wmfrtrte/public_html/wp-includes/theme.php on line 904
Any help would be greatly appreciated!
Hey Andrea,
Thanks for the login details, I’m not sure why that would happen though. I see that you have two child themes, could you try to remove the one you are not using? Also please try to disable all plugins to rule out a plugin conflict.
Best regards,
Rikard
Hey hey, I’m from the Curlyhost team (OP) and we have narrowed it down to a database issue. Creating a new child theme with the exact same everything (except for name) fixed it for some reason.
Would you have any idea what would be wrong with the database to throw this error?
Hi,
It seems like there was a serialized data issue (more info: https://wp-staging.com/serialized-data-wordpress-important/ ). This i.e. happens if the website url changed or the number of characters in the serialized data changed because of other reasons.
Best regards,
Dude