• I have pages on my site that once I published were given the URLs of https://www.twomomsdaycare.com/?p=2 for example. When this link is clicked, all it does is redirect back to the home page. When I use permalinks, the blog posts themselves work fine, but the pages throw the following CGI Error.

    CGI Error
    The specified CGI application misbehaved by not returning a complete set of HTTP headers.

    Can someone help me with this?

Viewing 15 replies - 16 through 30 (of 30 total)
  • This bug is especially bad since each time that wordpress crashes with the cgi error, it leaves the db connection open and it doesn’t take long before the website hits the mysql connection limit and everything stops working.

    I Guess it has somethinh to do with mod_rewrite.
    Apache supports mod_rewrite but IIS don’t.

    There’s an freeware ISAPI module to use mod_rewrite on iis, but it won’t work with .htaccess files and has te be configured per website.

    So, if there’s a way to bypass the mod_rewrite part of WordPress it could solve the problem.

    I have the same problem and I tried to solve.
    But the url “https://wordpress.pastebin.ca/893007” it returns a blank page too…

    I’m not technical enough to know why this “worked” for me, but I figured I’d share it in the event that, somehow, it was the root cause. If someone else is able to completely discount this, please do so!

    I was getting the CGI error described here for my RSS feed. I tried the wp-db.php changes…to no avail.

    After backing up my database, deleting all the tables, reinstalling WP, and restoring the database…nothing had changed.

    Then, I started getting a completely unrelated error when I tried to view the blog itself. I could get to the admin area, but couldn’t view plain ol’ blog content. That error was much easier to troubleshoot — index.php was referencing “./wp-blog-header.php,” which is actually located in the same folder (the root) as index.php.

    I removed the “./” from index.php. Not only did the site start working again, but the RSS feed started working — no CGI errors!

    I can’t connect the dots at all. It doesn’t seem like these would be related. But, things are at least working for me again.

    This fixed my issue. Though the link with the code above is not working, type in CGI ERROR in the search box and you will receive their new link for it…which is here: https://wordpress.pastebin.ca/924003?srch=cgi+error

    On the bottom of this page, they have the code for you to copy and paste into the file referenced above.

    Hope this helps,
    Richard

    Weird … I was having this same problem, and I spent quite a bit of time looking for answer (as the previous poster states, the link provided earlier does not work). I ended up using 2.3.1 which did not have this issue. After tyler here posted this new link, I just now attempted to upgrade. I uploaded all the new files as described in the upgrade FAQ, and I did not have to run the upgrade.php as it states that I am now up to date. Is this normal? Should I not have had to do anything from the db side?

    Thanks

    hi, i’m actually having the same problem. i recently installed wordpress 2.3.3 on my website with the default settings.

    today, i decided to change the permalinks structure from the default: https://simplyblatant.com/wordpress/?p=123

    to

    Date and name based: https://simplyblatant.com/wordpress/index.php/2008/03/28/sample-post/

    and now, everything else i click besides the homepage won’t load. it just gives me the error:

    CGI Error
    The specified CGI application misbehaved by not returning a complete set of HTTP headers.

    i’ve already tried the option here: https://wordpress.pastebin.ca/924003 and it still doesn’t work….

    HELP!!

    Has anyone managed to figure this out.
    I have tried a couple of the wp-db.php fixes with little or no success.
    Sometimes its working fine and then its gone and back again.

    So I upgraded to 2.5 today and still the same problem.

    Worst thing is there seems to be multiple posts all over the place.

    If I get it going I’ll post, hopefully some more can do the same.

    I have also emerged this problem, but no solution.

    What is the reason for this?

    Add me to the group of those still getting the CGI error in 2.5 when running anything but the default permalinks. I am on a Windows Box running IIS.

    Is there a solution?

    to be honest, i’ve given up trying to look for solutions.. all the solutions i’ve tried doesn’t work…. i guess we’ll just have to wait for v2.6 and hope that it would have dealt with this issue by then…

    in the meantime, i have to life with my permalinks not working and hurting my SEO as well i suppose…

    any word on a permalink fix? i got the wp-db “fix” code am able to install, but cannot change my permalinks.

    My MySQL db is on a separate box, could that be causing some of the problem?

    I’ve exactly the same problem on my site, since I’ve installed WordPress 2.3. I ve got IIS on MS Windows 2003 Server, php 5.2. I tried each solution in this post and no one fixed my pb ..
    I’m looking for a solution for months, I ‘ve lost more than a half of visitors because of this pb : 40% of hits present the message “CGI Error…”
    I was a fan of WordPress, but since this pb, that nobody can solve, I’m very disappointed.
    I hope someone will find the pb.

    The fix presented above does not work for WordPress 2.5.1. At least it did not work for me.

    This issue remains a problem even in 2.6 The above fix does not work for me either. If anyone has an answer I am willing to learn….It would be worth $ to me

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘CGI Error With Pages’ is closed to new replies.