Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #150636
    cliftonh
    Member
    Post count: 2

    My WP install requires SSL: define(‘FORCE_SSL_ADMIN’, true). I load the Swift builder on the post editor. Click the Shortcode button in the toolbar of the editor. When the shortcode lightbox opens, the jQuery and TinyMCE files fail to load because of an SSL conflict. This error can be since in the browser’s console log.

    Problem:
    /swift-framework/sf-shortcodes/interface.php
    line 23 get_option(‘siteurl’)
    line 26 get_option(‘siteurl’)

    I believe this returns the value of siteurl. If siteurl protocol is not https then there will be a conflict. It does not account for FORCE_SSL_ADMIN.

    Solution:
    I believe the best solution is that the theme replaces get_option(‘siteurl’) with site_url() which does account for FORCE_SSL_ADMIN.

    Another solution would be for the user to update the siteurl but that would be an issue if the front end is not SSL required.

    I hope that helps!
    Thanks!

    #150643
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please install only and WordPress HTTPS plugin to resolve the issue with HTTPS.
    Thanks
    Mohammad

    #150657
    cliftonh
    Member
    Post count: 2

    With all due respect, adding a plugin isn’t a very good solution. Just to clarify, I was not recommending that anyone change theme core files. I was hoping the dev team would consider making the change in a future release. Thank you

    #150658
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Thanks for suggestion. We will consider it in future upgrade.
    Mohammad

    #150659
    cliftonh
    Member
    Post count: 2

    Thanks! I was just thinking about it and site_url() may be an issue with a multisite, so perhaps network_site_url(). Regardless, I hope that’s helpful.

    #150661
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Really appreciated your suggestions.
    Thanks
    Mohammad

    #163108
    foxhounds
    Member
    Post count: 51

    I have struggled with the same problem. I used several plugins but they didn’t work until I came to this one: https://wordpress.org/plugins/wordpress-https/

    I had huge picture -resizing- problems, so using https protocol caused breaking images. The plugin above fixed all of that…

    Best,
    Foxi

    #163171
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,

    @foxhounds
    – I am glad that your issue resolved.
    Thanks
    Mohammad

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register