J! 3.10.12 to 4.4.2 migration failed; site restored broken backend

Need help upgrading your Joomla! website or converting to Joomla! 4.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
whennegan
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Feb 12, 2024 1:49 pm

J! 3.10.12 to 4.4.2 migration failed; site restored broken backend

Post by whennegan » Tue Feb 13, 2024 3:02 am

First post!
Experts, thanks in advance for reading, and for all of your input on similar posts I have scoured through before posting here.

I finally had the courage to attempt my migration from 3.10.12 (PHP v8.0) to 4.4.2.
The first place I goofed was not using Akeeba and instead relying on my host's CPanel & server backups.
Second, there were 5-6 plugins with compatibility warnings that I ignored, since I told myself I could revert if something went wrong.
It failed, so I attempted the CPanel home directory restore. That did not complete without errors. My site was back to 3.10.12 but with lots of backend errors.
I asked my host to do a full account restore (not 100% sure what that includes) to 2 days prior. No Improvement.
I noticed file permissions were incorrect on my Joomla directory for some reason, so I corrected that to 755, but we're still not good.
I asked them to re-restore my Joomla SQL DB from the earlier backup, no improvement. Then I read elsewhere here it is best to restore to an empty DB to ensure there's no mix of old/new data, so I had them re-re-restore after that, and added the Joomla account back in with full permissions. Still seeing errors.

Symptoms:
The front end works fine.
On the backend, the control panel, system info, and a few Components pages (e.g. J! Update) work ok.
Most other pages throw an error like this, from "Users > Manage" for example:

Code: Select all

An error has occurred.
Class "JFormFieldPredefinedList" not found
or

Code: Select all

Class "JFormFieldList" not found
or, for the Global Configuration page:

Code: Select all

Call to undefined method Joomla\CMS\Form\Field\PluginsField::getDatabase()
Other errors on the "Joomla Update" page:

Code: Select all

Error
Table '#__joomla.#__history' doesn't exist
Table '#__joomla.#__workflows' doesn't exist
Table '#__joomla.#__workflow_stages' doesn't exist
Table '#__joomla.#__workflow_transitions' doesn't exist
Table '#__joomla.#__mail_templates' doesn't exist
Table '#__joomla.#__guidedtours' doesn't exist
Table '#__joomla.#__user_mfa' doesn't exist
From what I can see, the library PHP files they are looking for do exist, and match what is in the full Joomla original package, and file/user permissions look correct.

Are there other pieces to revert that I am missing?
Would/Should the CPanel account/DB restore method work? If so, should I request an earlier date, or other actions before/after restore is executed?

Thanks so much for your thoughts.

whennegan
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Feb 12, 2024 1:49 pm

Re: J! 3.10.12 to 4.4.2 migration failed; site restored broken backend

Post by whennegan » Fri Feb 16, 2024 4:27 pm

I resolved this finally today.
In short: I needed to delete my whole Joomla website folder and database from CPanel, then request a restore of both from my host.
I will definitely implement a safer and easier backup solution before this happens again.

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9913
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: J! 3.10.12 to 4.4.2 migration failed; site restored broken backend

Post by AMurray » Fri Feb 16, 2024 9:22 pm

Use Akeeba Backup.....easy restoration with its companion Kickstart.
Regards - A Murray
General Support Moderator

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17516
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: J! 3.10.12 to 4.4.2 migration failed; site restored broken backend

Post by toivo » Fri Feb 16, 2024 9:46 pm

whennegan wrote: Tue Feb 13, 2024 3:02 am there were 5-6 plugins with compatibility warnings that I ignored
Check each plugin, not just in JED but from the developer's website, and update or uninstall them before updating to Joomla 4.

As @AMurray mentioned, Akeeba Backup is a good option for backups. The paid Pro version supports offsite data storage of the backup files in cloud services like Amazon, Azure and Google.
Toivo Talikka, Global Moderator

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12809
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: J! 3.10.12 to 4.4.2 migration failed; site restored broken backend

Post by brian » Sat Feb 17, 2024 9:53 pm

AMurray wrote: Fri Feb 16, 2024 9:22 pm Use Akeeba Backup.....easy restoration with its companion Kickstart.
You still need to ensure that you restore to a clean (empty) folder. You can not restore on top
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/


Post Reply

Return to “Migrating and Upgrading to Joomla! 4.x”