Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have strange situation which just started which I seem to be unable to resolved. I am not sure what this might be related to but I think I remember reading somewhere that this has happened to someone else.

Upon logging into WordPress then going into the menu management area, then clicking on "screen options" and enabling the view of a menu metabox for a custom post type that was created and then adding a page from that post type to the menu the menu management area started showing a Internal Server Error 500 message.

Every other area of the website and admin area works perfectly except for the menu management link. I have attempted everything I can think of in an effort to resolve the problem including removing every plugin and customization made to my functions.php file however I can't get the issue resolved.

I was hoping someone here might able to help me resolve this issue or suggest anything to diagnose this issue.

Any help is greatly appreciated!

share|improve this question

4 Answers 4

up vote 2 down vote accepted

I just figured out my own issue which I am hoping might help others if they get stuck in this situation.

Essentially the problem seemed to be that modsecurity caused the 500 Internal Server error because for some reason (which I have yet to understand) the menu page was sending a bunch of data in the response body.

To resolve the problem I just needed to add the following to my vhost.conf file and restart apache. Here I doubled the response body size.

SecResponseBodyLimit 1572864
share|improve this answer
    
1 572 864 = 1 536k or 1.5 Megabyte. Now that's what I call an Ajax request size. Probably you should not use Wordpress build-in menus. –  hakre Oct 14 '10 at 20:59
    
@hakre -- Yeah, it was really confusing to me as to why the backend menu management screen was creating a 500 error. What I was unable to figure out was the size of the ajax request the menu management page was creating. Do you happen to know how to figure that out? (firebug?) Also, I have like 8 custom post types and 4 custom taxonomies which in turn create a bunch of metaboxes but I was assuming its the wordpress code which might be sending too much data. Any ideas? –  NetConstructor.com Oct 14 '10 at 22:11
    
modsecurity seems to be very suspicious towards some of AJAX stuff in WordPress. I had to ask my hosting (shared) to whitelist several related files or simply having post editor open would generate 500 error every minute in background, etc. –  Rarst Oct 16 '10 at 9:25
    
Looks like this is under discussion here: core.trac.wordpress.org/ticket/14134 –  Ash G Oct 16 '10 at 12:46
    
thats good to know... btw does anyone know of a safe settings for the SecResponseBodyLimit till this is resolved? –  NetConstructor.com Oct 18 '10 at 10:22

Any odds you've zillions of pages or terms? If so, look no further. WP menus just don't scale when loads of content is present.

share|improve this answer
    
@Denis - This doesn't really address the question. –  MikeSchinkel Oct 16 '10 at 4:35

Well, this might sound like old-fashioned usenet-esque reply, but what does your error_log say about that HTTP 500 error (assuming you're running it under more-less regular Apache)?

share|improve this answer

I experienced the same problem. For some reason WordPress inserts the complete text of the post into the description of each menu element, making it very heavy to upload when there are several elements. Just modify (shorten) or delete this description and changes will be saved with no 500 error. It worked for me.

share|improve this answer
    
Hi Alejandro, I'm getting a 500 Internal Server Error with large WP menus. How do I shorten/delete the description that you mentioned? Thank you. –  Laxmidi Jul 11 '11 at 21:06

Your Answer

 
discard

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.