Support

Site Restoration

#39273 Site Restoration Failure - site.org/administrator error: Class 'Joomla\Console\Application' not found

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.4
CMS Type
Joomla!
CMS Version
3.10.12 & 4.3.3
Backup Tool Version
Akeeba 8.3.2 & 9.6.2
Kickstart version
n/a

Latest post by nicholas on Wednesday, 02 August 2023 02:07 CDT

Mike K

Using Akeeba Backup I created a copy of my Joomla 3.10.12 website: FBCFalun.org.  I fully restored it to another domain I own as a sandbox of my site.  I then successfulyy upgraded the sandbox to Joomla 4.3.3.  I use a Shape5 template that had issues with a menu plugiin that I was finally able to get from Shape5 so that I could upgrade the sandbox site to Joomla 4.3.3. 

Having gotten the sandbox upgraded and working yesterday I proceeded to upgraded my main site (FBCFalun.org) to 4.3.3.   After the upgrade the website failed to load correctly. I could access the backend.  I changed the default template to Cassiopia and the frontend began working, but since the site was built on the Shape5 menu plugin nothing on the site could be accessed.  

After multiple attempts to address the template plugin issue I decided to restore the site back to Joomla 3.10.12.  I had made a backup just prior to upgrading to 4.3.3.

Today I used Akeeba Backup 9.6.2, installed on FBCFalun.org, to restore the backup I made yesterday of the 3.10.12 version of the site.  

I opened Manage Backups from the Akeeba Control Pannel, selected yesterday's 3.10.12 backup and selected restore.  Everything proceeded as expected.  I selected 'Remove The Installation Directory" and then clicked on "Visit your site's front end." Actually, I right clicked and selected enter in a new tab and got the attached error message on the website frontpage.  

I tried logging into the backend and received the this message: 

An error has occurred.
0 Class 'Joomla\Console\Application' not found

 Return to Control Panel

 

For now I have my website redirecting to my sandbox which is working fine.  

I am at a total loss as to what happened and how to fix this.

Mike K

p.s For some reason, I was not able to insert an image into my post because I couldn't find any way to upload in image through the image manager. 

 

 

 

nicholas
Akeeba Staff
Manager

Do not try to restore Joomla 4 on top of Joomla 3 or vice versa. As per the documentation:

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.

https://www.akeeba.com/documentation/akeeba-backup-joomla/restoring-backups.html#general-guidelines

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!

Mike K

Nicholas,

Well, I did what I shouldn't do by trying to install a Joomla 3.10.12 backup on a Joomla 4.3.3. install.

So I could use some guidance on ways I can proceed.  What are my options? 

The 3.1012 backup files that I tried to restore over the 4.3.3 install are located in public_html/domain/administrator/components/com_akeebabackup/backup.

I would rather use the existing files and not create a new database to get my site functioning again.  If my only option is to use Kickstart, what do I do with my existing files in public_html/domain/?

Mike

 

nicholas
Akeeba Staff
Manager

As per my previous message, delete your existing files and restore the backup again.

The idea is this.

Keep a copy of your backup archives somewhere safe. Make sure you copy the entire folder holding the backups. Keep at least two separate copies, one of them offline. The concept is that if you click the wrong thing and accidentally delete your subdomain and its backups you will at least have a copy of it somewhere safe. As always: you can never have too many copies of your backups.

Delete Joomla's folders from where you are restoring to: administrator api cache cli components includes language layouts libraries media modules plugins templates tmp

Upload the backup archive and Kickstart.

Run Kickstart to extract the backup archive.

The rest of the restoration is the same no matter how you do it. It's the installer which is contained in the backup archive itself. In the database restoraiton page set Existing Tables to Drop Same Prefix. This will remove all tables with the same prefix as the one used for your site.

After a successful restoration you can of course delete the files and database tables of the subdomain you were using for development. Afterwards, and after making sure your site works fine, you can delete the copies of the backups you made earlier.

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!