• Resolved konstruct

    (@konstruct)


    Hi.

    I have WP installed in a sub-directory of a domain and have activated Really Simple SSL.

    I am getting the following error:

    System detection encountered issues
    Your wp-config.php has to be edited, but is not writable.

    Because your site is behind a loadbalancer and is_ssl() returns false, you should add the following line of code to your wp-config.php.

    //Begin Really Simple SSL Load balancing fix
    $server_opts = array(“HTTP_CLOUDFRONT_FORWARDED_PROTO” => “https”, “HTTP_CF_VISITOR”=>”https”, “HTTP_X_FORWARDED_PROTO”=>”https”, “HTTP_X_FORWARDED_SSL”=>”on”, “HTTP_X_FORWARDED_SSL”=>”1”);
    foreach( $server_opts as $option => $value ) {
    if ((isset($_ENV[“HTTPS”]) && ( “on” == $_ENV[“HTTPS”] )) || (isset( $_SERVER[ $option ] ) && ( strpos( $_SERVER[ $option ], $value ) !== false )) ) {
    $_SERVER[ “HTTPS” ] = “on”;
    break;
    }
    }
    //END Really Simple SSL
    Or set your wp-config.php to writable and reload this page.

    I have added the above code to the WP_Config file however, there still seems to be an issue. Any ideas of what’s going wrong?

    Lee

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mark

    (@markwolters)

    Hi,

    the site seems to load fine over SSL, the /awards/ page does have some mixed content, this video is loaded over https://: https://mobilemarketingmagazine.com/awards/wp-content/uploads/2018/03/video.mp4.

    This link seems to be generated by the following file:
    https://mobilemarketingmagazine.com/awards/wp-content/plugins/gp-premium/page-header/functions/js/jquery.vide.min.js?ver=1.6.2

    Since this is a minified Javascript file you can try to temporarily disable the Javascript minification option (likely in the gp-premium plugin and/or caching plugin), clear the cache and then re-enable the minification option. That should fix your issue and give the /awards/ page the green lock.

    Mark

    Thread Starter konstruct

    (@konstruct)

    Hi Mark.

    Thanks for the speedy response!

    I’ve just looked in to it a bit further and realised that all of the files in the media library are still http (not https)

    Also, in WordPress > Settings > General, the WP Address and Site Address are still http also.

    Should these have all changed?

    Lee

    Plugin Author Mark

    (@markwolters)

    Hi Lee,

    yes, activating SSL should change the home and site url should change to https://. The mixed content fixer should update all internal links to use https:// as well. Have you pressed the ‘Go ahead, activate SSL!’ button?

    Mark

    Thread Starter konstruct

    (@konstruct)

    That’s what i thought.

    I have just clicked the ‘Go ahead, activate SSL!’ button, now i am getting a message:

    ‘Sorry, you are not allowed to access this page.’ when trying to access the back-end. Front end is working ok (albeit still loading mixed content).

    Thanks.

    Lee

    Plugin Author Mark

    (@markwolters)

    The website seems to return a Cloudflare header, it is possible Cloudflare is caching old data which can lead to issues. Can you try to clear the Cloudflare cache to see if that resolves your issue?

    Mark

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with SSL’ is closed to new replies.