WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite, posts on 1 site throwing a 500 error. (8 posts)

  1. andrewmowder
    Member
    Posted 2 years ago #

    I have a multisite install with around 30 sites on it. One of the sites is throwing a 500 Internal Server error. The homepage for that site comes up just fine - it's just when the user clicks on a post that it errors.

    All of the other sites within the multisite install appear to be working okay - EXCEPT for when I attempt to access the Media library or upload a new file (also receieving a 500 error). This seems to be happening on all of the sites.

    I'm running WordPress 3.1.3 on a Windows Server.

    Any ideas or suggestions?

    Thank you in advance.

  2. Windows. Eeee. Not my forte.

    IIS? What flavor? And are you using Apache and (thus) .htaccess, or that web.config thingy?

  3. Eric Mann
    Member
    Posted 2 years ago #

    First things first ... are you serving the site via IIS or Apache? And have you checked both the server logs and the Windows Event logs for error messages?

  4. andrewmowder
    Member
    Posted 2 years ago #

    We are running on IIS 7, no Apache. Nothing in the event logs. We are using a web.config and .net 2.0(because it's Windows). The site has been running without incident for around 8 months. until now, anyway...

    Thank you!

  5. Kevin Cristiano
    Member
    Posted 2 years ago #

    What version of url rewrite are you running? Can you post (pastebin) your web.config entries related to the rewrite rules.

    I have had issues with media.php when there were too many images and I hit a php timeout.

    I would also verify your permalink settings if you have not done that yet.

    BTW, did you meand WordPress 3.1.3 or 3.3.1?

  6. kansascoder
    Member
    Posted 2 years ago #

    kchristiano
    Yep..we're still running 3.1.3 but are planning our upgrade to happen soon.

    We're using URL Rewrite version 2.0. I think if it were a rewrite issue it would be happening to all of our blogs and not just one.

    Can you tell me more about that php timeout you hit? Did this issue show up in your iis logs or your event viewer logs? What did you up it to?

    Regarding the permalinks... the URL that is being shown when we mouseover the link to a comment is in keeping with the format we've specified. Is that what you meant by verifying them?

    Thanks for your help!

  7. Kevin Cristiano
    Member
    Posted 2 years ago #

    For the permalinks, I mean to go to example.com/wp-admin/options-permalink.php and verify the permalink settings there.

    For timeouts the two timeouts that I look at in php.ini are:

    max_execution_time = 30
    max_input_time = 60

    When I had a problem with the media upload function,it was a timeout. Try changing the number of items displayed on the library (set under help) and in the upload area, try the browser upload. If this allows you to work with media, I would think the issue is timeouts. I would not increase them much at all, as high values in those settings are not recommended.

    I also use the wincache module on my IIS servers, That has a whole host of other issues now (which is why after many years on IIS I have moved most of my sites to a LAMP stack), but it does help load times even. I can not recommend it right now. I am running a dev build to keep it working with WordPress as the release version has issues with file locking (problem for automatic updates).

    I agree that it is probably not the url rewrite module if only happens on one site.

    One last thought, IIS had been trapping a WordPress wp_die call as a 500 error. I used to fight this one and finally told IIS to pass errors to the application first before responding.
    To do this add to your web.config:

    <system.webServer>
    <httpErrors existingResponse="PassThrough" />
    ... all your other stuff
    </system.webServer>

    If none of the above is applicable, can you give us a link to the site with errors? There must be something in the url that is causing IIS to error out.

  8. andrewmowder
    Member
    Posted 2 years ago #

    Sorry for the late response on this. I hadn't had a chance to mess with it again until yesterday. It ended up being nothing more than the widgets in the sidebar. I began to create a new site (to replicate the old and then replace it). I started building the new site the same as the old, testing as I went. I put in the sidebar the same and received a 500 error. Then I immediately went back to the site that was not working, pulled the sidebar, and it worked instantly. I ended up putting it back exactly the same way it was and now everything works. Must've just been some weird glitch.

    Anyway, THANK YOU all very much for your help on this. It is MUCH appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic