using AJAX [object Object]

These lines are responsible for the alert: success: function(data) { window.alert(data); }, error: function(errorThrown){ window.alert(errorThrown); } In the first block, success, the callback function is executed if the ajax request succeded. The second block, error, will run if the request returned an error. Right now in both cases an alert is triggered via window.alert() function … Read more

weird Internal Server Error – no error log produced

I’ve found this question which describes the same issue i’m facing. The accepted solution didn’t work for me, but after a bit more research I’ve found this solution from WPML. I’ve noticed that after calling the endpoint the .htaccess was getting rewritten, this part: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule … Read more