Support

Admin Tools

#37221 Unable to update AdminTools

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

Latest post by dabramson on Wednesday, 01 June 2022 15:29 CDT

dabramson

Hi,

The component is not showing, and no package is available to uninstall.  When I try to update I get the following message:

 

Warning JInstaller: :Install: Error SQL Unknown column 'admintools_filescache_id' in 'jhuy8_admintools_filescache' Extension installation aborted. Package Update: There was an error installing an extension: com_admintools-pro.zip Before updating ensure that the update is compatible with your Joomla! installation.
You are strongly advised to make a backup of your site's files and database before you start updating.

System Task
system
The ticket information has been edited by Dina Abramson (dabramson).

System Task
system
The ticket information has been edited by Dina Abramson (dabramson).

nicholas
Akeeba Staff
Manager

For some reason Joomla thinks that the Admin Tools package extension is installed and tries to perform an update. During the update it cannot find the table jhuy8_admintools_filescache or at least its admintools_filescache_id column. Essentially, Joomla's database seems to be out of sync with what is actually installed on your server's disk and what is installed on your server's database. This is extremely rare but can happen if you had a previous update which partially failed, or restored the database (but not the site files!) from a backup which had an older version of Admin Tools. Joomla performs updates on the database based on the information it stores in the database, without checking if what it's trying to do is right (the extensions updates are NOT idempotent, a fact I have criticised since circa 2009).

We will have to remove everything related to Admin Tools manually to help Joomla get everything back in sync. To do that, we have to do a little bit of fiddling in the database.

IMPORTANT: If you have a recent backup of your site it's a better idea to restore that backup instead of following the instructions below.

Please try removing all installed extensions which contain Admin Tools in their name.

Then, delete the database tables whose name starts with jhuy8_admintools_ 

Check the jhuy8_extensions table. Look for an entry with element=com_admintools and note down the value of the extension_id (it's a number, e.g. 1234)

In the jhuy8_schemas table find the entry whose extension_id value matches the value you found above. If there is no such entry or you didn't find an extension_id in the previous step you can safely skip this.

Now you should be able to install Admin Tools from scratch.

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!

dabramson


Thank you, that fixed it.  

 

Appreciate the quick response.

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!