Support

Admin Tools

#31295 Can't update or install

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
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Tuesday, 30 April 2019 00:25 CDT

dc8l7Yf
I am trying to upgrade Admin Tools from 5.2.1 to 5.3.1 and receive this error:

Warning
Joomla\Filesystem\File::delete: Failed deleting inaccessible file mysql.xml
Package Update: There was an error installing an extension: com_admintools-pro.zip

I see a mysql.xml file in administrator/components/com_admintools/sql/xml, and the permissions are set to 755.

Is there a file with the same name somewhere else? Should the permissions be set differently?

Thank you.

nicholas
Akeeba Staff
Manager
Delete the folder administrator/components/com_admintools/sql, then retry the update.

This has nothing to do with our code, actually. It's a problem between your host's operating system and PHP, affecting Joomla's own code which is installing the updates. This happens when the ownership (NOT permissions) of the administrator/components/com_admintools/sql folder and / or its contents prevent the user PHP is running under from deleting or replacing that folder and its contained files. The deletion / replacements is something that Joomla itself does when installing an update and cannot be controlled by the code we publish.

FWIW it looks like Joomla started reporting this problem only after 3.9.5. Before that it would silently fail to replace the files, causing all sorts of weird issues which made us give the standard advice "try to install the update twice in a row, without deleting anything in between". That advice would work around Joomla not being able to copy files and execute the database table update despite the fact that the files were not ever copied to the destination directory, taking advantage of a quirk in how Joomla's extensions update code worked. At least now you get an error message that helps you solve the real root cause, even if it's a bit confusing as to where that message comes from.

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!

dc8l7Yf
Thank you for taking the time to make such a detailed response. That explains everything clearly. I was able to delete that folder and update successfully.

nicholas
Akeeba Staff
Manager
You're welcome!

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!