Support

Akeeba Backup for Joomla!

#20936 Fatal error: Cannot redeclare class AkeebaUsagestats

Posted in ‘Akeeba Backup 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
Akeeba Backup version
n/a

Latest post by nicholas on Friday, 12 September 2014 13:04 CDT

trogladyte
Description of my issue:

The full error message is -

Fatal error: Cannot redeclare class AkeebaUsagestats in /home/<cpanel-name>/public_html/administrator/components/com_akeeba/assets/stats/usagestats.php on line 4

I saw one ticket from a few days ago and was going to add to it, but couldn't see how to - last entry was today. I have the identical problem. When updating (haven't tried a new install) the updates stall on Akeeba Backup and give me an unformatted screen - no graphics, just text. If I refresh the admin returns t normal and the update has happened fine. However, is I'm doing multiple updates, any after AB don't get processed.

I checked with my host regarding PHP caching and they confirmed none of those are active on my server.

It's more an annoyance than a failure and just requires a refresh.

trogladyte
Hi Nicolas

It seems that subsequent processes are happening. Here's a screenshot of the screen I see.

nicholas
Akeeba Staff
Manager
We will add a workaround in the next release

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!

trogladyte
Thanks Nicholas. As I mentioned, not a critical thing despite it being a "Fatal error" - just another step needed to complete. Thanks.

nicholas
Akeeba Staff
Manager
The only problem is that we can't reproduce this issue and it doesn't make any sense. The class file is only included once. My solution is to check if the class is loaded before including the file. It's a bit like checking you are not already in a room before walking into the room, but what the hell, if it happens on some servers there is a good reason to apply a crazy fix.

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!