ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Server 500 Error

November 05, 2009 7:24am

Subscribe [3]
  • #1 / Nov 05, 2009 7:24am

    Okapi Creative

    384 posts

    Hi, am just setting up a site for a client and am encountering the following message when clicking ‘View Rendered Template’

    Error 500!
    /index.php
    Internal Server Error!

    Everything else seems fine. The url is this:

    <a href="http://www.siteunderdiscussion.com/index.php?URL=www.siteunderdiscussion.com/index.php?/main/about/">http://www.siteunderdiscussion.com/index.php?URL=www.siteunderdiscussion.com/index.php?/main/about/</a>

    but actually ‘&tgpref=3’ is appended to it when hovered over. In any event, if I strip off the url from the ? onwards it loads fine. All the links also work from the main site end.

    I know the server is using mod_security and I cannot make contact with the hosts (they are Spanish and refuse to respond) but if I over-ride it in .htaccess then the 500 errors go sitewide…

    Anyone have any clue? I have searched a bit on this and no answer that suits this case yet…

  • #2 / Nov 05, 2009 11:20am

    Sue Crocker

    26054 posts

    tarquin, have you tried turning off mod_security via .htaccess?

    Disable mod_security in .htaccess file
    
       1. If you do not have one yet, an .htaccess file in the folder of your web application
       2. To disable mod_security COMPLETELY, add the following line to the .htaccess file:
          SecFilterEngine Off
          OR, to disable HTTP POST scanning only, use the following instead:
          SecFilterScanPOST Off
       3. Save the file and test your web application to check whether disabling mod_security has solved your problem.
    
    I recommend you to try SecFilterScanPOST Off first, instead of disabling mod_security completely.
  • #3 / Nov 05, 2009 11:25am

    Okapi Creative

    384 posts

    tarquin, have you tried turning off mod_security via .htaccess?

    Disable mod_security in .htaccess file
    
       1. If you do not have one yet, an .htaccess file in the folder of your web application
       2. To disable mod_security COMPLETELY, add the following line to the .htaccess file:
          SecFilterEngine Off
          OR, to disable HTTP POST scanning only, use the following instead:
          SecFilterScanPOST Off
       3. Save the file and test your web application to check whether disabling mod_security has solved your problem.
    
    I recommend you to try SecFilterScanPOST Off first, instead of disabling mod_security completely.

    Hi Sue…yes I did that but it made the 500 error site-wide…couldn’t see page at all (except for error message) when I had it in place…not sure why that would be actually…

  • #4 / Nov 05, 2009 11:39am

    Sue Crocker

    26054 posts

    So the site is OK when you visit normally?

  • #5 / Nov 05, 2009 11:41am

    Okapi Creative

    384 posts

    So the site is OK when you visit normally?

    Yes, the only time it ever happens - that I have noticed so far - is when you try to view a template from within the CP Templates section.

    If I go to the site by the main url I can visit all pages normally through the navigation….

  • #6 / Nov 05, 2009 4:59pm

    Ingmar

    29245 posts

    Yes, this definitely sounds like an issue with mod_security. I’ve seen it before. I am afraid we cannot advise on how to disable it (if that is indeed an option), it will be totally host-dependent.

    If your host is not responsive (or responding, as the case may be) your only option might be to re-evaluate your hosting options.

  • #7 / Nov 05, 2009 5:03pm

    Okapi Creative

    384 posts

    Yes, this definitely sounds like an issue with mod_security. I’ve seen it before. I am afraid we cannot advise on how to disable it (if that is indeed an option), it will be totally host-dependent.

    If your host is not responsive (or responding, as the case may be) your only option might be to re-evaluate your hosting options.

    Yeah Ingmar, I am definitely re-evaluating them allright!!!

    Just need to make the client feel the same way!!

  • #8 / Nov 05, 2009 5:09pm

    Ingmar

    29245 posts

    I completely understand. Actually, it looks like they won’t let you turn off mod_security via .htaccess. If they don’t turn it off (or tweak it, at least), these “View Rendered Template” links won’t work. You can tell your client with confidence it’s the hosts fault.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases