WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Cannot Create/Save menu in WordPress 3.4.2 (7 posts)

  1. manoj skynet
    Member
    Posted 1 year ago #

    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

  2. manoj skynet
    Member
    Posted 1 year ago #

    UPDATE:

    the above error is because i'm commenting following line from wp-settings.php

    wp_unregister_GLOBALS();

  3. prionkor
    Member
    Posted 1 year ago #

    Why you need to edit wordpress core files?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  5. Dusza
    Member
    Posted 1 year ago #

    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.

  6. Yui
    Member
    Posted 1 year ago #

    update wordpress to current version and use plugins for modifications if needed

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    This is an 8 month old topic! Closing.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags