Internal 500 error.

Login or register to post comments
12 replies [Last post]
Offline
Joined: 03/09/2009

I am moving a qcubed application from one hosting server to another hosting server and I am getting an internal 500 error. I make sure all files and folders are set to 777. The new server is running ISPconfig3. Is there any changes I need to make to apache or php.ini to get qcubed to run?

Thanks

Offline
Joined: 04/22/2009

500s are ugly because 'internal error' does give a lot of info, does it?
I had once trouble with that when my apache was configured with 'Deny from all' for the DocumentRoot.

Cheers

Helge

alex94040's picture
Offline
Joined: 11/06/2008

I would also recommend looking into Apache error logs to see what the root cause is behind this.

Offline
Joined: 03/09/2009

    <Directory /var/www/clients/client7/web22/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

That looks correct.

In error.log this shows up:

[Mon Feb 14 10:06:33 2011] [notice] mod_fcgid: process /var/www/domain.com/web/backend/qcodo/assets/php/_core/calendar.php(3373) exit(lifetime expired), terminated by calling exit(), return code: 255
[Mon Feb 14 10:22:59 2011] [notice] mod_fcgid: call /var/www/domain.com/web/backend/qcodo/assets/php/_core/calendar.php with wrapper /var/www/php-fcgi-scripts/web22/.php-fcgi-starter

alex94040's picture
Offline
Joined: 11/06/2008

What version of QCubed, and PHP/Apache are you running?

Offline
Joined: 03/09/2009

I believe I tracked down where the error is in the script.

Line 54 of qcodo.inc.php. ob_start('__ob_callback');

Not sure what is causing my configuration to screw that up.

Any suggestions would be awesome.

Thanks

Offline
Joined: 03/09/2009

'QCODO_VERSION', '0.3.43 (Qcodo Beta 3)'

Apache 2.2.14

Also I am running ISPconfig3

Offline
Joined: 03/09/2009

More debugging:


function __ob_callback($strBuffer) {
return "test";
//return QApplication::OutputPage($strBuffer);
}

Returns test. Something in $strBuffer is not liking to be buffered out.

Offline
Joined: 03/09/2009

Doing more debugging I see:

  1. ob_start(__ob_callback) is called
  2. Qcodo processes all the forms and what not
  3. At the end __ob_callback($strBuffer); is called
  4. Inside QApplicationBase.class.php OutputPage() is called
  5. Once that is returned, then _oob_callback returns and then I am not sure what happens next
  6. Shouldn't ob_end_flush() be called somewhere?
  7. Also is there anyway to go step by step to see what gets added to $strBuffer ??
Offline
Joined: 03/09/2009

Anyway I can debug whats in $strBuffer to see what is causing it to give me an internal 500 error. If i replace return 'test' inside __ob_callback I get test on the screen yet if I replace return 'test' inside QApplicationBase.class.php OutputPage() I get an internal error 500.

Offline
Joined: 03/09/2009

ISPConfig let me on a goose chase. The logs file is under each site in a logs directory with error.log. The first error was: mod_fcgid: stderr: PHP Fatal error: Class 'QApplication' not found in /var/www/clients/client7/web22/web/backend/qcodo/includes/qcodo/_core/qcodo.inc.php on line 47

I fixed this by defining QApplication inside qcodo.inc.php on line 45 right below error.inc.php is included.

Now I am on to this error:

mod_fcgid: stderr: PHP Fatal error: Method QDateTime::__tostring() cannot take arguments in /var/www/clients/client7/web22/web/backend/qcodo/includes/qcodo/_core/framework/QDateTime.class.php on line 337

Offline
Joined: 03/09/2009

Fixed the error above. I guess the version of Qcubed I am using is not compadible with PHP 5.3. I used a back ported version: http://tracmor.googlecode.com/svn-history/r666/trunk/includes/qcodo/_cor... and fixed it.

On to the next error:

Declaration of QQSubQuerySqlNode::GetColumnAlias() should be compatible with that of QQNode::GetColumnAlias()

Source File: /var/www/clients/client7/web22/web/backend/qcodo/includes/qcodo/_core/framework/QQuery.class.php Line: 1068

Line 1068: }

alex94040's picture
Offline
Joined: 11/06/2008

I encourage you to switch to the latest supported version of QCubed (2.0.2) to avoid issues like this in the future.