Support

Admin Tools

#38179 Cache clean-up task doesn't work after 7.2 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
4.2.6
PHP version
8.1
Admin Tools version
7.2.0

Latest post by kshw35sPwrtJM on Friday, 16 December 2022 03:29 CST

kshw35sPwrtJM

After Admin Tools 7.2.0 update, the Cache clean-up task stopped to work and displayed a black runner icon (lazy scheduler or cron modes).
How to reproduce ?
Remove all tasks from the scheduler and empty the trash.
Create a new Cache clean-up task (expire or delete).
Click on Run Test
The first time, the following message is displayed:

Status: Terminated
Output:
An error has occurred while fetching the JSON data: HTTP 500 status code. Internal Server Error

Thanks a lot.

nicholas
Akeeba Staff
Manager

Ah, that's because Joomla 4.2 has replaced $this->app with $this->getApplication() in plugins. Yeah, I had reported to the project that this kind of change without a fallback in a magic __get would cause exactly this kind of problem because it's really hard finding all instances of this code across all plugins in a developer's portfolio without false positives or false negatives. Well, it looks like I was right. Sigh…

Please install this dev release https://www.akeeba.com/download/admin-tools-professional/7-2-1-dev202212150737-rev6d5bf651.html and let me know if it fixes this issue for you as I see it does for me. If I can get confirmation I'll make a bug fix release tomorrow. I consider broken automation to be a high priority issue which warrants an emergency release.

Thank you in advance and thank you again for your issue report!

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!

kshw35sPwrtJM

Thanks Nicholas for your new release. It has perfectly solved this issue.

I will restart the lazy scheduler in order to see if everything goes back to normal, because all other Admin Tools tasks were halted as well.

nicholas
Akeeba Staff
Manager

Thank you for the feedback!

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!

kshw35sPwrtJM

I can confirm that the tasks I tested have all resumed with lazy scheduler or cron jobs.
If the black icon was displayed, I recreated the tasks from scratch in order to make it work.
Without the black icon (tasks disabled) or from a previous version of Admin Tools, it seems the tasks could resume by themselves.
Thanks again for your excellent extension and support.

Christophe Lance

nicholas
Akeeba Staff
Manager

You're welcome!

BTW, the little black running person icon works like “Checked Out” in articles. If you click it, the running condition gets reset and the icon disappears. Nothing's really documented about Scheduled Tasks which is a shame. It's such a cool feature!

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!

kshw35sPwrtJM

Oh, thanks, good to know. Why didn't they use any padlock icon ? I would have understood its purpose right away.
Have a great day !

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!