Background of the issue:
I was trying to install WPML on my website, and after installation, an error message appeared. The URL where the issue can be seen is: hidden link.
Symptoms:
WPML can't run normally. There is an installation or server configuration problem. AJAX Error: error [0].
Questions:
What is causing the installation or server configuration problem?
How can I resolve the AJAX Error: error [0]?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Can you please try the following:
1. Check your browser console for errors – Press F12 and go to the Console or Network tab. Look for any 403 or 500 errors or blocked requests that could help identify why the AJAX call is failing.
2. Enable WP Debug Mode – Add the following lines to your `wp-config.php` file:
Then reload the page and check the `wp-content/debug.log` file for errors.
3. Temporarily disable other plugins – Conflicts with caching, optimization, or security plugins may break AJAX. Disable all other plugins temporarily and see if the issue persists.
4. Check your `.htaccess` file – If you're using Apache, make sure `.htaccess` isn’t blocking access to `admin-ajax.php`.
5. Verify file and folder permissions – Ensure that:
- Files have `644` permissions
- Folders have `755` permissions
6. Check server logs – Review your hosting provider's error logs to see if any PHP errors or blocked AJAX requests are showing up.
7. Contact your hosting support – On shared hosting, services like ModSecurity might block WPML’s AJAX requests. Ask your host to check for any blocked AJAX activity.