The 404 error that appears in the Network tab points directly to this file:
/plugins/stockunlocks/js/private/stockunlocks.js
Line 5:
var wpajax_url = document.location.protocol + '//' + document.location.host + '/wp-admin/admin-ajax.php';
I can recreate your problem when I’m running WordPress locally.
This is because /wp-admin/admin-ajax.php
would need additional info due to local hosting arrangement.
For example, my local hosting environment requires that I add /stockunlocks-plugin
because that’s how my local environment is set up.
So, here is what line 5 will look like for me, running locally:
var wpajax_url = document.location.protocol + '//' + document.location.host + '/stockunlocks-plugin/wp-admin/admin-ajax.php';
If I do not add /stockunlocks-plugin
, I get the same 404 error that you receive on the Network tab. After adding, it works just fine.
Check your URL structure for your environment. The plugin is designed to work with the most common structures encountered for a hosted environment.
Hope this helps.
Regards,
Henry