Error 500 all pages except index

Hi everybody,

Since a little period, i have a 500 Internal server error for all pages of my website, except the index page.

Sometimes, the page is displayed correctly, sometimes, i have an error 500. it’s like random.

My configuration DEBIAN :

PHP

PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli) (built: Jun 28 2011 08:24:40)

Copyright © 1997-2009 The PHP Group

Zend Engine v2.3.0, Copyright © 1998-2010 Zend Technologies

with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

To check :

  • I put YII_DEBUG => true or false, same result.

  • No error in syslog php

  • No error in /var/log/apache2/error*.log

  • I put display_error => On or Off, same result.

I don’t know where is the problem.

Thank you for you reply.

Ludovic

Try this:

in config.php, section "components", find a "log" and change it to this:


'log' => array(

    'class' => 'CLogRouter',

    'routes' => array(

        array(

            'class' => 'CWebLogRoute',

        ),

    ),

),

Thank you for your reply.

It’s the same thing. Same problem.

my brain is over !

And the index page is displayed correctly every time?

Hi I have same issue,

in my case, when I load some pages shows 500 Internal Server Error but when I reload page it loads fine.

I think this is happening because my app is under shared hosts and recent days the server has been unstable and overhead. So could be that requests are not being completed due to lack of memory resources. App in my local pc works fine.

‘log’ => array(

'class' => 'CLogRouter',


'routes' => array(


    array(


        'class' => 'CWebLogRoute',


    ),


),

),

right!!!!!!!