Plugin Throws 404 403 500 Error After Save Setting In WP-Invoice Plugin

It is the one of the most frequently asked question. When you try to save settings or first time setup page you got 404 or some another error.

We did some investigation and found that the cause is mostly connected to Apache mod_security module which goes with some hosting/server plans by the default.

The module has settings called Rules that are monitoring the access requests to your site. If mod_security rule decides that request data or URL or something else is dangerous on their opinion then it throws error preventing further access to the site.

The problem is that rules can be customized the way nobody expects. We cannot change the way setting are saving to satisfy any mod_security rule.

That is happening with invoice save settings action for some hosting/server plans. e.g. DreamHost, GoDaddy.

The only way to fix that is to contact hosting provider to see mod_security logs for details that will help to determine which rule is fired for your case and try to fix it or turn off.

Also to get around this, you can temporarily disable mod_security, configure your WP-Invoice setup, and then re-enable mod_security. The easiest way to temporarily disable mod_security is to create an .htaccess file in the document root of the web server with the following contents:

SecFilterEngine Off
SecFilterScanPOST Off

Save that file and restart Apache. After you take care of the final setup of WP-Invoice, make sure to delete or rename that .htaccess file and restart Apache. If you don't remove that file and restart the server, Apache will be wide open and insecure.  Remember: don't forget to turn mod_security back on.

We guarantee that our code doesn't do any dangerous actions. It just posts the data to be saved.


  1. WP-Invoice & WP-CRM Integration
  2. Installing WP-Invoice Add ons
  3. WP-Invoice - Home
  4. How to create custom template for invoice page in WP-Invoice plugin?
  5. WP-Invoice settings Payment tab
  6. WP-Invoice Settings Business Process tab
  7. WP-Invoice Settings Main tab
  8. WP-Invoice API
  9. WP-Invoice Shortcodes
  10. WP-Invoice Plugin Just [wp Invoice] Shortcode On The Page
  11. WP-Invoice Widgets
  12. WP-Invoice Settings Line Items Tab
  13. WP-Invoice Settings E Mail Templates Tab
  14. WP-Invoice PayPal Partial Payment. Reporting That Invoice Already Paid.
  15. WP-Invoice - Translating Wp Invoice
  16. Setting Up Recurring Billing In WP-Invoice Plugin
  17. Redirection Loop On Single Invoice Page In WP-Invoice Plugin
  18. Quotes Response Form Do Not Appear In WP-Invoice Plugin
  19. Plugin Throws 404 403 500 Error After Save Setting In WP-Invoice Plugin
  20. PayPal. Invoice Is Not Updated With Paid Status In WP-Invoice Plugin.
  21. PayPal Username And Sandbox Error In WP-Invoice Plugin
  22. PayPal Payment Settings In WP-Invoice Plugin
  23. Page Not Found (404 Error) When Trying To View Invoice In WP-Invoice Plugin
  24. MerchantPlus And Other Authorize Gateways In WP-Invoice Plugin
  25. Installing WP-Invoice
  26. How To Replace The "Access Denied" With The Login Box In WP-Invoice?
  27. Global Or Specific Invoice Payment Settings In WP-Invoice Plugin
  28. Billing With WP-Invoice
  29. How To Create Custom Template For Invoice Page In WP-Invoice Plugin?
  30. Empty Blank Invoice Page Or Just [wp Invoice] Instead Of Invoice In WP-Invoice Plugin
  31. Editing An Invoice In WP-Invoice Plugin
  32. Creating An Invoice In WP-Invoice Plugin
  33. WP-Invoice and WooCommerce compatibility

Feedback and Knowledge Base