Litespeed Image Optimization is not working in Wordpress website

#1
Debug.log:-

12/21/19 14:01:41.080 [183.82.22.172:25518 1 Rlo] [Router] get_role: administrator
12/21/19 14:01:41.080 [183.82.22.172:25518 1 Rlo] Media init
12/21/19 14:01:41.080 [183.82.22.172:25518 1 Rlo] CDN init
12/21/19 14:01:41.080 [183.82.22.172:25518 1 Rlo] [Router] CDN bypassed: is not ajax call
12/21/19 14:01:41.080 [183.82.22.172:25518 1 Rlo] [Router] CDN bypassed: ajax call from admin
12/21/19 14:01:41.081 [183.82.22.172:25518 1 Rlo] Task init
12/21/19 14:01:41.081 [183.82.22.172:25518 1 Rlo] [Router] LSCWP_CTRL: img_optm
12/21/19 14:01:41.081 [183.82.22.172:25518 1 Rlo] [Router] LSCWP_CTRL verified: 'img_optm'
12/21/19 14:01:41.081 [183.82.22.172:25518 1 Rlo] ImgOptm init
12/21/19 14:01:41.081 [183.82.22.172:25518 1 Rlo] [Router] parsed type: sync_data => LSC_Router::verify_type()@425 => LSC_Img_Optm::handler()@2078 => LSC->proceed_action()@361
12/21/19 14:01:41.083 [183.82.22.172:25518 1 Rlo] [IAPI] posting to : https://eu.wp.api.litespeedtech.com/media_sync_data
12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [IAPI] failed to post: cURL error 28: Connection timed out after 10001 milliseconds
12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [Ctrl] 301 from https://www.cyberithub.com/wp-admin/admin.php
12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [Ctrl] 301 to https://www.cyberithub.com/wp-admin/admin.php?page=lscache-optimization&type=sync_data
12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [Ctrl] X Cache_control -> no Cache ( 301 to same url ) => LSC_Control::set_nocache()@317 => LSC_Control::check_redirect()@467 => WP_Hook->apply_filters()@286
12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [Core] CHK html bypass: miss footer const
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Ctrl] not cacheable before ctrl finalize
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Cfg] role in vary_group [group] 99
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Vary] show_admin_bar_front: false
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Vary] no custimzed vary
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] X-LiteSpeed-Cache-Control: no-cache
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Core] CHK html bypass: miss footer const
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Media] bypass: Not frontend HTML type
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] GUI bypassed by no counter
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Optm] bypass: Not frontend HTML type
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] CDN bypass
12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] End response
 

qtwrk

Well-Known Member
#4
Do you have mod security? Please try turn off that and see how it goes.

Also if you have plugin like wordfence, itheme security... etc could also try.

we need to figure out what is blocking the request
 
#6
Just FYI, I am not able to see any mod security in .htaccess file. I am getting below logs from Litespeed now:-


