Litespeed cache and cookie
-
Hello,
Sorry for my english.I often have pages with 400 errors and I just realized that they happen for example when I update an article.
After seeing the different messages on the forums. It seems to be from the cookies. So I know the source of the problem, because when I go to the site in private browsing, the error doesn’t come.
Do you have any ideas about this cookie problem?
Is it possible to make another cookie or other I have no idea.
Thank you for your help.
-
Hi @espacemusculation, do you find any error on server/php error.log or access.log when the error occurred?
@stanleylitespeed
Thank you for your answer. Where can I find his information?This for example ?
12/05/19 09:21:12.784 [88.191.115.4:53318 1 LTS] ------POST HTTP/1.0 (HTTPS) /admin007/admin-ajax.php 12/05/19 09:21:12.784 [88.191.115.4:53318 1 LTS] Query String: 12/05/19 09:21:12.784 [88.191.115.4:53318 1 LTS] HTTP_REFERER: https://www.docteur-fitness.com/admin007/index.php 12/05/19 09:21:12.784 [88.191.115.4:53318 1 LTS] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 12/05/19 09:21:12.784 [88.191.115.4:53318 1 LTS] Accept: */* 12/05/19 09:21:12.784 [88.191.115.4:53318 1 LTS] Accept Encoding: gzip,br 12/05/19 09:21:12.784 [88.191.115.4:53318 1 LTS] Cookie _lscache_vary: logged-in:1;role:99 12/05/19 09:21:12.784 [88.191.115.4:53318 1 LTS] X-LSCACHE: false 12/05/19 09:21:12.791 [88.191.115.4:53320 1 YHP] ------POST HTTP/1.0 (HTTPS) /admin007/admin-ajax.php 12/05/19 09:21:12.791 [88.191.115.4:53320 1 YHP] Query String: 12/05/19 09:21:12.791 [88.191.115.4:53320 1 YHP] HTTP_REFERER: https://www.docteur-fitness.com/admin007/index.php 12/05/19 09:21:12.791 [88.191.115.4:53320 1 YHP] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 12/05/19 09:21:12.791 [88.191.115.4:53320 1 YHP] Accept: application/json, text/javascript, */*; q=0.01 12/05/19 09:21:12.791 [88.191.115.4:53320 1 YHP] Accept Encoding: gzip,br 12/05/19 09:21:12.791 [88.191.115.4:53320 1 YHP] Cookie _lscache_vary: logged-in:1;role:99 12/05/19 09:21:12.791 [88.191.115.4:53320 1 YHP] X-LSCACHE: false 12/05/19 09:21:12.942 [88.191.115.4:53318 1 LTS] Media init 12/05/19 09:21:12.942 [88.191.115.4:53318 1 LTS] CDN init 12/05/19 09:21:12.942 [88.191.115.4:53318 1 LTS] [Router] CDN bypassed: ajax call from admin 12/05/19 09:21:12.942 [88.191.115.4:53318 1 LTS] Task init 12/05/19 09:21:12.943 [88.191.115.4:53318 1 LTS] [Router] LSCWP_CTRL bypassed empty 12/05/19 09:21:12.949 [88.191.115.4:53320 1 YHP] Media init 12/05/19 09:21:12.949 [88.191.115.4:53320 1 YHP] CDN init 12/05/19 09:21:12.949 [88.191.115.4:53320 1 YHP] [Router] CDN bypassed: ajax call from admin 12/05/19 09:21:12.949 [88.191.115.4:53320 1 YHP] Task init 12/05/19 09:21:12.949 [88.191.115.4:53320 1 YHP] [Router] LSCWP_CTRL bypassed empty 12/05/19 09:21:12.982 [88.191.115.4:53318 1 LTS] [Ctrl] X Cache_control -> no Cache ( Admin page ) => LSC_Control::set_nocache()@317 => LSC_Admin->admin_init()@134 => WP_Hook->apply_filters()@288 12/05/19 09:21:12.982 [88.191.115.4:53320 1 YHP] [Ctrl] X Cache_control -> no Cache ( Admin page ) => LSC_Control::set_nocache()@317 => LSC_Admin->admin_init()@134 => WP_Hook->apply_filters()@288 12/05/19 09:21:12.986 [88.191.115.4:53320 1 YHP] [Core] CHK html bypass: miss footer const 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] [Ctrl] not cacheable before ctrl finalize 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] [Router] get_uid: 1 => LSC_Router::get_uid()@215 => LSC_Vary->finalize_default_vary()@359 => LSC_Vary->_update_default_vary()@318 => LSC_Vary->_finalize()@510 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] [Router] get_role: administrator 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] [Cfg] role in vary_group [group] 99 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] [Vary] show_admin_bar_front: false 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] [Vary] no custimzed vary 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] [Core] Silence Comment due to REST/AJAX 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] X-LiteSpeed-Cache-Control: no-cache 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] [Core] CHK html bypass: miss footer const 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] [Media] bypass: Not frontend HTML type 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] GUI bypassed by no counter 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] [Optm] bypass: Not frontend HTML type 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] CDN bypass 12/05/19 09:21:12.987 [88.191.115.4:53320 1 YHP] End response
It depends on your hosting, please contact your hosting provider for this information.
Actually, I don’t really know if it’s from the cookies. I’m lost.
@stanleylitespeed I can give you my access if you have a moment to look.
[Tue Dec 03 10:35:15.912092 2019] [lsapi:notice] [pid 21471:tid 47118853424896] [client 66.249.93.123:0] [host https://www.docteur-fitness.com] Backend log: PHP Warning: chmod(): No such file or directory in /home/thji1698/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 168\n, referer: https://www.docteur-fitness.com/
[Tue Dec 03 10:30:39.460108 2019] [lsapi:notice] [pid 21470:tid 47118845019904] [client 193.248.246.248:0] [host https://www.docteur-fitness.com] Backend log: PHP Warning: chmod(): No such file or directory in /home/thji1698/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 168\n, referer: https://www.docteur-fitness.com/
[Tue Dec 03 10:17:11.930595 2019] [lsapi:notice] [pid 21470:tid 47118866032384] [client 193.248.246.248:0] [host https://www.docteur-fitness.com] Backend log: PHP Warning: chmod(): No such file or directory in /home/thji1698/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 168\n, referer: https://www.docteur-fitness.com/
[Sat Nov 30 16:02:13.923012 2019] [lsapi:error] [pid 4143470:tid 46921743345408] [client 88.191.115.4:0] [host https://www.docteur-fitness.com] Backend fatal error: PHP Fatal error: Uncaught Error: Class ‘WP_Rocket\\Busting\\Google_Analytics’ not found in /home/thji1698/wordpress/wp-content/plugins/wp-rocket/inc/classes/busting/class-busting-factory.php:49\nStack trace:\n#0 /home/thji1698/wordpress/wp-content/plugins/wp-rocket/inc/classes/subscriber/class-google-tracking-cache-busting-subscriber.php(93): WP_Rocket\\Busting\\Busting_Factory->type(‘ga’)\n#1 /home/thji1698/wordpress/wp-includes/class-wp-hook.php(288): WP_Rocket\\Subscriber\\Google_Tracking_Cache_Busting_Subscriber->cache_busting_google_tracking(‘<!DOCTYPE html>…’)\n#2 /home/thji1698/wordpress/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘<!DOCTYPE html>…’, Array)\n#3 /home/thji1698/wordpress/wp-content/plugins/wp-rocket/inc/classes/Buffer/class-optimization.php(104): apply_filters(‘rocket_buffer’, ‘<!DOCTYPE html>…’)\n#4 [internal function]: WP_Rocket\\Buffer\\Optimization->maybe_process_buffer(‘<!DOCTYPE html>…’, 9)\n#5 /home/thji1698/wordpress/wp-includes/functions.php(4469): ob_end_flush()\n#6 /home/thji1698/wordpress/wp- in /home/thji1698/wordpress/wp-content/plugins/wp-rocket/inc/classes/busting/class-busting-factory.php on line 49\n, referer: https://www.docteur-fitness.com/wp-admin/options-general.php?page=updraftplus&tab=backups
[Sat Nov 30 16:02:13.922835 2019] [lsapi:notice] [pid 4143470:tid 46921743345408] [client 88.191.115.4:0] [host https://www.docteur-fitness.com] Backend log: PHP Warning: include(): Failed opening ‘/home/thji1698/wordpress/wp-content/plugins/wp-rocket/vendor/composer/../../inc/classes/busting/class-google-analytics.php’ for inclusion (include_path=’.:/opt/alt/php73/usr/share/pear’) in /home/thji1698/wordpress/wp-content/plugins/seo-by-rank-math/vendor/composer/ClassLoader.php on line 444\n, referer: https://www.docteur-fitness.com/wp-admin/options-general.php?page=updraftplus&tab=backups
[Sat Nov 30 16:02:13.922825 2019] [lsapi:notice] [pid 4143470:tid 46921743345408] [client 88.191.115.4:0] [host https://www.docteur-fitness.com] Backend log: PHP Warning: include(/home/thji1698/wordpress/wp-content/plugins/wp-rocket/vendor/composer/../../inc/classes/busting/class-google-analytics.php): failed to open stream: No such file or directory in /home/thji1698/wordpress/wp-content/plugins/seo-by-rank-math/vendor/composer/ClassLoader.php on line 444\n, referer: https://www.docteur-fitness.com/wp-admin/options-general.php?page=updraftplus&tab=backups
[Sat Nov 30 16:02:13.922787 2019] [lsapi:notice] [pid 4143470:tid 46921743345408] [client 88.191.115.4:0] [host https://www.docteur-fitness.com] Backend log: PHP Warning: include(/home/thji1698/wordpress/wp-content/plugins/wp-rocket/vendor/composer/../../inc/classes/busting/class-google-analytics.php): failed to open stream: No such file or directory in /home/thji1698/wordpress/wp-content/plugins/seo-by-rank-math/vendor/composer/ClassLoader.php on line 444\n, referer: https://www.docteur-fitness.com/wp-admin/options-general.php?page=updraftplus&tab=backupsAccording to my hosting, it doesn’t come from their server but from the plugin.
According to them, there is no mistake on their side.After checking the log file, I cannot confirm the 400 error comes from our plugin. Could you try to turn [ON] LiteSpeed Cache > Setting > Debug > Disable All Features and keep working on wp-admin to see does the 400 error occurred.
Also, please find the steps on how to reproduce the error for us to debug easier.
Hi,
Do you still need help with this?
I’m going to mark this topic “Resolved” for now, but will re-open it if we hear from you again.
Thanks!
- The topic ‘Litespeed cache and cookie’ is closed to new replies.