Title: wp-json url returns 500 http code while litespeed cache plugin is active.
Last modified: May 25, 2020

---

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

 *  Resolved [arunx](https://wordpress.org/support/users/arunx/)
 * (@arunx)
 * [6 years ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/)
 * 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. 
   I’m 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: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/#post-12887544)
 * 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, don’t 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/](https://paste.ubuntu.com/)
 * then post the link it generated for you.
 * Best regards,
 *  Thread Starter [arunx](https://wordpress.org/support/users/arunx/)
 * (@arunx)
 * [6 years ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/#post-12887635)
 * Hi,
 * Done logs. Please check log once. [https://paste.ubuntu.com/p/tfhRqxJTsR/](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
 *  Thread Starter [arunx](https://wordpress.org/support/users/arunx/)
 * (@arunx)
 * [6 years ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/#post-12893269)
 * Hi,
 * Can you see any specific issue which can cause this?
 * Regards,
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/#post-12893754)
 * 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,
 *  Thread Starter [arunx](https://wordpress.org/support/users/arunx/)
 * (@arunx)
 * [6 years ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/#post-12898511)
 * Hi,
 * I have root access. Let me know which log files are required and location I can
   send it.
 * Regards,
 *  Thread Starter [arunx](https://wordpress.org/support/users/arunx/)
 * (@arunx)
 * [6 years ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/#post-12913718)
 * Hi [@qtwrk](https://wordpress.org/support/users/qtwrk/),
 * 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,
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/#post-12916113)
 * 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,
 *  Thread Starter [arunx](https://wordpress.org/support/users/arunx/)
 * (@arunx)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/#post-12941679)
 * Hi [@qtwrk](https://wordpress.org/support/users/qtwrk/),
 * 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 don’t know where to look for solution.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/#post-12945408)
 * Hi,
 * Please create a ticket [here](https://quic.cloud/support/)
 * We will investigate it further.
 * Best regards,

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘wp-json url returns 500 http code while litespeed cache plugin is active.’
is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/wp-json-url-returns-500-http-code-while-litespeed-cache-plugin-is-active/#post-12945408)
 * Status: resolved