Support

Site Restoration

#37672 Call to undefined method Joomla\Component\Scheduler\Administrator\Model\TasksModel::getDatabase()

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
7.2.4
CMS Type
Joomla!
CMS Version
4.1.2
Backup Tool Version
?
Kickstart version
7.1.2

Latest post by nicholas on Sunday, 04 September 2022 12:22 CDT

[email protected]

I typically have no issues restoring my sites, but then, I did not do a full backup this time. Instead, I have been doing fullinc. 

I tried to manually upgrade to 4.2.2 Joomla, and it failed, so I attempted to restore from my last fullinc backup. Now I get the following error on both the admin page, and the main site:

Call to undefined method Joomla\Component\Scheduler\Administrator\Model\TasksModel::getDatabase()

Any way I can save this, or do I need to go back to my last full backup?

nicholas
Akeeba Staff
Manager

If you are downgrading your Joomla version you need to delete the files before restoring a backup as per https://www.akeeba.com/documentation/akeeba-backup-joomla/restoring-backups.html#general-guidelines:

Do not try to overwrite one Joomla! version family with a different one. Overwriting a major version with another (e.g. restoring a backup taken on Joomla! 3.7 on top of a site running Joomla! 2.5 or vice versa) or between different minor versions (e.g. restoring a backup taken on Joomla! 3.7 on top of a site running Joomla! 3.6 or vice versa) will NOT work. Joomla! moves files around between minor and major versions. Since the backup does not delete files not present in the backup archive this will end up with Joomla! being "confused" and malfunctioning. In these cases you should delete the existing files and folders (except, perhaps, user generated content) before restoring the backup. You can safely restore a sub-minor (path-level) version on top of another. For example, you can safely restore a Joomla! 3.7.5 site on top of a Joomla! 3.7.3 site or vice versa.

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!

[email protected]

So, if I rename my Joomla folders with extension _bk (or _old, etc.), and place all the latest .jpa archives at the root where I want to restore, would this work? 

I put the last full backup and all the recent .jpa fullinc at the roomt, and intend to restore from the latest fullinc.

nicholas
Akeeba Staff
Manager

Yes, that would work, of course. Just remember to remove these folders after restoring the backup so you don't end up backing up unnecessary code forevermore :)

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!