Support

Akeeba Backup for Joomla!

#26643 Only home page shows after site move/restore

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
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

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by on Saturday, 07 January 2017 17:17 CST

user91085
EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:
I backed up a Joomla 3.6.4 site on php 5.4 + Nginx and restored it to a brand new server with nginx and php 7.
The major problem I'm having is that on the new site, when I attempt to navigate the site, choosing any menu item always returns me to the home page, even though the URL shows the correct SEF URL for the page the menu points to. This is the biggest problem after the restore.


There are additional problems with SH404sef locking me out due to flooding and admintools WAF locking me out as a "repeat offender." If you have info on these problems, let me know.

I can't attach the log file, it's too large, so I put it here: https://www.dropbox.com/s/rsmyksqftujery9/Akeeba%20Backup%20Debug%20Log.txt?dl=0

tampe125
Akeeba Staff
Hello Eric,

if you disable SEF, can you navigate inside your site?
If I remember correctly, you have to perform some changes to your global nginx configuration:
https://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs_on_Nginx

Did you add them?

Regarding being blocked by Admin Tools, what's the reason of the block?

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user91085
I tried to reply by email but apparently that doesn't work....

Thank you for your help.
1) The problem does go away when I turn Joomla SEF off, so it's not the SH404SEF plugin but rather Joomla SEF that is related to the problem.. The fixes in the article you gave me were part of how I set up the config files for Nginx so that is not the problem. Do you have any record of such a problem appearing when a site is migrated?
2) Regarding being locked out of the admin portal...
Here is the block log. I’m not sure why it was blocked!
Filter:

- Reason -
- Reason -

Datefrom Dateto IP addressTarget URLSets the maximum number of results to return.
20
Select the ordering.
Descending
Sort Table By:
Date

Date IP address Reason Target URL
2016-12-01 06:22:04 71.211.254.43 Admin Query String http://prod.enki.co/administrator/index.php
2016-12-01 06:22:03 71.211.254.43 Admin Query String http://prod.enki.co/administrator/index.php
2016-12-01 06:22:01 71.211.254.43 Admin Query String http://prod.enki.co/administrator/index.php?option=com_admintools&view=WebApplicationFirewall
2016-10-10 15:43:36 172.20.32.34 Admin Query String http://devel.enki.co/administrator/index.php
2016-10-10 15:43:20 172.20.32.34 Admin Query String http://devel.enki.co/administrator/
2016-10-10 13:23:38 172.20.32.34 Admin Query String http://devel.enki.co/administrator/index.php
2016-10-10 13:23:04 172.20.32.34 Admin Query String http://devel.enki.co/administrator/
2016-10-05 19:24:21 172.17.17.10 Admin Query String http://devel.enki.co/administrator/
2016-10-05 19:24:15 172.17.17.10 Admin Query String http://devel.enki.co/administrator/
2016-10-05 19:24:14 172.17.17.10 Admin Query String http://devel.enki.co/administrator/

tampe125
Akeeba Staff
Let's tackle one issue at time. Can you please take a look at the configuration.php file, is there a value inside the $live_site variable? If so, can you please try to remove it?

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user91085
When I clear the $live_site variable, the main site loses its formatting and so does the login for the admin portal, and when I do log in to the admin portal it says page not found.
I understand why you’re focusing on this, since the configuration.php file is the only thing Akeeba doesn’t copy to the new system (right?) I’ve seen this advice in a few places but apparently Joomla 3.6 doesn’t like that variable being empty….?
Eric

nicholas
Akeeba Staff
Manager
Yes, Davide asked you about configuration.php since this is the only file we touch on restoration. We want to check whether it's a user error during restoration (most common cause of restoration issues), a bug (rare but we explore it nevertheless) or a server issue (second most common cause of restoration issues).

All Joomla! versions (1.5 to 3.6 inclusive) can work just fine without the $live_site parameter as long as the server is correctly configured. The only case when you need it is when the server is reporting the wrong full URL / path to PHP. Joomla! uses this information to generate relative and absolute URLs for resources (CSS, JS, images, ...) and for parsing SEF routes. You need to address the issues in your NginX configuration. Unfortunately we can't help with that since we're neither your host nor systems administrators.

Now for the Admin Tools issue. You are being blocked because you are trying to access back-end URLs without the Administrator Secret Word you have configured in the Web Application Firewall and without being logged in. This redirects you to the site's root and counts as a security exception. When you trigger quite a few of them over a short period of time you get IP blocked per the Admin Tools settings you have configured on your site.

Looking at the time stamps of the security exceptions they are several seconds apart and they all come from IP addresses in the USA. This tells me that this is not a redirection issue caused by sh404SEF or your server setup. These are genuine attempts that you made. Most likely you have a very short session expiration time in your Global Configuration. Your administrator session expires, you try to click on something (mostly trying to go back to the main Joomla! Control Panel page) and you trigger a security issue since you're now trying to access the administrator backend without being logged in and without providing the secret word. The best way to "fix" that is to actually increase the session timeout in your Global Configuration.

Moreover, we recommend some adjustments in your administration habits to cater for the increased security. Please do close administrator windows when you're not going to be doing something in the backend of your site for a while. Make a habit of always accessing your site's backend using the URL with the secret word e.g. http://www.example.com/administrator/index.php?MY_SECRET_WORD instead of just going to /administrator or directly into the URL of a component (like http://www.example.com/administrator/index.php?option=com+something). This will avoid security exceptions from being raisedwhen your session expires and you try to go back to your site's administrator.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!