The problem has to do with Akeeba Backup trying to figure out how to reuse Joomla's database connection object with its own wrapper. Since Harald's extension overrides the default mysqli driver with something that does not have “mysqli” in its name we cannot find a suitable driver. This triggers an error condition which is picked up by the initialisation code and reports an error.
The backup works either because it runs on CLI (where Harald's extension does not kick in) or because of a fail–over in the backup code which tries to create a new connection using the Global Configuration information when reusing Joomla's connection is not possible.
The fix I applied does a more involved detection of the database connection type in Joomla's database driver object. If the name does not match any known core Joomla driver we start checking the object inheritance hierarchy by object type — most third party drivers will extend a core Joomla database driver. If we still can't figure it out we check the class names in the class hierarchy and try to divine the database connection type. We were doing that in Joomla 3 / Akeeba Backup 8 to some extent but we had not ported that to Joomla 4 / Akeeba Backup 9 because we were not aware of any third party drivers. Now that we are it was easy adapting and improving our old code.
Harald says it works but I'd like another test from you — since you have a positively affected real world site — to be extra sure that we really did get it right with this fix.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!