Support

Site Restoration

#17878 Problem in installing Joomla backup on localhost (Wampserver)

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

user74231
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.14
PHP version: 5.3.27
MySQL version: 5.5.33-31.1
Host: Localhost (wampserver)
Akeeba Backup version which took the backup: Akeeba Backup Professional 3.8.2 (2013-09-30)
Kickstart version used to extract the backup: Akeeba Kickstart 3.6.0

Description of my issue:

I am using both akeeba Admin tool (pro) and akeeba backup (pro).

When I install backup on localhost (wampserver), everything goes fine in installation process. But after installation the browser shows "internal Server Error- 500 error".

I read your documentation and changed name of .htaccess to htaccess.bak, then the browser shows the following error:

jos-Warning: JLIB_APPLICATION_ERROR_COMPONENT_NOT_LOADING

JSite -> initialise() @ C:\wamp\www\index.php:30
JApplication -> initialise() @ C:\wamp\www\includes\application.php:116
JApplication -> triggerEvent() @ C:\wamp\www\libraries\joomla\application\application.php:230
JDispatcher -> trigger() @ C:\wamp\www\libraries\joomla\application\application.php:642
JEvent -> update() @ C:\wamp\www\libraries\joomla\event\dispatcher.php:161
call_user_func_array() @ C:\wamp\www\libraries\joomla\event\event.php:71
plgSystemAdmintoolsPro -> onAfterInitialise()
plgSystemAdmintoolsPro -> IPFiltering() @ C:\wamp\www\plugins\system\admintools\admintools\pro.php:140
JError :: raiseError() @ C:\wamp\www\plugins\system\admintools\admintools\pro.php:667
JError :: raise() @ C:\wamp\www\libraries\joomla\error\error.php:251
JError :: throwError() @ C:\wamp\www\libraries\joomla\error\error.php:176
call_user_func_array() @ C:\wamp\www\libraries\joomla\error\error.php:214
JError :: handleCallback()
call_user_func() @ C:\wamp\www\libraries\joomla\error\error.php:765
plgSystemRedirect :: handleError()
JError :: customErrorPage() @ C:\wamp\www\plugins\system\redirect\redirect.php:109
JDocumentError -> render() @ C:\wamp\www\libraries\joomla\error\error.php:798
JDocumentError -> _loadTemplate() @ C:\wamp\www\libraries\joomla\document\error\error.php:107
require_once() @ C:\wamp\www\libraries\joomla\document\error\error.php:135
require() @ C:\wamp\www\templates\yoo_nano3\error.php:13
Warp\Joomla\Helper\SystemHelper -> init() @ C:\wamp\www\templates\yoo_nano3\warp.php:33
Warp\Joomla\Helper\SystemHelper -> initSite() @ C:\wamp\www\templates\yoo_nano3\warp\systems\joomla\src\Warp\Joomla\Helper\SystemHelper.php:119
JSite -> getParams() @ C:\wamp\www\templates\yoo_nano3\warp\systems\joomla\src\Warp\Joomla\Helper\SystemHelper.php:139
JComponentHelper :: getParams() @ C:\wamp\www\includes\application.php:358
JComponentHelper :: getComponent() @ C:\wamp\www\libraries\joomla\application\component\helper.php:92
JComponentHelper :: _load() @ C:\wamp\www\libraries\joomla\application\component\helper.php:43
JError :: raiseWarning() @ C:\wamp\www\libraries\joomla\application\component\helper.php:415
JError :: raise() @ C:\wamp\www\libraries\joomla\error\error.php:276:276

my local host (wampserver) versions:
php:5.3.13
mysql: 5.5.24

what should I do?
I also read your advice about using zend on local. Can I install zend directly on window and install joomal on it; or I need some other software as well.

nicholas
Akeeba Staff
Manager
Reading the debug backtrace here's what I am seeing (it's a little like Tank spotting the girl in the red dress while staring at the Matrix code, so you'll have to take my word for it):

  • Admin Tools' system plugin loads
  • IP White List and Black List filtering kicks in (plgSystemAdmintoolsPro -> IPFiltering())
  • Your localhost IP is either not in the whitelist or in the blacklist, so Admin Tools is returning an error message (JError :: raiseError() @ C:\wamp\www\plugins\system\admintools\admintools\pro.php:667)
  • The error is supposed to be handled by Joomla! and it is. So Joomla! tries to load the standard error page (JDocumentError -> _loadTemplate() @ C:\wamp\www\libraries\joomla\document\error\error.php:10)
  • Unfortuantely, your YooTheme Warp-based template kicks in (require() @ C:\wamp\www\templates\yoo_nano3\error.php:13)
  • Warp is trying to do something stupid, apparently thinking it can initialise the site template despite the fact that Joomla! is in error handling mode (Warp\Joomla\Helper\SystemHelper -> initSite() @ C:\wamp\www\templates\yoo_nano3\warp\systems\joomla\src\Warp\Joomla\Helper\SystemHelper.php:119)
  • As part of that it does something completely wonky, trying to load a component despite the fact that Joomla! is in error handling mode (JComponentHelper :: getParams() @ C:\wamp\www\includes\application.php:358)
  • Of course Joomla! sees that wonky thing going on and says the equivalent of "I'm sorry Dave. I'mο»Ώ afraid I can't do that" (JError :: raiseWarning() @ C:\wamp\www\libraries\joomla\application\component\helper.php:415)


The problem is a bug in Warp or your template (I'm not sure which one is the real problem). But even if that wasn't a problem, you would still be locked out of your site. So maybe you should make sure that 127.0.0.1 is not in the IP blacklist and it is in the IP whitelist before backing up 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!

user74231
Thanks for responding. I white listed 127.0.0.1 and it worked to an extent. Now home page load on local host, but I still have following issues:

1. None of the url (except home page) works. It shows following error:

Not Found

The requested URL /categories was not found on this server.


2. The site loads only when .htaccess is removed/renamed to htaccess.bak. If I use .htaccess, it again shows internal server error (500). How can I use .htaccess on localhost. I have set "redirect nn-www to www" in .htaccess, but I comment out these lines with #### in .htaccess before using on localhost, but it still does not work. I am attaching a file which includes my .htaccess file settings.

nicholas
Akeeba Staff
Manager
You need to enable mod_rewrite in WAMP and regenerate your .htaccess.

Enabling mod_rewrite is explained in https://www.akeebabackup.com/documentation/troubleshooter/prbasicts.html which you indicated you read when filing the ticket. Obviously you didn't, like most people who've indicated that they read the troubleshooter. I think I'll exchange that question with "Do you want to give me your immortal soul?" and see how many reflexively reply "Yes" without reading... Please read that page now and follow the instructions under the "ENABLING APACHE'S MOD_REWRITE" header.

Regenerate your .htaccess: Go to Components, Admin Tools, .htacces Maker. Scroll all the way down. Set both domain names to "localhost" and the directory to wherever you restored your site. If your site is accessible under http://localhost/foobar you should enter /foobar with the trailing slash in the directory text box. Click on save and create .htaccess.

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.