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.

HELP! 500 Internal Error

November 11, 2009 1:16am

Subscribe [5]
  • #1 / Nov 11, 2009 1:16am

    lag47

    26 posts

    Suddenly I have begun recieving a 500 Internal Error. 

    the site is at http://youngcubrecords.com/index.php

    I updated a template, then returned to the site and now it is not working?

    EE backend still works though.  Any ideas? How do I even revert back to it working with the index.php?

    The site is on Godaddy, and I had been using an htaccess file to remove the index.php with no problems whatsoever until now.  Here is a copy of the htacess file:

    # -FrontPage-
    
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName <a href="http://www.youngcubrecords.com">http://www.youngcubrecords.com</a>
    AuthUserFile /var/chroot/home/content/y/o/u/youngcub/html/_vti_pvt/service.pwd
    AuthGroupFile /var/chroot/home/content/y/o/u/youngcub/html/_vti_pvt/service.grp
    DirectoryIndex temp.html  
    
    # rewrite rules
    RewriteEngine On
    RewriteCond %{QUERY_STRING} ^(css=.*)$ [NC]
    RewriteRule ^(.*)$ /index.php?/%1 [L]
    RewriteCond $1 !^(images|yoursystem|themes|favicon/.ico|robots\.txt|index.php) [NC]
    # ditch index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L]
  • #2 / Nov 11, 2009 1:45am

    John Henry Donovan

    12339 posts

    To disable your htaccess, either rename it or delete it after making a backup.

    To troubleshoot start with a blank htaccess and add it back in line by line until you find the culprit causing the 500 error.

    Typically I would move this thread to the How to forum as we do not support the removal of index.php. But lets confirm it is your htaccess to begin with. A 500 error is a server side error by nature.

  • #3 / Nov 11, 2009 3:18am

    lag47

    26 posts

    Thanks for the quick reply.  I really appreciate it.

    I tried deleting the htaccess altogether, but to no avail.  I am having no problem logging into expression engine however.

  • #4 / Nov 11, 2009 3:38am

    John Henry Donovan

    12339 posts

    lag47,

    Can you add back in index.php as the value for Name of your site’s index page here
    CP Home ›  Admin ›  System Preferences ›  General Configuration

  • #5 / Nov 11, 2009 11:43am

    lag47

    26 posts

    thanks again.

    SO the htaccess has been deleted.

    Changed up the configurations.

    Still no dice. 

    Here is an image of the my setttings

  • #6 / Nov 11, 2009 11:50am

    lag47

    26 posts

    Here is a better pic

  • #7 / Nov 11, 2009 11:53am

    John Henry Donovan

    12339 posts

    lag47,

    In your image you are still missing the Name of your site’s index page . The very first row in your image.

  • #8 / Nov 11, 2009 11:56am

    Sue Crocker

    26054 posts

    See the first and second values?

    Name of your site’s index page should be index.php
    URL to the root directory of your site should be: http://youngcubrecords.com

  • #9 / Nov 11, 2009 12:17pm

    lag47

    26 posts

    Still broken

  • #10 / Nov 11, 2009 3:52pm

    Ingmar

    29245 posts

    You might want to talk to your host about it. 500 errors are always the server’s fault: it’s either running out of resources, mis-configured, or been instructed to throw that particular error. That said, your host should have access to the servers’ error logs, which will give us an idea what the issue is.

  • #11 / Nov 11, 2009 7:10pm

    lag47

    26 posts

    My server suggested I monitor the the error_logs. 

    The error is:
    Premature end of script headers: /var/chroot/home/content/y/o/u/youngcub/html/index.php

    So the htaccess is gone.  The configuration looks like it does above.  A link like this, however, runs http://youngcubrecords.com/?css=site/site_css.v.1257251309

  • #12 / Nov 11, 2009 7:36pm

    Adam Dorsey

    1439 posts

    Hi lag47-

    If my memory serves me correct, a number of Godaddy customers need to “Force Query Strings.”

    You can find this setting by navigating to: Admin > System Preferences > Output and Debugging Preferences.

    You may also need to open the main site index.php (not your Control Panel file) and find the $qtype variable at the top of the file.  Try changing the value of that variable; most likely “2” will work for you.

  • #13 / Nov 12, 2009 2:35pm

    lag47

    26 posts

    Didn’t work.  What next?

  • #14 / Nov 12, 2009 2:38pm

    lag47

    26 posts

    I turned on debugging though, and the new error is:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 922430 bytes) in /home/content/y/o/u/youngcub/html/ycr/core/core.template.php on line 712


    its trying to allocate less than a megabyte? 

    The wierd thing is that it was working fine.  I added a template and then it stopped working.  I don’t want to, but it is starting to sound like I need to reinstall everything.

  • #15 / Nov 12, 2009 3:55pm

    Ingmar

    29245 posts

    You actually have 64 MB allocated to PHP, which should by sufficient for most purposes. That said, yes, EE is running out of memory. Try to reduce / optimize your templates, or increase that amount (if only temporarily) if that’s an option.

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

ExpressionEngine News!

#eecms, #events, #releases