How to get the fatal-error message instead of “500 Internal Server Error” from admin-ajax?

enter image description here

In most cases I face, when there is any php-issue inside admin-ajax execution (calling from jQuery), the response is 500 :

also, the response is empty:

Is there any way, that it showed the fatal-error whatever happened there? because i have turned on php-errors and wp-debug too, just they are not returning from admin-ajax.

Per my understanding, the ajax (even when Fatal error happens on backend) should show like: status 200 / fatal error happened …….

Read more here:: How to get the fatal-error message instead of “500 Internal Server Error” from admin-ajax?

Leave a Reply

Your email address will not be published. Required fields are marked *