Support

Site Restoration

#11941 Kickstart restore appears to work fine, but site generates 500 error

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

user1488
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.4
PHP version: 5.3.3
MySQL version: 5.0.95
Host: This error has occurred on both an Enzu virtual server and on a VMWare virtual machine
Akeeba Backup version which took the backup: Akeeba Backup Core 3.4.3
Kickstart version used to extract the backup: 3.4.1

Description of my issue: The Kickstart process seems to restore the site perfectly, but when I attempt to visit any page, it throws off a 500 internal server error. I checked the PHP memory limit and it's set to 128MB. The site is currently running successfully on a CloudAccess virtual server (www.soundtraining.net)

Thank you for any assistance.

nicholas
Akeeba Staff
Manager
I believe that the memory limit is completely irrelevant in this case. A 500 error is usually a .htaccess incompatibility or a PHP error in disguise. Please start by following these instructions.

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!

user1488
Thanks for the excellent troubleshooting checklist. I've followed the instructions in the link you suggested:

In configuration.php, the following settings are in place:
public $cookie_domain = '';
public $cookie_path = '';

In php.ini, the following setting is in place:
memory_limit = 128M

In my site's root .htaccess file, there are no settings for php_value, php_flag and AddHandler, I've disabled all the custom redirects, I enabled RewriteBase /

I checked my Apache server and mod_rewrite is enabled.

Also in configuration.php, the live_site variables are not currently set, but even changing them to my site's URL didn't fix the issue.

There is no php.ini file in my site root.

I disabled the Custom 404 component and restored the site, but still get the 500 error.

I grepped my site for any absolute paths in the site root, but didn't find any.

I'm still getting the 500 error. Any help you can provide is greatly appreciated.

nicholas
Akeeba Staff
Manager
OK, we can now be pretty sure that the error is not caused by the .htaccess. This means that you have some sort of PHP error. In order to troubleshoot that, we need to be able to see what the actual error message is. The most practical way is following Phil's advice (the second method he mentions) to turn on verbose error reporting. Do that and paste the error message here. This should give us a hint as to what is going wrong.

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!

user1488
Here's the error:

Fatal error: Call to a member function get() on a non-object in /var/www/html/libraries/joomla/cache/storage/memcache.php on line 114


nicholas
Akeeba Staff
Manager
OK, that's easy! Your old site was using memcache as the cache storage handler, but the new site doesn't support it. No problem, we will revert to the good ol' file storage handler. Open your configuration.php file with a text editor and find the line which begins with
public $cache_handler
and change it to read
public $cache_handler = 'file';
Save that file (and make sure it's uploaded to your site's root), then reload the site. It should now load correctly.

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!

user1488
That worked. Thanks Nicholas!

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!

user1488
Nicholas,

Thanks for your help in solving the 500 error. The site is now throwing off 404 errors on every page except the home page. I've done the checklist above and still no love. I've also followed several other support threads reporting similar issues and still no love. What else should I check?

Thanks again!

nicholas
Akeeba Staff
Manager
The 404 errors are .htaccess configuration issues. In the troubleshooter page I linked earlier there is a section about what to check regarding the RewriteBase. For example, if you are restoring to a subdirectory named joomla (the URL to your site's frontpage is something like http://www.example.com/joomla/index.php) then that should read
RewriteBase /joomla
If you are restoring to the domain's root, it should read
RewriteBase /


Make sure that your host is using the Apache web browser. If they do not, you won't be able to use SEF URLs and you will have to disable them in your site's Global Configuration.

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!

user1488
I read the link you sent earlier and confirmed that RewriteBase is set correctly. I assume you mean the Apache web server, not browser. If so, yes, I am running Apache, version 2.2.3. I also checked the $live_site variable and set it to my site's URL.

nicholas
Akeeba Staff
Manager
Yes, I meant server (too much blood in my caffeine stream). Hm, besides what you've already tried, I'm stumped. It would help if you could provide a ZIP file with two screenshots. One with your home page and one with a page which throws a 404 error. Make sure the address bar is visible in both screenshots. I have a hunch, but unless I see the screenshots I can't be sure.

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: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!

Summer vacations: Our support will be closed for replies and new tickets from August 6th to August 21st, 2022 due to summer vacations.