Q: How to Revive old Joomla under PHP7

Need help upgrading your Joomla! website or converting to Joomla! 3.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.
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Jan 16, 2018 9:52 am

Q: How to Revive old Joomla under PHP7

Post by LinuksGuru » Tue Jan 16, 2018 10:07 am

Hi !

I run into nasty problem with old Joomla 3.x install from old server on new one with PHP7.
All files and mysql db have been copied to the new location. However, Joomla pages are not accessible because of PHP7 incompatibility.

stderr: PHP message: PHP Fatal error: Cannot use Joomla\\String\\String as String because 'String' is a special class name in /var/www/clients/client1/web8/web/jml/libraries/vendor/joomla/registry/src/Format/Json.php on line 12

Old server is not accessible anymore, and therefore, its not possible to upgrade Joomla and move again. And there are no PHP 5.5 on new one. Its actually a catch 22.

I've tried this script
https://gist.github.com/mbabker/d7bfb4e ... -readme-md
and got same php error.

Another article describes how to move Joomla content manually, however, it resulted in non-working system.
http://buckleupstudios.com/move-a-jooml ... ew-server/

So, now I have old dead Joomla, and fresh install of new one (which works).
I can copy mysql db, its not a problem.

Q: How to move user-created files manually, so no stuff will be lost?
Thanks in advance for any help.

User avatar
Joomla! Ace
Joomla! Ace
Posts: 1038
Joined: Sat Jul 08, 2006 7:36 am
Location: India

Re: Q: How to Revive old Joomla under PHP7

Post by subrat » Tue Jan 16, 2018 2:36 pm

what is the joomla version of the old site? cant you upgrade that version in the old environment and then move to the new environment. That way you wont lose any data.

Alternatively you can do create the old environment in your local server and do the upgrade there.
Quality WebDevelopment at http://www.webworkwiz.com
Affordable hosting http://www.vsmhosting.com

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

Re: Q: How to Revive old Joomla under PHP7

Post by AMurray » Wed Jan 17, 2018 9:44 am

Agree with @subrat - how old is "very old" ???

The minimum Joomla version that works with PHP 7 is 3.5.x (and that itself was almost 2 years ago.....).
https://www.joomla.org/announcements/re ... -here.html

What about PHP 5.6? I would say that's fairly common although I think it's heading into its final 12 months support (due to end around January 2019). Refer to http://php.net/supported-versions.php for more info.

Did you do a backup of the old site (with Akeeba backup)? That makes it simple to move a site from one server to another, using the Kickstart script from https://www.akeebaackup.com.

Does your host not have some backward-compatibility contingency plan in place; not every website built on PHP is going to be immediately compatible with PHP 7 - and Joomla is only one of thousands of applications (not just CMS's). My host still has selectable PHP versions back to 5.3.x even though I use 5.6.x or 7.x
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
Joomla! Hero
Joomla! Hero
Posts: 2078
Joined: Tue May 14, 2013 1:21 pm
Location: Cardiff, Wales, UK

Re: Q: How to Revive old Joomla under PHP7

Post by JAVesey » Sat Jan 20, 2018 4:45 pm

Depending on your Joomla version (and how old is "very old") the normal route to catch up would be:

1. Check compatibility and update all your extensions (you should be doing this routinely).
2. Update Joomla version (you should be doing this routinely).
3. Update your PHP version (assuming all your extensions are compatible).

I would install a local environment on your PC (MAMP. LAMP, XAMPP) and get your existing site working on that from your backup (which I"m assuming that you did before attempting to update and move servers). I would then update your local installation's PHP version to match your new server version to check that it works and then move your site to the new server.
John V
Cardiff, Wales, UK
Uses Joomla 3.9.14 and PHP7.4.x

User avatar
Joomla! Master
Joomla! Master
Posts: 19901
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America

Re: Q: How to Revive old Joomla under PHP7

Post by leolam » Sun Jan 21, 2018 9:17 am

Json errors: Most of the time solved with the script of Rob Went https://github.com/robwent/joomla-json- ... /README.md

Leo 8)
Joomla's #1 Professional Support Provider:
-> Joomla Professional Support: https://gws-desk.com -
-> Joomla Specialized Hosting Solutions: https://gws-host.com -
-> Joomla Webmaster Services: gws-webmaster.services


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