Support

Admin Tools for WordPress

#38795 Wordpress reported an error with AdminTools

Posted in ‘Admin Tools for WordPress’
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

WordPress version
6.1.1
PHP version
8.1.13
Admin Tools version
1.6.0

Latest post by nicholas on Thursday, 30 March 2023 08:35 CDT

barredespace

Hello again,

 

Another day, another question, this time regarding AdminTools and Wordpress.

I tried to login to this wordpress website admin this morning and was greeted with an error message stating that the website encountered a problem.

It was just with the backend apparently and I soon received an email that said :

Une erreur de type E_ERROR a été causée dans la ligne 340 du fichier /home/muzeyfyf/public_html/wp-content/plugins/admintoolswp/helpers/admintoolswp.php. Message d’erreur : Uncaught Error: Class "Akeeba\AdminTools\Admin\Helper\Language" not found in /home/muzeyfyf/public_html/wp-content/plugins/admintoolswp/helpers/admintoolswp.php:340 Stack trace: #0 /home/muzeyfyf/public_html/wp-includes/class-wp-hook.php(308): AdminToolsWP::registerDashboardWidgets() #1 /home/muzeyfyf/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #2 /home/muzeyfyf/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /home/muzeyfyf/public_html/wp-admin/includes/dashboard.php(135): do_action() #4 /home/muzeyfyf/public_html/wp-admin/index.php(15): wp_dashboard_setup() #5 {main} thrown

I deactivated AmdinTools and everything returned to normal.

How can I fix this if it is is fixable ?

 

Thanks,

regards

--
Pascal

System Task
system
The ticket information has been edited by pascal Conil-lacoste (barredespace).

nicholas
Akeeba Staff
Manager

Your installation is missing a file. You can very easily fix this.

Download the latest version of Admin Tools from our site.

Extract the ZIP file locally.

You will have a folder named admintoolswp.

Upload this folder into your site's wp-content/plugins folder, overwriting existing folders and files.

The error should now just go away.

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!

barredespace

Thanks Nicholas, that did it.

However, I wonder how a file went missing. I suspect it would happen during an update but the last one dates back to january… 

--
Pascal

nicholas
Akeeba Staff
Manager

I am wondering the same thing as well!

The crazy thing is that the Akeeba\AdminTools\Admin\Helper\Language class —therefore its file, admintoolswp/app/helper/language.php— have been around since the first alpha builds we created internally back in 2017 when we were still developing this product. It's not a new file. Moreover, the last time we did any update to this file other than changing the copyright date was on January 21st, 2020. The next three years all we changed on that file was the copyright from 2017-2020 to 2017-2021, 2017-2022, and 2017-2023. That's the beginning, middle, and end of the changes.

Since this file is basically unmodified for just over 3 years I cannot believe that it's some kind of host suddenly starting to delete it, like what we had seen nearly 10 years ago. I mean, sure, that's a possibility… but it's unlikely. Unless some hosts are running some insanely broken malware scanner which sees INI parsing and misunderstands it as ini_set which modified the PHP configuration. Then again, we do use ini_set in other parts of the code which neither go missing, nor cause any problem. Insane, right?!

Further to that, we have only started seeing this problem since WordPress 6.1.0 was released. At the same time, we also saw problems with updating Akeeba Backup, again pointing to files going missing or at the very least their contents not matching what we ship (and I did checked the files you get from 5 different locations, they are always correct, so it's not an issue with our packaging process or the distribution process, something we last touched a year ago).

I thought this might be something broken in WordPress, but I can't see any change which would corroborate this suspicion. I originally thought that WordPress does not clean the OPcache on update (there's a filter to disable this behaviour and I could reasonably suspect a third party doing something idiotic), but here you are saying that you had installed this update at least two months before this problem occurred.

If you are not sure that the update was installed for a while, please let me know. It would at least not rule out something breaking in WordPress plugin updates.

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!

barredespace

I am pretty sure as I use Watchul.li, a monitoring service, to watch my websites. So I can assure you that Admin tools was updated to 1.6.0 on the 24/01/2023… And it's another possibility to add to your list : Watchful may be messing with the updates 😱

But I've been using this service for 10+ years for 20+ websites (mostly Joomla) and never experienced something like that.

--
Pascal

nicholas
Akeeba Staff
Manager

I am not going to put the blame on Watchful because we have seen it happen on sites which used WordPress itself to update the plugin. 

Moreover, knowing the approximate overlap between users of our software and users of Watchful (based on off-the-record, approximate numbers they shared with us in an in-person discussion a couple of years ago), I don't think they are the problem. If Watchful were to blame I would expect to see a heck of a lot more tickets, much closer to the release of the update. We have seen very sporadic issues.

Finally, I know they don't delete files. The problem here was a missing file.

Let me ask another question. Did that problem happen to all of your WordPress sites or only some of them? If it happened to more than one sites, are they all hosted with the same hosting company or different ones?

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!

barredespace

Actually, I only have two Wordpress sites, and no, the other one had no problem and it is also monitored by Watchful and Admin Tools is up to date.

BUT ! It's not hosted by the same company. The one with the mysteriously missing files is hosted by PlanetHoster, the other one is in a university research lab.

Hope it helps.

--
Pascal

nicholas
Akeeba Staff
Manager

I checked the other reports, they are not on the same host and I have seen that some of them explicitly stated it was WordPress which updated the plugin. It looks like something in WordPress is broken but it only breaks on SOME hosts. To me, it sounds a lot like the bug in Joomla which makes it sometimes forget to copy files on update, something many of us have seen and tried to identify and fix but can't figure out why is happening, or what is triggering it.

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!