Support

Site Restoration

#37907 https admin not loading template after move

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
8.0 and 8.1
CMS Type
Joomla!
CMS Version
4.2.3
Backup Tool Version
9.3.3 pro
Kickstart version
7.1.2 Pro

Latest post by nicholas on Wednesday, 19 October 2022 07:17 CDT

sarahhayes265

Hi,

I am not sure that this is a Kickstart/restore issue, but I'm asking in the hope you've seen this issue before and know what it is.

I'm moving sites from one VPS to a new VPS. This particular site is a sub domain (no issue restoring another site to the VPS). All appeared to be working, but if I try to access the admin area using https the admin template doesn't load. I can access admin using http, with no problem.

VPS has cPanel and CloudLinux

Backup was downloaded and uploaded via FTP

Hosting account was on PHP 8.1 but changed to 8.0 so as to be sure that DNS had propagated and I'm looking at the correct site. NS were only updated for the VPS 8 hours ago, so could this be the issue? (VPS using same domain, NS and hostname as previous VPS)

I've replaced the site htaccess file with the default Joomla 4 htaccess

I have switched off the http headers plugin

I have tried disabling gzip and reneabled. gzip is enabled in cpanel.

Error reporting is set to maximum and I'm not getting any errors

Cleared browser caches, tried with multiple devices etc.

BUT, if I enable Debug System, then the admin area DOES load the admin template in https. Switch Debug off and it doesn't load.

Any ideas?

Thank you

Sarah

Β 

nicholas
Akeeba Staff
Manager

First check your configuration.php. The $live_site should be empty. If it's not empty, empty it now and keep in mind that you can also do that at restoration time in the Site Setup page.

If this did not help, replace the contents of your .htaccess files with those from Joomla's htaccess.txt sample file. If that works you need to remember that you can also do that from Site Setup page at restoration time. Moreover, if you are using Admin Tools' .htaccess Maker, go to Components, Admin Tools for Joomla!, .htaccess Maker and scroll all the way down. Make sure to change the domain name in both fields to match the new site's domain name, if it's not already changed during restoration. Then click on Save & Create .htaccess to create the updated .htaccess file.

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!

sarahhayes265

Hi Nicholas,

I had tried all the usual things. I don't have Admin Tools on this site, but I had replaced the htaccess file with the default Joomla one. No live site in configuration etc.

What threw me was that the issue went away when debug was enabled (can you think why?). At one point it also away if I added www. before the subdomain. But then this morning that wouldn't work either.

I think it must be a quirky DNS issue and I was being too impatient with propagation. Not sure how as I'd tried from multiple devices, different connections and VPN, changed MAC host file, but I created another sub domain and moved the files via FTP and it worked. Moved the files back and it's now working on the original sub domain as well. Fingers crossed it stays working.

Thank you

Sarah

nicholas
Akeeba Staff
Manager

When you enabled Debug Mode Joomla will try to load the non-minified files.

Which brings us back to the .htaccess file. When you are loading minified files (Debug Site disabled) the default .htaccess code tries to load the Gzipped versions of the minified files. Some servers, like OpenLiteSpeed, don't like it. Try removing all lines from

<IfModule mod_headers.c>

to the end of the file.

If that still doesn't help let me know. I'll make the ticket private and ask you for access information.

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!