WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When ever I try to add menu items past about 40 I get an error "The given object ID is not that of a menu item" and many of my menu items will disappear from the menu at random.

The site I am working on has approx 65 pages in total but I am unable to get them all in because of this.

I am referring to the new WordPress menu management interface

share|improve this question
Every item being added is either a normal page or a custom link, but no custom post types or taxonomies – Ash G Mar 16 '11 at 5:51
Looks like it was a PHP memory limit that was causing the problem.Anyone else notice this? – Ash G Mar 16 '11 at 8:24
Guys any one got a solution for this? – user4127 Mar 22 '11 at 9:52
I have had the same issue. 40+ nav items in custom menu. only custom and pages. I already had 128M allocated; I changed that to 12800 to see if it would work still getting error. I am thinking I will just go in and manually update the mySQL database? – user7878 Aug 14 '11 at 7:13

The solution I found was to get in touch with my webhost and have them up the PHP memory limit on my account from 64MB to 128MB. The problem went away after that.

share|improve this answer

Access your c-panel and site files then go to wp-config.php file and input the following line of code

/** Memory Limit */
define('WP_MEMORY_LIMIT', '96M');

Worked for me.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.