POST 403 error on console log when trying to submit a form

I have a contact form on a page that is not working and that returns a an error on the console after clicking on the submit button.

This is the error I get: POST https://h***.**n/wp-content/plugins/cmsmasters-contact-form-builder/inc/form-builder-sendmail.php 403

Any suggestions about how to solve this?

  • Ash
    • Code Norris

    Hello Philipp Ludwig

    The plugin tries to run a php file within the plugin directly, which is not recommended. Anyway, the issue was, you had activated Prevent PHP Execution from defender, so it puts a htaccess under wp-content folder that prevents php execution. I have removed the htaccess, so the file executes now, that means 403 error is gone.

    But now, there is another error – “Error establishing a database connection”. That is something cmsmasters-contact-form-builder plugin developers need to take a look. I am not sure how they are using the database in that file and even why the file is directly called using ajax.

    So, would you please contact their support team about the database issue? Let us know how it goes.

    Have a nice day!

    Cheers,

    Ash

  • Phil Samcro
    • The Crimson Coder

    Philipp Ludwig <info@bueroblanko.de>

    Di., 27. Nov., 17:06 (vor 18 Stunden)

    an WPMU

    Hey Ash,

    Thanks for your answer and for solving my Problem!

    The Database error was because you Changed wp-config. Unfortunatelly this is a live Server, so its Not good if the clients Website is offline for hours. But i already fixed it!

    Nevertheless thank you for your help and for making the contact Form work again :slight_smile:

    Best Regards

    Phil