I just try to use Ajax on a website, to load products without refreshing the website. In console I get the following error:
POST https://mywebsite.com/wp-admin/admin-ajax.php 500 jquery.min.js?ver=3.5.1:2
I try to increase WP_MEMORY_LIMIT
and WP_MAX_MEMORY_LIMIT
but still I get the same error.
What is the reason for this error? and How I can fix it?
3
Answers
https://www.wpbeginner.com/wp-tutorials/how-to-fix-failed-to-load-resource-error-in-wordpress/
Its bizar!
If the missing resource is an image in one of your blog posts or page, then try to look for it in the media library.
Replace missing image
If you can see it in the media library, then try to add it again by editing the post or page. If you cannot see the file in the media library, then try uploading it again.
In some cases, you may see broken images or empty boxes in the media library instead of images. In that case, you may need to fix the file permissions. For detailed instructions, see our tutorial on how to fix image upload issues in WordPress.
For me it happened when I installed and activated a plugin that wasn’t tested/approved for my version of Elementor (or for your version of WordPress in your case perhaps). Removing that will "fix" it.
Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, try manually resetting your plugins (no Dashboard access required).