• 0

HTTPS Issue

Question

Posted · Report post

I'm having trouble with https today, although I might have had this problem (without knowing about it) since upgrading to 2.2.1 a couple of weeks ago (I'm now I'm up to 2.2.4). My https is showing the dreaded redline through it. Is this a Pagelines problem or do I need to look for a solution elsewhere? For what its worth, I'm using the plugin Wordpress HTTPS to force https on certain pages.

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

Posted · Report post

[code]add_filter( 'pless_vars', 'make_ssl_vars' ); add_action( 'pl_force_ssl', '__return_true' ); function make_ssl_vars( $vars ) { $vars['plSectionsRoot'] = str_replace( 'http://', 'https://', $vars['plSectionsRoot'] ); $vars['plRoot'] = str_replace( 'http://', 'https://', $vars['plRoot'] ); return $vars; }[/code]

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes the css is compiled without ssl, because as far as wp is concerned your site is non_ssl You will need to add some php to the customization plugin, if you have it installed.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks, but that didn't work for me. I copied your code and pasted it directly into the "Pagelines Customize" plugin. What do you suppose I did wrong?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Into the functions.php of the plugin? is the plugin active?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Color me confused. The plugin is active, and it's called: pagelines-customize/pagelines-customize.php The comments to this say: /* * * DO NOT PUT PHP IN THIS FILE!!! * * Please see file functions.php in this archive. * */ I frankly don't know what that means or where I'm supposed to look. Help?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Did you guys resolve this? I am having the same trouble; throughout the pagelines code there are hard coded references to http:// which cause issues in all three major browsers when you log into the site using SSL -- in IE 10 my current error is 

 

 
CSS3117: @font-face failed cross-origin request. Resource access is restricted. 
fontawesome-webfont.woff
CSS3117: @font-face failed cross-origin request. Resource access is restricted. 
fontawesome-webfont.ttf
 

 

in Chrome it is 

 

 

 

There's a similar one for Mozilla.

 

I added your filter into the functions.php for the child theme rather than use the customize plugin, with some effect (far fewer of these hard http links) but these are stubborn.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi,

 

Did you update permalinks?

 

By any chance did you adjust the .htaccess to reflect the https?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

The filter AND the action?

Is your site SSL or are you using a plugin 'hack' to get one page SSL?

 

Whats the url of your site?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Nice. Worked perfectly.

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