Server OS: Linux CentOS (kernel v2.6.34.6) on HostGator
PHP Version: 5.2.14
MySQL Version: 5.1.50 (using phpMyAdmin 3.2.4 for edits)
Is pdo_mysql installed? Yes
Browser type and version: Tried in Firefox 3.6.10, IE 9 beta, Chrome 6.0.4
Problem:
After upgrading from Revolution 2.0.0-beta-5 to 2.0.3-pl, I am getting this error using a known good login/password:
’That account could not be located. Check the username and re-type the password to try again.’
The public websites themselves are working fine after the upgrade.
I upgraded by uploading new files to the server, overwriting the old ones, then running setup using the upgrade option. Everything went fine - no warning or error messages.
I have tried the following fixes:
- Re-running setup
- Deleting the setup directory, re-uploading it, and redoing the upgrade.
- Tried running setup as a new installation, but it didn’t like that my table prefix was the same and would not let me proceed. I have a lot of site data that I can’t afford to lose by setting up new tables.
- Re-uploading all files
- Deleting the entire contents of /core/cache except for index.html, while clearing browser cache/cookies
- Deleting everything in the modx_session table
- Searched for the 3 old session_* values in modx_system_settings, but they were already gone
- Tried sending myself a username/password via email. Received the email with new password but I get the same error on login.
Other notes:
I have multiple websites set up in different contexts, named after the hostnames, without a period. I am using the following plugin code with the OnHandleRequest event to switch contexts depending on the hostname - this has always worked before and works fine still on the public side:
$a = array(
'hostname1.com',
'hostname2.com',
'hostname3.com'
);
$host = $modx->getOption('http_host');
if (in_array($host, $a)) {
$i = array_search($host, $a);
$context = str_replace('.','',$a[$i]);
$modx->switchContext($context);
}
I have been trying to figure this out for the past couple days and I am at a loss. Any help would be appreciated.