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

How can I use AJAX in child theme template?

It has nothing to do with child themes, the problem is here: add_action(“wp_ajax_nopriv_x_before_process”, “x_before_process”); Notice the nopriv, this is for logged out users, but it’s likely you are logged in This needs adding: add_action(“wp_ajax_x_before_process”, “x_before_process”); Note that this would not have been an issue if it was built using a more modern AJAX API such … Read more

AJAX call not initializing for non-admins in WordPress

There are several potential reasons for this issue: Permissions: Non-admin users may not have the necessary permissions to access the admin-ajax.php file, which is being called in your AJAX request. Make sure that the required permissions are set for the user roles other than admin. Authentication: Non-admin users may not be authenticated to access the … Read more