• Hi Eli

    The plugin was working great until I updated the site to PHP7.4.

    Now quick scan does not work and a pop ups says to try the main scan, only in both cases the scan causes wordpress to crash.

    I get the following error from wordpress that says the plugin caused a crash

    An error of type E_ERROR was caused in line 855 of the file /home/1234/public_html/example.com/wp-content/plugins/gotmls/images/index.php. Error message: Maximum execution time of 60 seconds exceeded

    I asked my host about it and they said it was the plugin too.

    I checked the error logs and the plugin showed up.

    There are plenty of resources on the server and everything worked well on a lower version of PHP.

    Please advise as it is a great plugin and I’d like to have it working

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ontheroad

    (@ontheroad)

    Having reverted to PHP 7 Anti-Malware Security and Brute-Force Firewall is not picking up the following infected file

    class-wp-http-netfilter.php

    Anti-Malware Security and Brute-Force Firewall still not working with PHP 7.4: Is there any update on this please?

    Plugin Author Eli

    (@scheeeli)

    Hi Dave,
    I have not been able to recreate the timeout issue that you are having when you upgraded to PHP 7.4. To be clear, the Quick Scan will usually timeout on large sites or if your server resources are limited.

    The Complete Scan stays on the Scan results page and loads multiple calls to the admin_ajax.php script. These are generally smaller scan tasks that should only take a couple of second each, at most. If any of them are timing out after 60 seconds that is usually an indication of of a problem on the server or a problem that the plugin is having in scanning that particular sub-directory. When I run the Complete Scan on one of my large sites with PHP 7.1 I get only a couple of timeouts out of hundreds of quick and successful ajax calls. When I upgraded to PHP 7.4 I do get a couple more but still around 99% of all the ajax calls go through successfully in just a couple seconds at most.

    The line of cade that you are getting that timeout error on is the line that scans the current file’s contents using a number of regular expressions to look for malicious code. This is undoubtedly the most strenuous part of the scan process so it makes sense that it would timeout there if it were to timeout anywhere, but it should not be timing out a lot, and certainly not on every ajax call. Can you rerun your test and confirm how many of the ajax calls are timing out and how long, on average, it takes if they do return results?

    As for the class-wp-http-netfilter.php file, if you can please send me that file in an email then I can investigate that further and get back to you.

    Thread Starter ontheroad

    (@ontheroad)

    Hi Eli,

    Thank you for such a detailed reply. I understand what you wrote.

    Unfortunately the Complete Scan is taking several hours to complete on PHP7.4. On PHP7 it’s done in a few minutes and hangs at 99% (depending on the full scan). So I don’t get any results.

    The server is not indicating and usage issues.

    I’ll try again with another PHP version other than 7. and 7.4

    I’ve just emailed you the class-wp-http-netfilter.php in txt format along with another one that appears with all these infections too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working after update to PHP7.4’ is closed to new replies.