Hi @m0lte91,
Given the situation where users report an inability to submit forms through the weForms plugin, with no apparent action taken upon submission and a 403 error in the browser console when accessing wp-admin/admin-ajax.php
, it seems you’re facing a server-side issue. The 403 Forbidden status code indicates that the server understands the request but refuses to authorize it. This could be due to a variety of reasons, including server configurations, file permissions, or security plugins that might be incorrectly blocking these requests.
Since you’ve mentioned the setting “send via WordPress” is activated, which relies on WordPress’s wp_mail
function and subsequently the admin-ajax.php file for asynchronous operations, here are the steps to troubleshoot and potentially resolve the issue:
- Check Plugin Conflicts: Temporarily deactivate other plugins, especially security plugins, to rule out conflicts. If the form submission works after deactivating a plugin, you’ve found the source of the conflict.
- File Permissions: Ensure the file permissions for the
wp-admin
and wp-includes
directories are correctly set. Typically, directories should be 755 or 750, and files should be 644 or 640. Incorrect file permissions can lead to 403 errors.
- Server Configuration: Review your server’s configuration files (e.g., .htaccess for Apache or nginx.conf for Nginx) for rules that might be blocking access to admin-ajax.php. Overly aggressive security rules can sometimes cause this issue.
- WordPress Core Files: A corrupt
admin-ajax.php
file could also be the culprit. Re-uploading a fresh copy of the wp-admin
and wp-includes
folders from a new WordPress download can ensure these core files aren’t the issue.
- Contact Hosting Provider: Some hosting environments have strict security measures that might inadvertently block legitimate AJAX requests. Your hosting provider can check if server-side security measures are causing the 403 error.
- Check for IP Ban: Ensure your IP address hasn’t been mistakenly blacklisted by a security plugin or the hosting provider, causing requests from your IP to be rejected.
I hope this helps. Please let us know if you have further questions!