Jump to content
jsharpe2001

Ssl Issue

Recommended Posts

jsharpe2001    0
jsharpe2001

Hi folks,

I've read through the other posts in this forum referencing SSL issues and can't resolve. Any thoughts on the following error:

I have my site at sustainablesummer.org setup to force HTTPS and SSL only on certain pages. I have been using Google Chrome Developer Tools to diagnose and I'm getting these errors:

[blocked] The page at https://sustainablesummer.org/apply/ ran insecure content from http://sustainablesummer.org/wp-content/themes/pagelines-template-theme/sections/simple_nav/style.css.

[blocked] The page at https://sustainablesummer.org/apply/ ran insecure content from http://sustainablesummer.org/wp-content/themes/pagelines/sections/navbar/navbar.js.

The pages in question are sustainablesummer.org/apply/ and sustainablesummer.org/apply/apply-now/

Despite the errors, the pages are secure in Google Chrome, but not in Safari or Firefox (haven't tested any other browsers yet).

I am able to get a secure connection on my /login/ and /admin/ pages in Safari and Firefox.

I added this function provided by Simon in a previous post to get Chrome working:

// this function forces ssl

add_filter( 'pless_vars', 'make_ssl_vars' );

add_action( 'pl_force_ssl', '__return_true' );

function make_ssl_vars( $vars ) {

$vars['plSectionsRoot'] = str_replace( 'http://','>http://', 'https://','>https://', $vars['plSectionsRoot'] );

$vars['plRoot'] = str_replace( 'http://','>http://', 'https://','>https://', $vars['plRoot'] );

return $vars;

}

However, when I did this it made most pages in my admin back-end, which were previously secure, not secured.

Relevant plugins are: Better WP Security and Simple 301 Redirects

Any thoughts on solutions?

Thanks!

Jeff

Share this post


Link to post
Share on other sites
catrina    103
catrina

Can you please try deactivating all other active plugins to see if the issue persists?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
Simon    247
Simon

This is the problem when you use a plugin to 'fake' an SSL page in wordpress. The framework uses the native enqueue system for styles and scripts, so as far as wordpress knows its non-ssl so just loads the scripts http:// You might try googling around or even asking the plugin author if there is a filter to change all enqueued scripts/styles on your 'SSL' page.

Share this post


Link to post
Share on other sites
jsharpe2001    0
jsharpe2001

Thanks Catrina. I deactivated and the errors disappeared. Upon reactivation, there's also no sign of the errors when I open in Chrome even though I'm still using all the same plugins. Which is good, I suppose. However, the site is still only partically encrypted in other browsers. I thought this might be due to a caching issue, but I tried from another computer and wiped the browsers history and receive the partially enrcrypted warning in Firefox. When I open the pages in question in Firefox and Safari, the secure padlock icon appears briefly and then disappears. I don't know if this is a Pagelines issue or something else entirely. Any further thoughts?

Share this post


Link to post
Share on other sites
jsharpe2001    0
jsharpe2001

Thanks Simon. Even when I turn off the plugins that are forcing SSL on a page and instead set the site to https for all pages in the wordpress general settings, I still get the partially encrypted errors.

Share this post


Link to post
Share on other sites
Simon    247
Simon

View the page source now and search for http:// every one is either an image in your content or internal links, all scripts and css is now ssl because wordpress is ssl.

Share this post


Link to post
Share on other sites
jsharpe2001    0
jsharpe2001

There are 2 http:// links that I can't seem to get rid of. One is in my Google analytics tracking code and the other is this very strange link: http://gmpg.org/xfn/11 I have no idea what the latter is and it seems like the Analytics code shouldn't be an issue. Any ideas? Thanks so much for your help with this!

Share this post


Link to post
Share on other sites
Simon    247
Simon

The xfn link is a wordpress link, there is a fllter/action you can use to turn it off.

Share this post


Link to post
Share on other sites
jsharpe2001    0
jsharpe2001

From some research on the xfn link, it sounds like this would not cause an SSL error. I can't seem to get this resolved, but it doesn't look like it's a Pagelines issue. Thanks for your help.

Share this post


Link to post
Share on other sites
jsharpe2001    0
jsharpe2001

Hi Catrina, It occured to me after my initial post that I should probably check with my host first. So, hopefully I can resolve through them. Thanks for the help.

Share this post


Link to post
Share on other sites
jsharpe2001    0
jsharpe2001

My host is saying there's unsecured content on the page. I checked Google Chrome again and I am still getting this error: https://sustainablesummer.org/apply/ ran insecure content from http://sustainablesu...e_nav/style.css.

When I view the source code there are no links to images or files via the http protocol. Everything is https. Any thoughts on how to resolve? I suppose a better question is:

What is best practice for SSL in wordpress if I want to run just a couple of pages in HTTPS? Should I be modifying .htaccess? Something like this:

RewriteRule ^page1(.*) https://%{SERVER_NAME}/page1$1 [R,L]

Share this post


Link to post
Share on other sites
catrina    103
catrina

Did you purchase an SSL certificate from your host? Usually when one needs SSL protection, a certificate needs to be purchased.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
jsharpe2001    0
jsharpe2001

Of course! I have the certificate and I'm able to use the https protocol on all pages. No problems there whatsoever. The issue is with "partial encryption" on the pages that I want to open in https. For instance, https://sustainablesummer.org/apply/ I get an error that I am running insecure content from a pagelines theme stylesheet. I either need to figure out how to make that stylesheet a relative link so it opens in https or force it to https. I don't know what the best practice is for this process. I have read through dozens of forums trying to find an answer to this question and still don't know what to do. Thanks for your help!

Share this post


Link to post
Share on other sites
Rob    547
Rob

Let us know if this is resolved.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
jsharpe2001    0
jsharpe2001

Still unresolved. The issues I'm experiencing are very similar to the ones described in this post: http://www.pagelines.com/forum/topic/19972-2-2-1-less-https-problems-stylesheet-calls/page__hl__ssl#entry117048

This file directory is the problem:

wp-content/themes/pagelines/images/

It always opens in http://, even when I disable all plugins and run the entire site in https. Maybe there's something in my Pagelines settings that's causing this issue?

Share this post


Link to post
Share on other sites
jsharpe2001    0
jsharpe2001

You're correct! Don't know how it resolved, but it did. Maybe there was some weird caching issue going on. Thanks! How do I mark this resolved in the forum?

Share this post


Link to post
Share on other sites
Simon    247
Simon

The topic was marked as resolved.

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


  • Similar Content

    • janpeeters
      By janpeeters+
      Over the last month I had extensive communications with the developer of the (premium) Anything Boxes section (in Pagelines store) (Adam Munns) and the developer of the WP Polylang Multilingual plugin (Frederic Demarle).
       
      This was because the following problem occurred:
      Anything Boxes showed all posts of two languages (Dutch and English) on the respective static frontpages for each language. It should of course have filtered posts for Dutch language on the Dutch frontpage and English on the English frontpage.
       
      The solution to this problem was simple in the end. When duplicating a page for use in another language the settings for Anything Boxes were not copied to the new page and I should have set these settings manually again on the new page. I wasn't aware of this, but it makes sense. Because of this the pages didn't know how to differentiate between posts from different languages.
       
      The dev of Polylang told me that Polylang is currently smart enough to synchronize metas like Featured images and page templates but it does not work out of the box with metas created by plugins and themes but (according to Frederic) it is rather easy to add them in the list using the filter 'pll_copy_post_metas'.
      He mentions that he is not sure that these 'PageLines Meta Settings' are stored in post meta but that would make sense according to him. He asks if the Pagelines dev team will be interested to support this feature in the future.
       
      I'm also wondering if you will consider adding Polylang translation support for manually editable strings like the 'Read more…' strings in Pagelines Settings.
       
      Well that's of course up to you but I thought to let you know to be able to take this into consideration. I also post this for other users in case they experience the same kind of trouble and are looking for an answer.
       
      Best regards,
      Jan Peeters
    • bankrollbuilder
      By bankrollbuilder
      I used a custom hook to put a banner ad in my header. It works but its not in the right position. it is centered and above my logo and I would like to float it to the right of my logo in the header. heres the link: http://shaboopie.com/shaboopie-wp/free-logos-pg1/

      thanks.

      Dan B.
    • starlit
      By starlit
      Can one have two hero sections on one page?

      I want a landing page which leads/advertises two subpages.

      Or is there another option?

      Please help.

      THANK YOU
    • hutruk
      By hutruk
      Hi!

      I am using the shortcodes for tabs, as described in the documentation.

      When I insert the following code:


      [pl_tabs][pl_tabtitlesection type="tabs"] [pl_tabtitle number="1"]Title 1[/pl_tabtitle] [pl_tabtitle number="2"]Title 2[/pl_tabtitle] [/pl_tabtitlesection] [pl_tabcontentsection] [pl_tabcontent active="yes" number="1"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [pl_tabcontent number="2"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [/pl_tabcontentsection] [/pl_tabs]

      I get a strange output (in the attachment).

      Any ideas?

      Thanks in advance!

    • MooiWeb
      By MooiWeb
      Hello,

      I would like to align my qtranslate with my breadcrumb so that the flags are on the same hight.
      I'm aware of putting a code in the custom css and tryed severall codes from your site but for now, no succes

      The site i'm working on is http://nieuw.vazdias.nl

      Thx,
      Edwin



×