• Resolved onlinebusinesssupport

    (@onlinebusinesssupport)


    Image optimisation summary page just shows 1% completed.

    When logging in to my.quic.cloud my allowance is sitting at 0% used.

    I can see litespeed_task_imgoptm_req and litespeed_task_imgoptm_pull in cron events running

    Our security software supports litespeed cache

    Our server IP address is correct in QUIC.cloud settings

    We have checked the rest api support suggestion and have never had any other litespeed issues relating to it, but when testing we get this reponse

    litespeed {“code”:”rest_forbidden”,”message”:”Sorry, you are not allowed to do that.”,”data”:{“status”:401}}

    What can we try next?

    Thanks,

    Ian

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

Viewing 12 replies - 16 through 27 (of 27 total)
  • I checked your site and you are using js minification in the LightSpeed cache plugin. js minification is known to break many things. Try turning off js minification in LightSpeed.

    Plugin Support qtwrk

    (@qtwrk)

    JS min might break something, but in this case it has nothing to do image optimization

    Thread Starter onlinebusinesssupport

    (@onlinebusinesssupport)

    “JS min might break something, but in this case it has nothing to do image optimization”

    Any other ideas on how I can narrow this down?

    Also I have been able to replicate the exact same issue on a second site we run

    Plugin Support qtwrk

    (@qtwrk)

    xxx@xxx:~$ curl -XPOST -d "test" https://www.walkingsports.com/?rest_route=/litespeed/v1/notify_img -i
    HTTP/2 401
    server: nginx
    date: Mon, 20 May 2024 11:07:17 GMT
    content-type: text/html; charset=UTF-8
    x-powered-by: PHP/7.4.33
    cache-control: Private
    x-via: LHR6
    
    <!DOCTYPE html>
    <html>
        <head>
        	<meta charset="UTF-8">
    	    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    	    <title>Bot Verification</title>
    	    <link  rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">

    so far your issue is this , somethign blocked the REST notify URI that tell plugin to pull back optm’ed images , you need to look into this first.

    HTTP response status code 401

    401 Unauthorized

    Although the HTTP standard specifies “unauthorized”, semantically this response means “unauthenticated”. That is, the client must authenticate itself to get the requested response.

    Plugin Support qtwrk

    (@qtwrk)

    no

    <title>Bot Verification</title>

    this is some kind of bot verification measure , you need to disable it for REST API

    Thread Starter onlinebusinesssupport

    (@onlinebusinesssupport)

    Hi,

    Thanks, I spoke to hosting company with the information and they made a change to the server – “We’ve made an update to disable StackProtect on this site, please allow 60 minutes for this to take effect.”

    So we cleaned up unfinished data and sent a new optimisation request and the first time it crashed with a “Service Unavailable The server is temporarily unable to service your request. This normally means the PHP worker exited unexpectedly. Please try again later.”

    So we waited for a period of time and repeated the clean and send new optimisation request.

    We have a notice saying – Pull Cron is running

    The Images Pulled: increased to 15

    But we got this error message – Image pull process failure: Failed to pull image [url] https://sin97-hyb-worker.quic.cloud/dl/d_4931905/664c790a970666.39522854.png

    Now after processing just 15 images it is not appearing to do anything now.

    Are we only allowed to process 15 images as we have the following notification?:

    You can request a maximum of?0?images at once.

    Thanks again

    Thread Starter onlinebusinesssupport

    (@onlinebusinesssupport)

    Hi,

    We have just purchased credits.

    Before we try again can you please let us know about this error – Image pull process failure: Failed to pull image [url]?https://sin97-hyb-worker.quic.cloud/dl/d_4931905/664c790a970666.39522854.png

    I have seen other topics with this error and people lost some of their paid credits.

    Are we safe to proceed?

    Thanks

    Thread Starter onlinebusinesssupport

    (@onlinebusinesssupport)

    While we are waiting for confirmation we tried again because time is now critical for us, and unfortunately got another error:

    Image pull process failure: Failed to pull image [url] https://sin97-hyb-worker.quic.cloud/dl/d_4931905/664e132c719c90.92602560.jpg.webp

    Please advise as soon as possible, thanks

    Plugin Support qtwrk

    (@qtwrk)

    a quick and temp solution , edit file /wp-content/plugins/litespeed-cache/src/img-optm.cls.php , line 1161, change 5.6.0 to 8.6.0

    clean up unfinished data, and send again

    Thread Starter onlinebusinesssupport

    (@onlinebusinesssupport)

    Hi,

    I did this with both sites and it looks like we have lost some credits in the process.

    Since making that change earlier this morning, it appears that neither site has been able to pull in any images at all.

    The Images Pulled:?count has not updated on either of them.

    Plugin Support qtwrk

    (@qtwrk)

    please create a ticket by mail to support at litespeedtech.com with reference link to this topic , we will investigate further.

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Image optimisation not working’ is closed to new replies.