No Code Attached Yet bug
avatar joeforjoomla
joeforjoomla
25 Jun 2025

Steps to reproduce the issue

Install an extension using a install script and the Installer class:

$instanceInstaller = new Installer ();
if (! $instanceInstaller ->install ( $path )) {

}

Expected result

Works

Actual result

The installer now misses the database

System information (as much as possible)

[6.0] alpha 2

Probably related to:

#43792
#43793

Additional comments

Instead than force the extensions code to update, to avoid b/c break better to ensure the database can always be self referenced by the Installer as up to Joomla 5.4

Image

avatar joeforjoomla joeforjoomla - open - 25 Jun 2025
avatar joomla-cms-bot joomla-cms-bot - change - 25 Jun 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Jun 2025
avatar joeforjoomla joeforjoomla - change - 25 Jun 2025
The description was changed
avatar joeforjoomla joeforjoomla - edited - 25 Jun 2025
avatar joeforjoomla joeforjoomla - change - 25 Jun 2025
The description was changed
avatar joeforjoomla joeforjoomla - edited - 25 Jun 2025
avatar conseilgouz
conseilgouz - comment - 27 Jun 2025

confirmed

avatar QuyTon QuyTon - change - 27 Jun 2025
Labels Added: bug
avatar QuyTon QuyTon - labeled - 27 Jun 2025
avatar conseilgouz
conseilgouz - comment - 1 Jul 2025

maybe just a documentation update : add setDatabase before calling install method. Something like :

$instanceInstaller = new Installer ();
$instanceInstaller->setDatabase($this->db);
if (! $instanceInstaller ->install ( $path )) {

}

avatar conseilgouz
conseilgouz - comment - 1 Jul 2025

or, in libraries/src/installer, update Installer.php so that setDatabase is performed in construct function instead of getInstance

avatar conseilgouz
conseilgouz - comment - 1 Jul 2025

Note : in J5.3, setDatabase was performed in Adapter construct function.
That's missing in the new Installer construct function.

avatar alikon alikon - change - 1 Jul 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-07-01 10:12:53
Closed_By alikon
avatar alikon alikon - close - 1 Jul 2025
avatar alikon
alikon - comment - 1 Jul 2025

please test #45670

Add a Comment

Login with GitHub to post a comment