@anonymous-piwik-user opened this Issue on August 8th 2011

I installed piwik on an apache server. The page is delivered via http from PHPs "point of view".

Later, the connection is via https. I get a security warning in the browser because the logo-header.png file is still delivered via http protocol. Seems to me as if PHP tries to figure out the "absolute" path (+protocol) for that file.

Can this be changed to a relative one like all the other images, so that this warning will go away?

@mattab commented on August 10th 2011 Owner

I believe this was fixed in trunk. Can you please test the nightly QA build and confirm it is then working? http://qa.piwik.org:8080/nightly/ thanks

@anonymous-piwik-user commented on August 10th 2011


I installed the nightly build piwik-svn-r50899. Piwik reports it as 1.5.2.

"#logo a img" on both pages (login and "normal" page) use absolute paths.

@mattab commented on August 10th 2011 Owner

after you upload a new logo does it work fine?

@anonymous-piwik-user commented on August 10th 2011

Even when I use a custom logo, it's the same.

The path is absolute and starts with a "http://"

@mattab commented on August 10th 2011 Owner

can you give the URL of the page you are on, and the full IMG tag found in the source code of the page?

i'm asking because reading the code i don't see how the bug couldnt be fixed on trunk.

@anonymous-piwik-user commented on August 10th 2011

on index.php (login page, using default logo):

<div id="logo"> 
<a href="http://piwik.org" title="Open Source Analytics">       <img src='http://piwik.******.de/themes/default/images/logo.png' title="Open Source Analytics" width='200' style='margin-right:20px'> 
<div class="description"># Open Source Analytics</div> 
</a>    </div> 

on index.php (login page, using custom logo):

<div id="logo"> 
<img src='http://piwik.******.de/themes/logo.png' title="Open Source Analytics" width='200' style='margin-right:20px'>

on index.php?module=MultiSites&action=index&idSite=1&period=range&date=last30 (dashboard, using default logo)

<span id="logo"> 
<a href="index.php" title="Piwik # Quelloffene Webanalytik" style="text-decoration: none;"> 
<img src='http://piwik.******.de/themes/default/images/logo-header.png' alt="Piwik" style='margin-left:10px' height='50px'/> 

on index.php?module=MultiSites&action=index&idSite=1&period=range&date=last30 (dashboard, using custom logo)

<span id="logo"> 
<a href="index.php" title="Powered by Piwik # Quelloffene Webanalytik" style="text-decoration: none;"> 
<img src='http://piwik.******.de/themes/logo-header.png' alt="Powered by Piwik" style='margin-left:10px' height='50px'/> 

Also checked if the proxy rewriting something, it's not. Even when acessing the site via plain http I see an absolute url with protocol.

@robocoder commented on August 11th 2011 Contributor

The absolute URLs are required for email HTML reports.

For your use case, you should be setting: assume_secure_protocol=1 in config/config.ini.php, e.g.,

@anonymous-piwik-user commented on August 11th 2011

That fixed it, thanks!

But maybe you could add an FAQ entry or something inside the README, so that others can find a solution faster :-)

This Issue was closed on August 21st 2011
Powered by GitHub Issue Mirror