Support

Akeeba Backup for Joomla!

#39499 Clicking Apply or Save in Akeeba Backup Pro loads old URL

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
4.3.2
PHP version
n/a
Akeeba Backup version
9.7.1

Latest post by nicholas on Thursday, 21 September 2023 07:44 CDT

[email protected]

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 10MiB, please upload it on your server and post a link to it.

Hi I migrated a dev site from a the following subdomain https://tarbertesc.esci.ie/ to the new live domain https://tarbertesc.ie/

The site works fine however the issue is with Akeeba backup on the migrated site.

When I click Configuration or Save or Apply on any of the backup profiles then instead of staying on e.g

https://tarbertesc.ie/administrator/index.php?option=com_akeebabackup

It redirects to the development site:

https://tarbertesc.esci.ie/administrator/index.php?option=com_akeebabackup

  • I have tried to uninstall Akeeba backup on the new site and i dropped all the akeeba tables prior to re-installation.
  • I have also cleared my joomla and browser caches.
  • My configuration.php file shows all the correct tmp and log directories

Here is an error page i got initially (which i can no linger recreate)

I can PM you access if you wish.

Thank you

nicholas
Akeeba Staff
Manager

Edit your site's configuration.php file. The $live_site should be empty. I believe it contains your old site's URL. If that's the case, empty it and save the file:

public $live_site = '';

Remember that you can see and change the Live Site URL in the Site Setup page when restoring a backup.

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!

[email protected]

Great thanks Nicholas, working perfectly now - sorry I missed that setting!

nicholas
Akeeba Staff
Manager

No worries! Everyone misses that setting. It's a confusing setting, after all.

The $live_site setting in Joomla! is there for a tiny fraction of misconfigured web servers which do not report the correct hostname. I say "misconfigured" because it's always due to a misconfiguration: the host is using a non-transparent proxy or SSL terminator which does not forward the HTTP Host header due to wrong configuration.

Unfortunately, the naming of this setting misleads people reading the configuration.php file into thinking that they must fill it in. This causes all sorts of problems, especially because it's a URL, not a domain name — even though it's there to work around an issue with the domain name being wrong on the stark minority of misconfigured servers. When it's set you may end up with infinite redirections between HTTP and HTTPS, broken CSS because the $live_site is a plain HTTP URL and you're accessing the site over HTTPS, etc.

Since most sites have this option set to an empty string and the impact of setting it to anything is not well understood among Joomla! users people are likely to blame literally everything else before someone tells them to take a look at $live_site. Now you know :)

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: 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!