Internal 500 error.
Mon, 02/07/2011 - 22:20
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

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
I would also recommend looking into Apache error logs to see what the root cause is behind this.
<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
What version of QCubed, and PHP/Apache are you running?
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
'QCODO_VERSION', '0.3.43 (Qcodo Beta 3)'
Apache 2.2.14
Also I am running ISPconfig3
More debugging:
function __ob_callback($strBuffer) {
return "test";
//return QApplication::OutputPage($strBuffer);
}
Returns test. Something in $strBuffer is not liking to be buffered out.
Doing more debugging I see:
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.
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
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: }
I encourage you to switch to the latest supported version of QCubed (2.0.2) to avoid issues like this in the future.