wp-json url returns 500 http code while litespeed cache plugin is active.




Wordpress LScache Plugin: wp-json url returns 500 http code while litespeed cache plugin is active.

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I have install Cyberpanel on Centos box. My site running fine but wp-json url of my website returns 500 http code while it perfectly prints json response. Im not sure why wrong http code is getting sent. As soon as I disable litespeed plugin it returns 200 http code with proper json response. Can I get help this debug? The page I need help with: https://bloggersideas.com/wp-json Hi, Could you please go to admin area , left-side bar ?> LiteSpeed Cache ?> Toolbox ?> [6] Debug Settings in this page: set Debug Log to Admin IP Only add your IP into Admin IPs (you will see your IP below.) set Debug Level to Advanced save changes. Now go to [7] Log View, click on admin-bar LiteSpeed Cache ?> Purge All then click button [D] Clear Log , keep this window open, dont close it nor navigate away from it. Now ,open a new window, access your wp-json link once page is loaded , go back to Log View window and refresh this page, you should see the debug log is showing up. Then please copy all the text , paste it into https://paste.ubuntu.com/ then post the link it generated for you. Best regards, Hi, Done logs. Please check log once. https://paste.ubuntu.com/p/tfhRqxJTsR/ I thought might be php version so changed version from 7.4 to 7.2 still issue is same. Regards Hi, Can you see any specific issue which can cause this? Regards, Hi, No , from the log it seems everything is fine. Do you have root access ? maybe server log would show something. I tried to reproduce this error but can not successfully make it happen on my test site. Best regards, Hi, I have root access. Let me know which log files are required and location I can send it. Regards, Hi @CacheCrawler, Please provide your guidance to fix this issue.I can give logs from server if you can tell which logs and location of logs. Thanks Regards, Hi, Please do following: edit /usr/local/lsws/lsphpXX/etc/php.ini where XX is your php version the site is using. find error_log = php_errors.log remove the find error_reporting = E_ALL & E_DEPRECATED & E_STRICT change it to error_reporting = E_ALL save it , then run pkill lsphp now trigger that error again , see if there is anything show up in /home/domain.com/public_html/php_errors.log Best regards, Hi @CacheCrawler, Sorry for delay reply. Unfortunately nothing in error log after enabling php error log for php72. After enabling I got 2 warning message in log php_errors.log file. [05-Jun-2020 04:32:42 UTC] PHP Warning: Use of undefined constant full - assumed full (this will throw an Error in a future version of PHP) in /home/bloggersideas.com/public_html/wp-content/plugins/schemaninja/templates/sidebar_template.php on line 48 [05-Jun-2020 04:32:42 UTC] PHP Warning: Use of undefined constant full - assumed full (this will throw an Error in a future version of PHP) in /home/bloggersideas.com/public_html/wp-content/plugins/schemaninja/templates/sidebar_template.php on line 48 So to remove warning message I removed that plugin from wordpress but still wp-json was giving 500 error page and no warning or php error in php_errors.log file. I dont know where to look for solution. Hi, Please create a ticket here We will investigate it further. Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference