Jump to content

Archived

This topic is now archived and is closed to further replies.

_jan_

pl_site_url and https errors

Recommended Posts

_jan_

I have a site where every time I edit the DMS theme, the [pl_site_url] changes to https on some specific javascript when rendering the pages, such as for example:

https://www.example.com/wp-content/themes/dms/dms/sections/navbar/navbar.js
https://www.example.com/wp-content/themes/dms/sections/flipper/flipper.js

The pages then do not load properly because the javascripts are not loaded (they exist and are retrievable via https, though). This could be because the SSL certificate is self-signed. But the [pl_site_url] variable should pick http as default!
 

The Settings>General> WP URL and Site URL are correctly defined as http.

The only way of solving the issue is hitting several times the option  Pagelines>DMS LESS Fallback>Save LESS. This seems to rebuild DMS correctly, but randomly (hit Save LESS one or 5-6 times before it works).

https admin is done using the "define('FORCE_SSL_ADMIN', true);" directive in wp-config.php.

Wordpress 4.2.3 and DMS 2.1.9.3

Any idea on how to manipulate pl_site_url? Thank you for your attention.

Share this post


Link to post
Share on other sites
Danny

Hi,

Please update to the latest version of DMS. Otherwise, we will not be able to assist you.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
_jan_

Thank you, I just upgraded to DMS 2.1.9.5 and will come back when I reproduce the issue.

edit: oops, it seems my updater plugin puts me out of sync now that I see in my product download page the latest DMS version is 2.4.6. Now we have two problems :-)

Share this post


Link to post
Share on other sites
_jan_

Danny, I got confused about version (and will open a separate thread about).

I confirm that I have

DMS

2.1.9.6

DMS Professional Tools

1.8.5

PageLines Updater

1.2.8

I have reproduced the problem: on some DMS section javascript URL the https version of the site URL is used.

As a workaround I have bought a SSL cert from a vendor, this avoids browser problems, but he issue stays: what is causing pl_site_url to use https on some section's js URL?

Share this post


Link to post
Share on other sites
Danny

Can you provide a link to the site in question please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
_jan_

http://www.descrizionedelmondo.it/

You can see the https in the source of the home page right now

<script type='text/javascript' src='http://www.descrizionedelmondo.it/wp-content/themes/dms/dms/js/pl.common.js?ver=c6a01d'></script>
<script type='text/javascript' src='http://www.descrizionedelmondo.it/wp-content/themes/dms/dms/js/script.flexslider.js?ver=c6a01d'></script>
<script type='text/javascript' src='https://www.descrizionedelmondo.it/wp-content/themes/dms/dms/sections/navbar/navbar.js?ver=c6a01d'></script>
<script type='text/javascript' src='http://www.descrizionedelmondo.it/wp-content/themes/dms/dms/js/utils.isotope.min.js?ver=c6a01d'></script>
<script type='text/javascript' src='https://www.descrizionedelmondo.it/wp-content/themes/dms/sections/masonic/pl.masonic.js?ver=c6a01d'></script>
<script type='text/javascript' src='https://www.descrizionedelmondo.it/wp-content/themes/dms/sections/flipper/caroufredsel.min.js?ver=c6a01d'></script>
<script type='text/javascript' src='https://www.descrizionedelmondo.it/wp-content/themes/dms/sections/flipper/touchswipe.js?ver=c6a01d'></script>
<script type='text/javascript' src='https://www.descrizionedelmondo.it/wp-content/themes/dms/sections/flipper/flipper.js?ver=c6a01d'></script>

 

Share this post


Link to post
Share on other sites
Danny

I have loaded your site and not seeing any SSL. Is this set to a certain page(s)?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
_jan_

On Google Chrome, after cleaning all browser data, loading the home page http://www.descrizionedelmondo.it/, view html source, search "https".

Do you see it?

Edited to add: What is the output when you run this command in a linux/osx shell?

~$ curl http://www.descrizionedelmondo.it/ | grep https

What I get is:

~$ curl http://www.descrizionedelmondo.it/ | grep https
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8215    0  8215    0     0   4553      0 --:--:--  0:00:01 --:--:--  4551var plKarma = {"ajaxurl":"https:\/\/www.descrizionedelmondo.it\/wp-admin\/admin-ajax.php"};
<script type='text/javascript' src='https://www.descrizionedelmondo.it/wp-content/themes/dms/dms/sections/navbar/navbar.js?ver=c6a01d'></script>
<script type='text/javascript' src='https://www.descrizionedelmondo.it/wp-content/themes/dms/sections/masonic/pl.masonic.js?ver=c6a01d'></script>
<script type='text/javascript' src='https://www.descrizionedelmondo.it/wp-content/themes/dms/sections/flipper/caroufredsel.min.js?ver=c6a01d'></script>
100 53947    0 53947    0     0  29152      0 --:--:--  0:00:01 --:--:-- 29144
<script type='text/javascript' src='https://www.descrizionedelmondo.it/wp-content/themes/dms/sections/flipper/touchswipe.js?ver=c6a01d'></script>
<script type='text/javascript' src='https://www.descrizionedelmondo.it/wp-content/themes/dms/sections/flipper/flipper.js?ver=c6a01d'></script>

 

Share this post


Link to post
Share on other sites
_jan_

Thank you Simon, indeed. While I am trying to reproduce the issue (in this exact moment it's ok) cound you tell me what is the latest version of DMS, as I am also in the process of solving a licensing issue.

  

Share this post


Link to post
Share on other sites

×