Support

Site Restoration

#37758 error after swapping restored site

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
13.10.11
Backup Tool Version
8.1.10
Kickstart version
8.1.10

Latest post by nicholas on Tuesday, 20 September 2022 09:46 CDT

richardball

I don't think this is an Akeeba problem but I am hoping that with your experience of restoring sites you may be able to point me in the right direction. 

I did a back up of the existing site with akeeba and restored it into a sub folder of the same site as the web manager wanted to work on re-arranging the menus and the articles. 

it worked fine in the sub folder and is now ready to take over from the existing site. 

I moved the new sub folder to be on the same level as the existing public_html folder

I assumed that if I now simply renamed the existing public_html folder  (CPanel)  and changed the name of the new folder to public_html I should be able to run the altered site from the main domain name (having adjusted the paths in the configuration file)  - I have done this before successfully - but not this time - I got an odd error

0  syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)

on the browser page and no errors in error logs behind the scenes. 

I have moved the new sub folder back inside the original public_html folder and both work as before. 

If you have any suggestions as to how I should proceed so as to get the new site in place of the old I would be most grateful. As it gave me the error above I am really scared of simply restoring it over the old site. 

Many thanks,

Richard Ball

 

nicholas
Akeeba Staff
Manager

Go to cPanel and change the default PHP version for the new directory you created.

Remember, PHP versions are applied per site root directory, not per site domain name. Most likely your server's default PHP version is something much older, e.g. 5.4, and you just need to set it to PHP 7.4 instead.

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!

richardball

Thank you very much for your help - that is not something I had thought of and will try it later today. 

Many thanks, 

Richard

richardball

Thank you very much for your help. Updated site now working fine. 

Richard

nicholas
Akeeba Staff
Manager

You're welcome!

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!