Support

Site Restoration

#28663 backup file restored fine, but website corrupt

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
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by iwatson on Thursday, 26 October 2017 09:39 CDT

iwatson
Hi, I ran into a perplexing problem when restoring a site from our web server to a local Xampp server.
(Web server is running php 5.6, mysql 5.6.37) The installation went fine, there were no install problems. I could log into the back end and everything looked okay. However, when I displayed the home page, the page was corrupted. I've attached a screenshot. If it may help, these were the errors listed in php_error.log.
Thanks very much for your help,
Ian

[25-Oct-2017 21:24:24 Europe/Berlin] PHP Warning: file_get_contents(C:\xampp\htdocs\afmsa/.htaccess): failed to open stream: No such file or directory in C:\xampp\htdocs\afmsa\installation\platform\models\joomlasetup.php on line 731

[25-Oct-2017 21:25:17 Europe/Berlin] PHP Warning: Class '\Joomla\CMS\Document\Renderer\Html\ModulesRenderer' not found in C:\xampp\htdocs\afmsa\libraries\loader.php on line 648

[25-Oct-2017 22:10:01 Europe/Berlin] PHP Notice: Undefined offset: 1 in C:\xampp\htdocs\afmsa\installation\framework\download\adapter\curl.php on line 218

(Note: I found an earlier ticket where curl.php had an error. I checked and it is enabled in php.ini [extension=php_curl.dll]

nicholas
Akeeba Staff
Manager
All of the warnings you posted are expected, they happen inside the restoration script and we do catch and deal with them internally.

But, these are all unrelated to your issue. When you get unprintable characters / garbage text in your output the problem lies with the GZip compression and PHP displaying some notices or warnings on the page. Both of which can be fixed in your configuration.php file. We need to do two changes. Open the file with a plain text editor (I recommend Notepad++) and do the following:

1. Find the line with $gzip and change it to read
        public $gzip = '0';


2. Find the line with $error_reporting and change it to read
        public $error_reporting = 'simple';


Save the file and reload your site.

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!

iwatson
Hi Nicholas,
Thank you for your quick reply. Those changes fixed the issue.
The site is working fine now.

Thanks again very much,
Ian

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!