Hi!
Trying to upgrade from 2.2.9 to 2.2.10 on a test installation, I stumbled upon another strange problem.
Since I do not know, if this problem is related to another problem I just posted (2.2.10 installation quirks / empty username column after installation), I start a new thread for this one.
I ran into this problem when upgrading from 2.2.9 to 2.2.10, but it seems that can it be reproduced (at least on my system) with a fresh install of 2.2.10.
To my mind, it should be possible to do an upgrade installation on a fresh install.
So I perform a fresh install and leave the setup folder in place.
If I click "next" while "Upgrade Existing Install" is selected I get the error:
Database connection failed!
Setup will attempt to create the database.
Strange thing is, that left to "Database connection failed" is a green icon, while the message itself is written in red.
Anyway the following error pops up in the install log:
[2013-10-24 08:32:45] (ERROR in xPDOConnection::connect @ /var/www/default/wwwroot/tools/modx/core/xpdo/xpdo.class.php : 3051) SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'modx'
This is strange, because the user should be "modx_dummy" on database "modx_dummy".
The page and the manager work fine at this stage!
If I add
$this->xpdo->log(xPDO::LOG_LEVEL_ERROR, print_r($this->config, true), '', __METHOD__, __FILE__, __LINE__);
just before the creation of the xpdo object in core/xpdo/xpdo.class.php, I get
[2013-10-24 08:44:04] (ERROR in xPDOConnection::connect @ /var/www/default/wwwroot/tools/modx/core/xpdo/xpdo.class.php : 3049) Array
(
[cache_path] => /var/www/default/wwwroot/tools/modx/core/cache/
[table_prefix] => modx_
[setup] => 1
[dbtype] => mysql
[host] => localhost
[dbname] => modx
[charset] => utf8
[dsn] => mysql:host=localhost;dbname=modx;charset=utf8
[username] =>
[password] =>
[driverOptions] => Array
(
[3] => 0
)
)
in the log.
These are obviously not the correct credentials and I don't know where these come from, since the page + manager work fine.
Any ideas?
Greetings
Nico