Download & Extend

Images causing Insecure Content to be displayed on Secure Pages

Project:Secure Pages
Version:6.x-2.x-dev
Component:Code
Category:support request
Priority:major
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Sorry if I missed information on this, it seems as though it's a big deal if I'm not the only one experiencing this.

I have already removed displaying any unavoidable blocks that would cause the page to become insecure (such as adwords, facebook plugins, etc). But now I'm dealing with Drupals call to image cache images causing "insecure content" to display. I'll use the /cart page as example. The main item on this page using image cache is the cart product thumbnails.

Perhaps this is just an error I am experiencing but wouldn't it make sense that if a page is made secure that also the drupal components be called using https so not to have this issue?

Any help/information on this is greatly appreciated!

Comments

#1

Status:active» fixed

It sounds like you have set $base_url in your settings.php; I'd suggest removing this directive. Then Drupal will detect $base_url automatically. If for some reason you must set this value manually, then you'll need to place a conditional inside settings.php that changes the base url depending on the URI scheme.

For exemple:
$base_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ? 'https://' : 'http://') . 'www.mysite.com';

#2

I did have this set, although I am not sure what ever caused me to do so.. I've removed this setting and will report back if this doesn't solve the problem.

Thank you!

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.