Support

Admin Tools

#14670 base url for combine css files includes http:

Posted in ‘Admin Tools 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
Admin Tools version
n/a

Latest post by on Wednesday, 13 February 2013 18:00 CST

[email protected]

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.8
PHP version: 5.3.13
MySQL version: (unknown)
Host: Dreamhost
Admin Tools version: Latest
Description of my issue:

I am testing the combine CSS feature and it really speeds things up. However there is one really big problem im having. It seeams that the combined css files are pointed to http://mydoamin.org/cache

the location is correct, but is never adjusted when the site is accessed over https://. this despite having automatically convert all links to https sellected.

 

Any ideas

nicholas
Akeeba Staff
Manager

There's a 90% chance that this issue is caused because you have set $live_site in your configuration.php file and it starts with http instead of https. This tells Joomla! to report that the base URL of the site begins with http, no matter if you're accessing your site over SSL. Fact: $live_site is only required on broken hosts. It's a workaround for servers with ill-configured reverse proxies and broken web server installations (like old versions of IIS) which don't report the site's hostname to PHP. If you've set $live_site, unset it. If your site breaks, set it again, move to a decent host a.s.a.p. (because if something as fundamental as reporting the hostname to PHP is broken you don't want to wait long enough to find out what else is broken on that server) and unset it on the new site.

There's a 9.99% chance that this issue is caused by some .htaccess settings, but you'd see the URL change in the browser's address bar.

There's a 0.01% chance that it's a third party plugin (extremely unlikely!) or another factor that I cannot think of and never observed on any other site. There's always a first time for everything, but this happens to me disturbingly infrequently the last two years.

I can tell you that there's exactly 0% chance of this being a bug, because the URL to your site's root is fetched using Joomla!'s own JURI::base() method, the same one used internally by Joomla! itself. The code can be found in plugins/system/admintools/admintools/core.php lines 155 through 162. JURI::base() does read the value of $live_site, that's why the most likely culrpit is $live_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!

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!