12/25/19 15:04:48.695 [103.227.99.194:12102 1 wlx] ------GET HTTP/1.1 (HTTPS) /wp-json/jetpack/v4/jitm
12/25/19 15:04:48.695 [103.227.99.194:12102 1 wlx] Query String: message_path=wp%3Alitespeed-cache_page_lscache-edit-htaccess%3Aadmin_notices&query=page%253Dlscache-edit-htaccess&_wpnonce=22ed8f03d6
12/25/19 15:04:48.695 [103.227.99.194:12102 1 wlx] HTTP_REFERER: https://www.cyberithub.com/wp-admin/admin.php?page=lscache-edit-htaccess
12/25/19 15:04:48.695 [103.227.99.194:12102 1 wlx] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36
12/25/19 15:04:48.695 [103.227.99.194:12102 1 wlx] Accept: */*
12/25/19 15:04:48.695 [103.227.99.194:12102 1 wlx] Accept Encoding: gzip
12/25/19 15:04:48.695 [103.227.99.194:12102 1 wlx] Cookie _lscache_vary: logged-in:1;role:99
12/25/19 15:04:48.695 [103.227.99.194:12102 1 wlx] X-LSCACHE: true
12/25/19 15:04:48.729 [103.227.99.194:12102 1 wlx] [Ctrl] X Cache_control -> no Cache ( logged in user ) => LSC_Control::set_nocache()@317 => LSC_Vary->__construct()@45 => LSC_Vary::get_instance()@648
12/25/19 15:04:48.740 [103.227.99.194:12102 1 wlx] [Router] get_uid: 1 => LSC_Router::get_uid()@215 => LSC_Router::get_role()@234 => LSC_Config->in_exclude_optimization_roles()@351 => LSC->after_user_init()@234
12/25/19 15:04:48.740 [103.227.99.194:12102 1 wlx] [Router] get_role: administrator
12/25/19 15:04:48.740 [103.227.99.194:12102 1 wlx] Media init
12/25/19 15:04:48.740 [103.227.99.194:12102 1 wlx] CDN init
12/25/19 15:04:48.740 [103.227.99.194:12102 1 wlx] Task init
12/25/19 15:04:48.740 [103.227.99.194:12102 1 wlx] [Router] LSCWP_CTRL bypassed empty
12/25/19 15:04:48.740 [103.227.99.194:12102 1 wlx] GUI init
12/25/19 15:04:48.744 [103.227.99.194:12102 1 wlx] [Vary] Rest API init disabled vary change
12/25/19 15:04:48.751 [103.227.99.194:12102 1 wlx] [REST] ✅ Internal REST ON [filter] rest_request_before_callbacks
12/25/19 15:04:48.989 [103.227.99.194:12102 1 wlx] [REST] ❎ Internal REST OFF [filter] rest_request_after_callbacks
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] [Core] CHK html bypass: miss footer const
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] [Ctrl] not cacheable before ctrl finalize
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] [Cfg] role in vary_group [group] 99
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] [Vary] show_admin_bar_front: false
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] [Vary] no custimzed vary
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] [Core] Silence Comment due to REST/AJAX
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] X-LiteSpeed-Cache-Control: no-cache
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] [Core] CHK html bypass: miss footer const
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] [Media] bypass: Not frontend HTML type
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] GUI bypassed by no counter
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] [Optm] bypass: Not frontend HTML type
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] CDN bypass
12/25/19 15:04:48.990 [103.227.99.194:12102 1 wlx] End response
--------------------------------------------------------------------------------





12/25/19 15:05:48.446 [103.227.99.194:19062 1 xr0] ------GET HTTP/1.1 (HTTPS) /wp-admin/admin.php
12/25/19 15:05:48.446 [103.227.99.194:19062 1 xr0] Query String: page=lscache-debug
12/25/19 15:05:48.446 [103.227.99.194:19062 1 xr0] HTTP_REFERER: https://www.cyberithub.com/wp-admin/admin.php?page=lscache-edit-htaccess
12/25/19 15:05:48.446 [103.227.99.194:19062 1 xr0] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36
12/25/19 15:05:48.446 [103.227.99.194:19062 1 xr0] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
12/25/19 15:05:48.446 [103.227.99.194:19062 1 xr0] Accept Encoding: gzip
12/25/19 15:05:48.446 [103.227.99.194:19062 1 xr0] Cookie _lscache_vary: logged-in:1;role:99
12/25/19 15:05:48.446 [103.227.99.194:19062 1 xr0] X-LSCACHE: true
12/25/19 15:05:48.446 [103.227.99.194:19062 1 xr0] LSCACHE_VARY_VALUE: +webp
12/25/19 15:05:48.491 [103.227.99.194:19062 1 xr0] [Ctrl] X Cache_control -> no Cache ( logged in user ) => LSC_Control::set_nocache()@317 => LSC_Vary->__construct()@45 => LSC_Vary::get_instance()@648
12/25/19 15:05:48.613 [2a02:4780:8:a::5:42922 1 O8o] ------POST HTTP/1.1 (HTTPS) /wp-cron.php
12/25/19 15:05:48.613 [2a02:4780:8:a::5:42922 1 O8o] Query String: doing_wp_cron=1577266548.4993419647216796875000
12/25/19 15:05:48.613 [2a02:4780:8:a::5:42922 1 O8o] HTTP_REFERER: https://www.cyberithub.com/wp-cron.php?doing_wp_cron=1577266548.4993419647216796875000
12/25/19 15:05:48.613 [2a02:4780:8:a::5:42922 1 O8o] User Agent: WordPress/5.2.5; https://www.cyberithub.com
12/25/19 15:05:48.613 [2a02:4780:8:a::5:42922 1 O8o] Accept: */*
12/25/19 15:05:48.613 [2a02:4780:8:a::5:42922 1 O8o] Accept Encoding: gzip
12/25/19 15:05:48.613 [2a02:4780:8:a::5:42922 1 O8o] X-LSCACHE: true
12/25/19 15:05:48.655 [2a02:4780:8:a::5:42922 1 O8o] [Router] get_uid: 0 => LSC_Router::get_uid()@215 => LSC_Router::get_role()@234 => LSC_Config->in_exclude_optimization_roles()@351 => LSC->after_user_init()@234
12/25/19 15:05:48.655 [2a02:4780:8:a::5:42922 1 O8o] [Router] get_role:
12/25/19 15:05:48.655 [2a02:4780:8:a::5:42922 1 O8o] Media init
12/25/19 15:05:48.655 [2a02:4780:8:a::5:42922 1 O8o] CDN init
12/25/19 15:05:48.655 [2a02:4780:8:a::5:42922 1 O8o] Task init
12/25/19 15:05:48.656 [2a02:4780:8:a::5:42922 1 O8o] [Router] LSCWP_CTRL bypassed empty
12/25/19 15:05:48.656 [2a02:4780:8:a::5:42922 1 O8o] GUI init
12/25/19 15:05:48.661 [2a02:4780:8:a::5:42922 1 O8o] ImgOptm init
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] [Core] CHK html bypass: miss footer const
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] [Ctrl] not cacheable before ctrl finalize
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] [Router] get_role:
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] [Vary] role id: failed, guest
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] [Router] get_role:
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] [Router] get_role:
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] [Vary] no custimzed vary
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] X-LiteSpeed-Cache-Control: no-cache
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] [Core] CHK html bypass: miss footer const
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] [Media] bypass: Not frontend HTML type
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] GUI bypassed by no counter
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] [Optm] bypass: Not frontend HTML type
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] CDN bypass
12/25/19 15:05:48.688 [2a02:4780:8:a::5:42922 1 O8o] End response
--------------------------------------------------------------------------------

