Updating Joomla and Php gone wrong

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
Viktore
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Oct 25, 2021 8:00 am

Updating Joomla and Php gone wrong

Post by Viktore » Mon Oct 25, 2021 8:10 am

Hi,

Yesterday I updated Joomla version from 3.10 to 4.0.3, at the same time I updated the php version from 7.3 to 8.0.
Unfortunley I can't access my website by typing in the webadress, I only reach an error site.
While trying to acess by the admin page I also get an error message saying: Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin()

https://kardaallians.se/

Right now I am out of options, have no clue what to do.
Any ideas?

Thanks in advance
Viktor

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 11191
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Updating Joomla and Php gone wrong

Post by sozzled » Mon Oct 25, 2021 8:20 am

Looks to me that the migration from J! 3.10.something to J! 4.0.3 didn't go smoothly. You have an error in the database table:

Code: Select all

PrepareStatementFailureException

Unknown column 'm.publish_up' in 'where clause'
It looks like the error is coming from the _menu table.

I don't see evidence of an error caused by the misuse of isAdmin() in J! 4.

Easiest fix at the moment is to DROP all J! 4 tables, delete the J! 4 filesystem and restore the site back to J! 3.10.something from your backup. Then you can look for cases where you're using isAdmin() and fix them. ;)
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

Viktore
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Oct 25, 2021 8:00 am

Re: Updating Joomla and Php gone wrong

Post by Viktore » Mon Oct 25, 2021 8:48 am

Thanks for quick response!

I know it's stupid but what if I don't have a resent backup? Am I screwd then? :)
Can I install the J! 3.10 by puting in the right folders in file manger?

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4457
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Updating Joomla and Php gone wrong

Post by gws » Mon Oct 25, 2021 11:50 am

Most hosts do backups fairly often, ask them if they can restore to a relevant time frame.

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

Re: Updating Joomla and Php gone wrong

Post by AMurray » Mon Oct 25, 2021 10:19 pm

Then go back and install Akeeba Backup, and enable the backup on update plugin (this is a Pro version feature, but well worth it).

No you can't simply overwrite the J4.0 files with 3.10 files.

Your hosting control panel should have some method to restore backups. My host has a handy backup utility through which I can do my own backups and restore.....but for Joomla I use Akeeba.
Regards - A Murray

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 11191
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Updating Joomla and Php gone wrong

Post by sozzled » Mon Oct 25, 2021 10:24 pm

AMurray wrote:
Mon Oct 25, 2021 10:19 pm
Then go back ...
How can the OP do that when the OP updated from J! 3.10 -> J! 4.0.3 without taking a backup beforehand (unless they were lucky and the webhosting provider offers this service). Some webhosting providers offer a service like this (with, perhaps, a 24-hour turnaround) and some webhosting providers don't. It's based on the throw of the dice.

@Viktore: without a backup it's still possible to repair your broken J! 4.0.3 website if you have the technical skills and can work your way through the database and filesystem. If this is important to you and you don't have the skills there are professionals who can help. See viewforum.php?f=177 8)

Otherwise—and this may seem a tough lesson to be learnt—you'll have to start again. Good luck.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

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

Re: Updating Joomla and Php gone wrong

Post by AMurray » Tue Oct 26, 2021 10:07 pm

Agreed, using the web hosts backup may nor may not come to fruition.

My comment was in response to @gws suggestion about utilising the webhost to see if they can restore the site.
Regards - A Murray


Post Reply

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