Admin Tools

#40045 Error on update

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
PHP version
Admin Tools version

Latest post by nicholas on Tuesday, 26 December 2023 02:23 CST


Akeeba\Component\AdminTools\Administrator\Model\UpgradeModel::postflight(): Argument #2 ($parent) must be of type ?Joomla\CMS\Installer\Adapter\PackageAdapter, Joomla\CMS\Installer\Adapter\LibraryAdapter given, called in /var/www/vhosts/path_to_http/httpdocs/tmp/install_6585c99c8ecf5/script.admintools.php on line 146




Akeeba Staff

This is a bug in Joomla. We've reported it, but they won't fix it. When you try updating different Joomla! extension types at the same time, Joomla! bugs out in subtle ways which undermine the extension update reliability.

For example, do not update a Library extension and a Package extension at the same time. This is what you did.

The reason is a bit technical and has to do with Joomla creating only one updater object, for the first extension it needs to update (in your case: the library), then reusing it even if the extension being updated is of a different type. This causes all sorts of problems, including calling the pre-installation script with the wrong arguments, triggering a PHP error – that's what you have.

Solution: Always update each extension individually.

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!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!