12/25/19 15:05:48.705 [103.227.99.194:19062 1 xr0] Media init
12/25/19 15:05:48.706 [103.227.99.194:19062 1 xr0] CDN init
12/25/19 15:05:48.706 [103.227.99.194:19062 1 xr0] [Router] CDN bypassed: is not ajax call
12/25/19 15:05:48.706 [103.227.99.194:19062 1 xr0] [Router] CDN bypassed: ajax call from admin
12/25/19 15:05:48.706 [103.227.99.194:19062 1 xr0] Task init
12/25/19 15:05:48.706 [103.227.99.194:19062 1 xr0] [Router] LSCWP_CTRL bypassed empty
12/25/19 15:05:48.735 [103.227.99.194:19062 1 xr0] [Ctrl] X Cache_control -> no Cache ( Admin page ) => LSC_Control::set_nocache()@317 => LSC_Admin->admin_init()@134 => WP_Hook->apply_filters()@286
 

qtwrk

Well-Known Member
#12
Hi,

Apologize for late response.

the report shows the URL https://www.cy__rith_b.com/

Also when I curl it from ohter location , it responses , but shows Cloudflare cache hit , please disable cloudflare cache , it will mess the image optimization callback and verification.
 
#13
I can disable Clouflare Cache but a friend of mine is also using exactly same setting with same version of wordpress and his Image Optimization is working perfectly. If you want i will provide you temporary login access to my wordpress site to check.
 
Top