Summary

jUPGRADE fails to connect to mysqli database because
com_jupgrade/includes/install_db.php line 56 contains getDBO() call with hard-wired 'mysql' driver.

This causes many people to complain about getting "[unknown] [unknown]" during upgrade. But Apache error log shows:

[Sun Aug 26 16:40:00 2012] [error] [client ::1] PHP Fatal error: Uncaught exception 'JDatabaseException' with message 'JLIB_DATABASE_ERROR_CONNECT_DATABASE' in (...)

WORKAROUND:
-----------
change 'mysql' to 'mysqli' when using mysqli database

FIX:
----
make 'mysql' or 'mysqli' to be chosen from setting in Parameters page
Opened On:
26 Aug 2012, 10:49 by Miroslav V
Status:
Open

Filed Under

  • 1.5 to 1.6
  • Apache 2.2.x
  • com_jupgrade
  • MySQL 5.2.x
  • PHP 5.3.x

Responses

Posted on 26 Aug 2012, 11:00 by Miroslav V
if you are not familiar with code changes but mysqli is your database type and you need instant fix, then

1. open the file (your-web-root)/administrator/components/com_jupgrade/includes/install_db.php in editor

2. locate line starting with $config['dbo'] (it should be line 56)

3. find 'mysql' later in the line and add 'i' so it becomes 'mysqli'

4. save and verify

5. re-launch the migration