Archived topic
Menú does not save the locations
7 replies · Started by David Perez Garcia on October 6, 2021
Hello, I'm having problems to save the locations menu, it getting an error and not showing:
[06-Oct-2021 15:32:37 UTC] PHP Warning: Illegal string offset 'nav_menu_locations' in /wp-includes/theme.php on line 1060
[06-Oct-2021 15:32:37 UTC] PHP Stack trace:
[06-Oct-2021 15:32:37 UTC] PHP 1. {main}() /wp-admin/nav-menus.php:0
[06-Oct-2021 15:32:37 UTC] PHP 2. set_theme_mod() /wp-admin/nav-menus.php:450
[06-Oct-2021 15:32:37 UTC] PHP Notice: Array to string conversion in /wp-includes/theme.php on line 1060
[06-Oct-2021 15:32:37 UTC] PHP Stack trace:
[06-Oct-2021 15:32:37 UTC] PHP 1. {main}() /wp-admin/nav-menus.php:0
[06-Oct-2021 15:32:37 UTC] PHP 2. set_theme_mod() /wp-admin/nav-menus.php:450
How could I solve it?
Hi there,
do you have a problem if you deactivate the Child Theme ?
Yes, it's working without child theme, but mine is very simple. I've accostumed to create child file to make custom enhacements, but I don't find where is the error??
If it works with parent theme, then could you remove all the custom functions you added to the child theme to test first?
Yep, removed, and still the same....
Can you try using a fresh installed child theme?
https://docs.generatepress.com/article/using-child-theme/
Hello Ying,
That finally solved. I don't understand what really happened.
Thanks.
No problem :)