• Resolved kioub

    (@kioub)


    Hello,

    I am using the latest version of the plugin (v1.6.2.1). The LiteSpeed server version is 5.1.17

    When I click on the “Request Key” button at the “LiteSpeed Cache Image Optimization” page the following error is returned:

    SAPI Error hash does not match: …….

    Can you please elaborate on the cause of the issue?

    • This topic was modified 7 years ago by kioub.
    • This topic was modified 7 years ago by kioub.
Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi, kioub

    Are you still experiencing this issue? If so, please let us know! Otherwise, I’d like to close the topic.

    Thanks!

    Thread Starter kioub

    (@kioub)

    Hello Lisa,

    Unfortunately yes.

    You are free to login to the site and check it out for yourself yourself. Is there a way to PM you site credentials?

    Looking forward to your feedback.

    Best regards,
    Byron

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Sure. The best way to proceed in that case, would be by creating a ticket (or sending email to [email protected]).

    Thread Starter kioub

    (@kioub)

    Thank you,

    I will send an email since Litespeed is installed on the server by my hosting provider, and I am not direclty communicating with Litespeed team.

    Thank you.

    Thread Starter kioub

    (@kioub)

    Hello again,

    I have pinpointed what causes the issue, is not the use of CloudFlare in general (that is why you did not experience this issue while using them), but the use of its Flexible SSL option to encrypt communication to and from a website using SSL. Using this option a site does not have to be SSL enabled. Pages from my site are served by CloudFlare over HTTPS while they communicate with the origin server through plain HTTP.

    I looked at LiteSpeed plugin code and discovered that you are making this call when someone requests a key from your image server (litespeed-cache/admin/admin-api.class.php, function _request_key() line 201)

    $json = $this->_post( self::IAPI_ACTION_REQUEST_KEY, home_url() ) ;

    Unfortunately the home_url() call returns the plain HTTP version of my site’s homepage since the server is not HTTPS enabled. Nevertheless if your image server tries to contact my site’s homepage (any any page for that matter) over plain HTTP, CloudFlare redirects them to the HTTPS version of it automatically.

    I managed to get over this issue by replacing the call to home_url() with home_url('/','https') but this is only to validate my point.

    I would really like you to apply a patch to one of the following updates of the plugin so as to address this issue and be able to support this kind of setup since a vast amount of sites utilize CloudFlare’s Flexible SSL feature.

    Looking forward to your feedback.

    Best regards,
    Byron

    Plugin Support Hai Zheng?

    (@hailite)

    That is a good catch.

    Maybe we should send a test call first to get redirection status first before the real call.

    Will add this to next week’s release.

    Really appreciated for your feedback.

    Thanks,
    Hai

    Plugin Support Hai Zheng?

    (@hailite)

    Fixed.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘LiteSpeed Cache Image Optimization’ is closed to new replies.