Support

Site Restoration

#29831 Issues on Akeeba components after restoration

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 Alfano on Monday, 02 July 2018 10:53 CDT

Alfano
Hi,

I restored a site from a staging server over a production server.
After a first attempt failed (I accidentally closed the browser window while restoring, so for safety started the process again), everything seemed to work fine.

But, as I went to the Admin Tools pro component page in the backend, I had the page without any style (see attachment). Tried to reinstall the component, but with no results, either installing over the exixting one, or unistalling and reinstalling.

More, as I went to the Akeeba backup component, I got a 404 error.

The site front end seems to work without errors.

Can you please help?
Ragards
Marco

nicholas
Akeeba Staff
Manager
This is not a CSS issue. If you look closely you'll see that most of the page is missing. This looks like a PHP fatal error issue.

First, check your server's error logs (not the access logs) immediately after visiting the page which throws the error. There should be an exact description of the PHP fatal error which occurred. Sometimes you can find the error messages in files called error_log or error.log inside the site's root and/or administrator directories. If unsure about the error log location, please consult your host. Most likely the error logs are available in your site's cPanel, Plesk control panel or similar hosting account management facility.

If your host does not give you access to the error logs and you have access to the Joomla! administrator area, please log in to your site's back-end, go to Global Configuration, click on the Server tab and set the Error Reporting to Development. Try visiting the problem page again.

If you still get a blank page, edit your configuration.php file and put the following code right after the final closing curly brace ( this is what a curly brace looks like --> } ) but before the closing PHP tag (it looks like ?> that is a question mark and a greater-than sign):
ini_set( 'display_errors', true );
error_reporting( E_ALL ); 
Try visiting the problem page again.

If you still get a white page, please remote the two lines from your configuration.php file. Edit the .htaccess file in your site's root. If you don't have a file named .htaccess create a new one. Beware that htaccess.txt is a DIFFERENT FILE and will NOT work! Add the following to the end of the file:
php_flag display_errors On
php_value error_reporting 32767
and retry loading the problem page.

If you still get a white page, remove the two lines from your .htaccess file. Now, create a file called php.ini with the following content:
display_errors=on
error_reporting=E_ALL
and upload it into your site's root and your site's administrator directory. Retry loading the problem page.

IMPORTANT: Sometimes the error won't show. Edit your configuration.php and find the line starting with public $error_reporting and set it to:
public $error_reporting = 'development';

This instructs Joomla! to enable maximum error, warnings and notices verbosity. In 99.9% of cases it will result in the error messages being shown on the browser.

Please note that if you can not understand what the PHP error message means, just copy and paste it here verbatim so that we can take a look and point you to the right direction.

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!

Alfano
This is the error I found in the log file:

[13-Jun-2018 13:54:29 UTC] PHP Parse error: syntax error, unexpected '$item' (T_VARIABLE) in /srv/data/web/vhosts/www.ecupharma.it/htdocs/libraries/fof30/Model/DataModel.php on line 1863

nicholas
Akeeba Staff
Manager
This is a known issue with PHP 5.4. Please install the development release of FOF (https://www.akeebabackup.com/download/developer-releases/fof-dev/revaa55c503.html) or upgrade your PHP version to at least PHP 5.5 (5.6, 7.1 or 7.2 strongly recommended). The latter solution is much more preferable since PHP 5.4 and 5.5 are already end of life and they no longer receive security updates from its developers.

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!

Alfano
Thank you, upgrading the server solved the issue.

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!