Jump to content
svakanda

Ie Security Errors With Ssl In Pagelines 2.2.5

Recommended Posts

svakanda

Exact error is something like "This page contains both secure and non-secure items"...

 

Here is how to fix it

 

This file 

/wp-content/themes/pagelines/includes/library.templates.php

 

Around line 533:

	if( ploption('google_ie') && ( $ie_ver < 8 ) )
		echo '<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>'."n";
	
	if ( $ie_ver < 9 ){
		printf(
			'%2$s<script src="%1$s"></script>%2$s', 
			'http://html5shim.googlecode.com/svn/trunk/html5.js', 
			"n"
		);
	}

 

You can change both of the http to https to get rid of the IE error message on your shopping carts.

 

Enjoy.  BTW, Pagelines people if you haven't already fixed this in later versions you might consider adding in a dynamic http/https autoselector.

 

 

Share this post


Link to post
Share on other sites
svakanda

It actually took me about 5 hours to track this down...hopefully it saves somebody else the time.  I did learn a lot however =)  The best tool ended up being fiddler2.

 

http://www.fiddler2.com/fiddler2/

 

It showed me exactly which http requests were arriving through SSL, and which ones weren't.

 

Then I downloaded the entire sitefile structure of my website on my local windows machine and ran WinGrep on it for the string, 'html5.js'

Share this post


Link to post
Share on other sites
Simon

Please open a bug report

Share this post


Link to post
Share on other sites
Simon

please try replacing the function with this:

 

 

function pagelines_fix_ie( ){


$ie_ver = pl_detect_ie();
if( ploption('google_ie') && ( $ie_ver < 9 ) ) {
printf( '<script src="//ie7-js.googlecode.com/svn/version/2.1(beta4)/IE%s.js"></script>%s', $ie_ver +1 , "n" );
}
if ( $ie_ver < 9 ){
printf(
'%2$s<script src="%1$s"></script>%2$s', 
'//html5shim.googlecode.com/svn/trunk/html5.js', 
"n"
);
}


// If IE7 add the Internet Explorer 7 specific stylesheet
if ( $ie_ver == 7 )
wp_enqueue_style('ie7-style', PL_CSS  . '/ie7.css', array(), PL_CORE_VERSION);
} 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×