Friday, January 27, 2012

modx 2.2 upgrade from 2.0 error 500

There were seems to some configuration changes from 2.0 to 2.2 on core/config/config.inc.php.
When i was upgrading, the test database seems to response with an error 500.
After inspecting core/cache/logs/error.log, it shows "no database selected"

So i went into editing core/config/config.inc.php and found the $dbase = "{dbase}"
Using setup with advanced configuration does not seems to do the trick.
The solution now is to edit core/config/config.inc.php and set $dbase = "`mydatabasename`"
and $database_dsn = 'mysql:host=localhost;dbname=mydatabasename;charset=utf8';

Take note on the different between the 2, one with `` delimiter, and one without.
Next, rerun setup for upgrade shall do the trick :)

No comments: