Support

Admin Tools

#37445 Was on AdminTools 5.9 and getting error trying to upgrade to current version

Posted in ‘Admin Tools for Joomla!’
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
3.10.10
PHP version
8.1.7
Admin Tools version
n/a

gzartman

I was attempting to upgrade to the current version of admintools, but keep running into an error on install.  See attached screen shot.  I can update/install any other component/extension.

gzartman

Here is screenshot.  Keep having a hard time attaching it.  

 

Note:  Still didn't work.   Hopefully this link will:  Screenshot

nicholas
Akeeba Staff
Manager

It sounds like something is broken at the server's filesystem level.

First, try deleting the following folders:

  • administrator/components/com_admintools
  • components/com_admintools
  • media/com_admintools (if it exists)
  • plugins/system/admintools

If you get any errors please report them to your host. I give it a 90% chance that this will happen based on the error message about an “inaccessible file” Joomla is showing you.

Once you have fixed any problems and have these folders removed you can install the latest version of Admin Tools 6.

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!

gzartman

I deleted the various directories and when I try to install the latest admintools, I get this:

Warning Joomla\Filesystem\File::delete: Failed deleting inaccessible file admintools.php
Error Error installing package     The joomla install is running on our own Centos box, so we don't have a hosting provider.  I can remove/install other components no problem.  This is the only one that's giving me problems. 

nicholas
Akeeba Staff
Manager

This message is coming from Joomla. Do keep in mind that the code which installs and updates extensions is handled by Joomla itself, not us. Also keep in mind that Joomla's error messages are useless for troubleshooting. I am trying to divine what the problem is without having anything to go by but my experience and a single filename without a path. Since you're a Linux admin I can go more technical and explain how my divination process works :) 

All we have to go by is that there is a file called admintools.php Joomla cannot remove. But where is that file? Well, find to the rescue! From the site's root I do:

$ find . -type f -name admintools.php -exec ls -l \{} \;
-rw-r--r--  1 nicholas  staff  1676 Jul 11 10:22 ./plugins/system/admintools/admintools.php
-rw-r--r--  1 nicholas  staff  1886 Sep 22  2021 ./plugins/system/admintools.php
-rw-r--r--  1 nicholas  staff  25187 Jul 11 10:22 ./plugins/actionlog/admintools/admintools.php
-rw-r--r--  1 nicholas  staff  5923 Jul 11 10:22 ./plugins/installer/admintools/admintools.php
-rw-r--r--  1 nicholas  staff  1182 Jul 11 10:22 ./components/com_admintools/admintools.php
-rw-r--r--  1 nicholas  staff  1968 Jul 11 10:22 ./administrator/components/com_admintools/admintools.php

So, apart from the locations I already told you about (which is where such a problem would usually come from, according to my experience) there are another two directories you will have to delete:

  • plugins/actionlog/admintools
  • plugins/installer/admintools

Then redo the installation as I said in my previous reply. If that worked, stop reading here.

If you still get the same error about an inaccessible file it will be a very useful point: having already deleted all the directories on your site where this file lives, the fact that Joomla still complains would mean that it's complaining about its temporary directory. When you install or update an extension Joomla extracts the ZIP file of the extension in a temporary subdirectory under your site's configured temporary directory. If that subdirectory is deleted outside of Joomla or, at least, outside of the page load performing the extension installation / update Joomla will fail to install the new extension version, hence the “Error installing package” message. It will proceed to the temporary files cleanup stage. But if the file is already gone it won't be able to delete it, hence the File::delete error message. In this case you'll have to set up a different temporary directory in your Global Configuration and disable any third party plugins which may be removing temporary files.

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!

gzartman

After following your last set of instructions and then using the find command for about 4 other admin tools files that Joomla said it couldn't delete, I was greeted with this:

Message

Installation of the package was successful.   

 

However, when I try and access the component or click the setup wizard link, I get this:  404 Component not found.

 

 

gzartman

Follow-up.


I decided to remove Akeeba Backup also and then used the find command you provided to remove everything akeeba related from my joomla install.

 

I then re-installed Admin Tools and it's now working.  It seems something went sideways in a big way with my Admin Tools & Akeeba Installs on my site.

 

My problem now seems to be solved

nicholas
Akeeba Staff
Manager

Most likely something went very bad at the filesystem side on your server. It is rare but it does happen; we do get 1-2 tickets every year with an issue like that and it's happened to me too when an unplanned emergency shutdown (read: the power went off and the UPS decided to also die at the same time...) resulted in the office server's filesystem getting corrupt. You should be able to reinstall both components now without a problem.

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: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!

Summer vacations: Our support will be closed for replies and new tickets from August 6th to August 21st, 2022 due to summer vacations.