# Failed to send data from php code via AJAX and JSON response does not come

**URL:** <https://forum.infinityfree.com/t/failed-to-send-data-from-php-code-via-ajax-and-json-response-does-not-come/83599>\
**Category:** Hosting Support\
**Created:** [October 1, 2023, 1:27pm UTC](https://forum.infinityfree.com/t/failed-to-send-data-from-php-code-via-ajax-and-json-response-does-not-come/83599 "2023-10-01T13:27:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [October 1, 2023, 1:32pm UTC](https://forum.infinityfree.com/t/failed-to-send-data-from-php-code-via-ajax-and-json-response-does-not-come/83599/2 "2023-10-01T13:32:49Z")

</div>

Enable error logs and try again please

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352):
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has crashed. The .htaccess file contains invalid rules. Here are some things you can try to debug and fix this. Fixing crashing PHP code A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed. Gett…

---

_[View the full topic](https://forum.infinityfree.com/t/failed-to-send-data-from-php-code-via-ajax-and-json-response-does-not-come/83599)._
