Displaying PHP Errors from admin-ajax.php

Question

We’ve got some custom endpoints set up that do various things, which we access via /wp/wp-admin/admin-ajax.php?action=some_action

However whenever there is an error as we’re developing, such as syntax, logical, fatal etc, we simply get “500 Internal Server Error”

Every other page on the site when there’s an error, it gives us the PHP error.

We have to then open our PHP Log file to see the error.

Is there something in wordpress that disables displaying of errors on these URLs? and if so, how can we prevent this to allow rendering of the errors on the browser?

0
, Owen 5 years 2018-03-26T05:19:55-05:00 0 Answers 92 views 0

Leave an answer

Browse
Browse