• Resolved Klaas Koopman

    (@inspired-media)


    Dear Wordfence support,

    I’m using Gravity Forms and within this form people can input fields and also upload images to submit. But some people get the following error when they want to submit the whole form:

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/(mysiteurl)/domains/(mysiteurl)/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/rules.php on line 809

    I guess it has something todo with the Firewall? How do I stop this?

    Would love to hear from you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey @inspired-media,

    Are you able to reproduce this? If so, can you please switch the Firewall into Learning Mode and let me know if it helps?

    Please let me know.

    Thanks,

    Gerroald

    Hi @inspired-media,

    Can you go into Wordfence -> Firewall -> All Firewall Options -> Advanced Firewall Options -> Rules, and disable the rule Malicious File Upload?

    For example: https://i.imgur.com/cIFMZsN.png

    Note that if your users are uploading very large files, Wordfence will require more than 30 seconds to be able to scan that file.

    If you want to have this scan available, you can also set_time_limit(60); (within wp-config.php, 60 seconds, or 0 for no limit)

    Dave

    Thread Starter Klaas Koopman

    (@inspired-media)

    Hi Dave and Gerald,

    Thank you for your reply. I have disabled the malicious file upload rule. Let’s wait and see if they can upload now!

    How do I set the set_time_limit in wp-config.php as I don’t see it mentioned in there?

    You would edit the file and add set_time_limit(60); at the top of the file (after the <?php).

    You can change 60 to the amount of time in seconds, 0 would mean no limit.

    However, let’s see how disabling the rules works out first!

    Dave

    Thread Starter Klaas Koopman

    (@inspired-media)

    Hi Dave,

    Thank you. I believe it is fixed now. Thank you very much for your help!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal Error from lib/rules.php’ is closed to new replies.