Cannot Create/Save menu in WordPress 3.4.2
-
hello
create/save menu was working fine before, but now it is giving following error/warnings
Warning: Invalid argument supplied for foreach() in /home/usr/public_html/wp-admin/includes/menu.php on line 18 Warning: Invalid argument supplied for foreach() in /home/usr/public_html/wp-admin/includes/menu.php on line 67 Warning: Invalid argument supplied for foreach() in /home/usr/public_html/wp-admin/includes/menu.php on line 101 Warning: Invalid argument supplied for foreach() in /home/usr/public_html/wp-admin/includes/menu.php on line 126 Warning: uksort() [function.uksort]: The argument should be an array in /usr/wealthad/public_html/wp-admin/includes/menu.php on line 183 Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/usr/public_html/wp-admin/includes/menu.php on line 218 Warning: array_pop() [function.array-pop]: The argument should be an array in /home/usr/public_html/wp-admin/includes/menu.php on line 219 Fatal error: Cannot use string offset as an array in /home/usr/public_html/wp-admin/includes/menu.php on line 220
i have changed/replaced wp-admin, wp-includes folder, also try by deactivate all plugin, switched to twenty ten theme
but still getting the same error
-
UPDATE:
the above error is because i’m commenting following line from
wp-settings.php
wp_unregister_GLOBALS();
Why you need to edit wordpress core files?
Never, ever, edit WordPress core scripts. And do not encourage others to do so. Editing core scripts can bring down your entire site and/or open security holes for hackers to use.
so very true
Never, ever, edit WordPress core scripts. And do not encourage others to do so. Editing core scripts can bring down your entire site and/or open security holes for hackers to use.
update wordpress to current version and use plugins for modifications if needed
This is an 8 month old topic! Closing.
- The topic ‘Cannot Create/Save menu in WordPress 3.4.2’ is closed to new replies.