Support

Site Restoration

#40853 After restore, front end working, cannot login to backend An error has occurred. 0 Cannot instantiate abstract class Joomla\Module\Login\Administrator\Helper\LoginHelper

Posted in ‘Site restoration’
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

PHP version
n/a
CMS Type
Other
CMS Version
Joomla 4.4.5
Backup Tool Version
9.9.3 (I think)
Kickstart version
8.0.5

Latest post by nicholas on Monday, 24 June 2024 00:52 CDT

RIadmin

This pertains to an under-construction site, so support is not urgent.

In Joomla 4, I had to restore from a backup taken a few hours ago.

It seemed to me that I did all the steps done on previous backup-restores.

But when I did, the front end came back, but on the the admin login page, I get this error:

"An error has occurred.

 0 Cannot instantiate abstract class Joomla\Module\Login\Administrator\Helper\LoginHelper"   and can't log in.     Vicki

 

nicholas
Akeeba Staff
Manager

Did you try to restore the backup on top of a different major Joomla version, e.g. Joomla 5? If that was the case, you need to remove Joomla's core folders before restoring the backup. The core folders are administrator, api, cli, components, includes, language, layouts, libraries, media, modules, plugins, and templates. Remember to keep a copy of your backup archives before removing these folders.

If you were restoring on top of the same Joomla! 4 version then the problem is that there was a bug in one of your extensions or template overrides when you took the backup, you just had not noticed it yet. In this case you can either try restoring an older backup, or troubleshoot the problem by editing your configuration.php file and changing the following lines in it:

public $debug = true;
public $error_reporting = 'maximum';

This will tell you which file and line is causing this 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!

RIadmin

Ah, yes. After taking a backup, I upgraded to Joomla 5, which went smoothly.

I then did a couple of hours of work... but then a crash before I had done another backup (at the Joomla 5 level).

So I just followed your instructions for the first case, and reinstallation all went smoothly.

Thanks a million, Nicholas!

Vicki

nicholas
Akeeba Staff
Manager

You're welcome!

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!