• Resolved rbarron

    (@rbarron)


    Hi Jacob,

    Is there a setting to force the delivery of photos in albums via https? I’m using a ClourFlare flexible SSL and would like to eliminate mixed content on the site.

    Thank you …. Rick

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    WPPA relies on the wp function is_ssl() and other wp functions that provide standard urls like admin_url(), includes_url(), site_url() and plugins_url(). In your case these functions all erroneously return http://. See this code snippet of your pages source:

    <script type="text/javascript">
    	wppaImageDirectory = "http://rmb.barronsplace.com/wp-content/plugins/wp-photo-album-plus/img/";
    	wppaWppaUrl = "http://rmb.barronsplace.com/wp-content/plugins/wp-photo-album-plus";
    	wppaIncludeUrl = "http://rmb.barronsplace.com/wp-includes";
    	wppaAjaxUrl = "http://rmb.barronsplace.com/wp-content/plugins/wp-photo-album-plus/wppa-ajax-front.php";
    	wppaUploadUrl = "http://rmb.barronsplace.com/wp-content/uploads/sites/8/wppa";
    	wppaIsIe = false;
    	wppaIsSafari = false;
    	wppaUseSvg = true;
    	wppaSlideshowNavigationType = "icons";
    	wppaAudioHeight = 40;
    </script>
    

    wppaImageDirectory, wppaWppaUrl and wppaAjaxUrl are – indirectly – based on is_ssl()
    wppaIncludeUrl is based on includes_url()
    wppaUploadUrl is based on site_url()

    I suggest you address this isuue to the wp core developers. This is not a wppa issue.

    Thread Starter rbarron

    (@rbarron)

    Jacob,

    Adding the following code to wp-config.php did the trick, thank you for your great plugin and fabulous support ….. Rick

    if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
        $_SERVER['HTTPS'] = 'on';
    
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Force Delivery via HTTPS’ is closed to new replies.