• One of my sites fails scan every time with this error. On the option page I put in 15 seconds, then 12 as max execution time, but that doesn’t help.

    This site doesn’t have a lot of data. Sites with a lot more data scan just fine with the same configuration settings.

    [Sep 07 08:07:19:1410106039.194753:1:error] <b>Fatal error</b>: Maximum execution time of 30 seconds exceeded in <b>/xxx/wp-content/plugins/wordfence/lib/wordfenceScanner.php</b> on line <b>156</b>
    [Sep 07 08:06:50:1410106010.767665:2:info] Scanned contents of 376 additional files at 1.19 per second
    [Sep 07 08:06:49:1410106009.478679:2:info] Scanned contents of 373 additional files at 1.18 per second
    [Sep 07 08:06:47:1410106007.331399:2:info] Scanned contents of 370 additional files at 1.18 per second
    [Sep 07 08:06:44:1410106004.923000:2:info] Scanned contents of 367 additional files at 1.18 per second
    [Sep 07 08:06:43:1410106003.787876:2:info] Scanned contents of 364 additional files at 1.17 per second
    [Sep 07 08:06:41:1410106001.703523:2:info] Scanned contents of 359 additional files at 1.17 per second
    [Sep 07 08:06:39:1410105999.149096:2:info] Scanned contents of 358 additional files at 1.17 per second
    [Sep 07 08:06:33:1410105993.893027:2:info] Scanned contents of 357 additional files at 1.19 per second
    [Sep 07 08:06:31:1410105991.032921:2:info] Scanned contents of 355 additional files at 1.19 per second
    [Sep 07 08:06:26:1410105986.118066:2:info] Scanned contents of 354 additional files at 1.21 per second
    [Sep 07 08:06:24:1410105984.147810:2:info] Scanned contents of 353 additional files at 1.22 per second
    [Sep 07 08:06:23:1410105983.101295:2:info] Scanned contents of 352 additional files at 1.22 per second
    [Sep 07 08:06:21:1410105981.797471:2:info] Scanned contents of 350 additional files at 1.21 per second
    [Sep 07 08:06:18:1410105978.900453:2:info] Scanned contents of 349 additional files at 1.22 per second
    [Sep 07 08:06:16:1410105976.578141:2:info] Scanned contents of 346 additional files at 1.22 per second
    [Sep 07 08:06:15:1410105975.159898:2:info] Scanned contents of 345 additional files at 1.23 per second
    [Sep 07 08:06:13:1410105973.726678:2:info] Scanned contents of 341 additional files at 1.22 per second
    [Sep 07 08:06:12:1410105972.652818:2:info] Scanned contents of 337 additional files at 1.21 per second
    [Sep 07 08:06:11:1410105971.439412:2:info] Scanned contents of 330 additional files at 1.19 per second
    [Sep 07 08:06:09:1410105969.937570:2:info] Scanned contents of 327 additional files at 1.18 per second
    [Sep 07 08:06:05:1410105965.929789:2:info] Scanned contents of 325 additional files at 1.19 per second
    [Sep 07 08:06:01:1410105961.023877:2:info] Scanned contents of 324 additional files at 1.21 per second
    [Sep 07 08:05:56:1410105956.872984:2:info] Scanned contents of 321 additional files at 1.22 per second
    [Sep 07 08:05:52:1410105952.731522:2:info] Scanned contents of 320 additional files at 1.24 per second
    [Sep 07 08:05:51:1410105951.616335:2:info] Scanned contents of 315 additional files at 1.22 per second
    [Sep 07 08:05:46:1410105946.161170:2:info] Scanned contents of 313 additional files at 1.24 per second
    [Sep 07 08:05:42:1410105942.246789:2:info] Scanned contents of 312 additional files at 1.26 per second
    [Sep 07 08:05:38:1410105938.049166:2:info] Scanned contents of 309 additional files at 1.26 per second
    [Sep 07 08:05:35:1410105935.653972:2:info] Scanned contents of 303 additional files at 1.25 per second
    [Sep 07 08:05:34:1410105934.330052:2:info] Scanned contents of 297 additional files at 1.23 per second
    [Sep 07 08:05:33:1410105933.186095:2:info] Scanned contents of 294 additional files at 1.23 per second
    [Sep 07 08:05:31:1410105931.152185:2:info] Scanned contents of 292 additional files at 1.23 per second
    [Sep 07 08:05:30:1410105930.030142:2:info] Scanned contents of 288 additional files at 1.22 per second
    [Sep 07 08:05:28:1410105928.815934:2:info] Scanned contents of 283 additional files at 1.20 per second
    [Sep 07 08:05:25:1410105925.262006:2:info] Scanned contents of 282 additional files at 1.22 per second
    [Sep 07 08:05:21:1410105921.763096:2:info] Scanned contents of 279 additional files at 1.22 per second
    [Sep 07 08:05:17:1410105917.578212:2:info] Scanned contents of 276 additional files at 1.23 per second
    [Sep 07 08:05:15:1410105915.726055:2:info] Scanned contents of 273 additional files at 1.23 per second
    [Sep 07 08:05:11:1410105911.975715:2:info] Scanned contents of 271 additional files at 1.24 per second
    [Sep 07 08:05:07:1410105907.207181:2:info] Scanned contents of 270 additional files at 1.26 per second
    [Sep 07 08:04:57:1410105897.389436:2:info] Scanned contents of 267 additional files at 1.31 per second
    [Sep 07 08:04:54:1410105894.711239:2:info] Scanned contents of 264 additional files at 1.31 per second
    [Sep 07 08:04:52:1410105892.647297:2:info] Scanned contents of 261 additional files at 1.31 per second
    [Sep 07 08:04:51:1410105891.597895:2:info] Scanned contents of 259 additional files at 1.31 per second
    [Sep 07 08:04:46:1410105886.287513:2:info] Scanned contents of 258 additional files at 1.34 per second
    [Sep 07 08:04:45:1410105885.037019:2:info] Scanned contents of 253 additional files at 1.32 per second
    [Sep 07 08:04:43:1410105883.582471:2:info] Scanned contents of 250 additional files at 1.32 per second
    [Sep 07 08:04:42:1410105882.466522:2:info] Scanned contents of 247 additional files at 1.31 per second
    [Sep 07 08:04:39:1410105879.070896:2:info] Scanned contents of 242 additional files at 1.31 per second
    [Sep 07 08:04:33:1410105873.847657:2:info] Scanned contents of 240 additional files at 1.33 per second
    [Sep 07 08:04:25:1410105865.980436:2:info] Scanned contents of 239 additional files at 1.39 per second
    [Sep 07 08:04:18:1410105858.728522:2:info] Scanned contents of 234 additional files at 1.42 per second
    [Sep 07 08:04:17:1410105857.602335:2:info] Scanned contents of 228 additional files at 1.39 per second
    [Sep 07 08:04:16:1410105856.485168:2:info] Scanned contents of 222 additional files at 1.36 per second
    [Sep 07 08:04:11:1410105851.428211:2:info] Scanned contents of 220 additional files at 1.39 per second
    [Sep 07 08:04:08:1410105848.670571:2:info] Scanned contents of 219 additional files at 1.41 per second
    [Sep 07 08:04:04:1410105844.033549:2:info] Scanned contents of 216 additional files at 1.44 per second
    [Sep 07 08:04:02:1410105842.265363:2:info] Scanned contents of 215 additional files at 1.45 per second
    [Sep 07 08:04:01:1410105841.151808:2:info] Scanned contents of 208 additional files at 1.41 per second
    [Sep 07 08:03:56:1410105836.277854:2:info] Scanned contents of 188 additional files at 1.32 per second
    [Sep 07 08:03:55:1410105835.162797:2:info] Scanned contents of 176 additional files at 1.24 per second
    [Sep 07 08:03:52:1410105832.620665:2:info] Scanned contents of 169 additional files at 1.22 per second
    [Sep 07 08:03:47:1410105827.807723:2:info] Scanned contents of 168 additional files at 1.25 per second
    [Sep 07 08:03:43:1410105823.063845:2:info] Scanned contents of 162 additional files at 1.25 per second
    [Sep 07 08:03:42:1410105822.053565:2:info] Scanned contents of 151 additional files at 1.18 per second
    [Sep 07 08:03:38:1410105818.537130:2:info] Scanned contents of 149 additional files at 1.19 per second
    [Sep 07 08:03:36:1410105816.734296:2:info] Scanned contents of 146 additional files at 1.19 per second
    [Sep 07 08:03:35:1410105815.526688:2:info] Scanned contents of 144 additional files at 1.18 per second
    [Sep 07 08:03:34:1410105814.522644:2:info] Scanned contents of 129 additional files at 1.07 per second
    [Sep 07 08:03:32:1410105812.230937:2:info] Scanned contents of 127 additional files at 1.07 per second
    [Sep 07 08:03:28:1410105808.612651:2:info] Scanned contents of 126 additional files at 1.10 per second
    [Sep 07 08:03:22:1410105802.593005:2:info] Scanned contents of 123 additional files at 1.13 per second
    [Sep 07 08:03:21:1410105801.575667:2:info] Scanned contents of 109 additional files at 1.01 per second
    [Sep 07 08:03:20:1410105800.421316:2:info] Scanned contents of 90 additional files at 0.84 per second
    [Sep 07 08:03:18:1410105798.942228:2:info] Scanned contents of 80 additional files at 0.76 per second
    [Sep 07 08:03:17:1410105797.771283:2:info] Scanned contents of 79 additional files at 0.76 per second
    [Sep 07 08:03:16:1410105796.474533:2:info] Scanned contents of 77 additional files at 0.75 per second
    [Sep 07 08:03:15:1410105795.413934:2:info] Scanned contents of 74 additional files at 0.73 per second
    [Sep 07 08:03:11:1410105791.779751:2:info] Scanned contents of 72 additional files at 0.73 per second
    [Sep 07 08:03:10:1410105790.262537:2:info] Scanned contents of 70 additional files at 0.72 per second
    [Sep 07 08:03:09:1410105789.088645:2:info] Scanned contents of 68 additional files at 0.71 per second
    [Sep 07 08:03:07:1410105787.566589:2:info] Scanned contents of 66 additional files at 0.70 per second
    [Sep 07 08:03:05:1410105785.884063:2:info] Scanned contents of 64 additional files at 0.69 per second
    [Sep 07 08:03:03:1410105783.867852:2:info] Scanned contents of 62 additional files at 0.69 per second
    [Sep 07 08:03:02:1410105782.712584:2:info] Scanned contents of 60 additional files at 0.67 per second
    [Sep 07 08:03:01:1410105781.386788:2:info] Scanned contents of 58 additional files at 0.66 per second
    [Sep 07 08:03:00:1410105780.019567:2:info] Scanned contents of 55 additional files at 0.64 per second
    [Sep 07 08:02:57:1410105777.235058:2:info] Scanned contents of 54 additional files at 0.65 per second
    [Sep 07 08:02:56:1410105776.015251:2:info] Scanned contents of 51 additional files at 0.62 per second
    [Sep 07 08:02:54:1410105774.939359:2:info] Scanned contents of 49 additional files at 0.60 per second
    [Sep 07 08:02:53:1410105773.770634:2:info] Scanned contents of 46 additional files at 0.57 per second
    [Sep 07 08:02:52:1410105772.347049:2:info] Scanned contents of 43 additional files at 0.55 per second
    [Sep 07 08:02:51:1410105771.177040:2:info] Scanned contents of 40 additional files at 0.52 per second
    [Sep 07 08:02:50:1410105770.124783:2:info] Scanned contents of 37 additional files at 0.48 per second
    [Sep 07 08:02:49:1410105769.081826:2:info] Scanned contents of 33 additional files at 0.44 per second
    [Sep 07 08:02:38:1410105758.142178:2:info] Scanned contents of 32 additional files at 0.50 per second
    [Sep 07 08:02:28:1410105748.923107:2:info] Scanned contents of 31 additional files at 0.56 per second
    [Sep 07 08:02:18:1410105738.573070:2:info] Scanned contents of 30 additional files at 0.67 per second
    [Sep 07 08:02:14:1410105734.255579:2:info] Scanned contents of 29 additional files at 0.72 per second
    [Sep 07 08:02:09:1410105729.072676:2:info] Scanned contents of 28 additional files at 0.79 per second
    [Sep 07 08:02:00:1410105720.823986:2:info] Scanned contents of 27 additional files at 1.00 per second
    [Sep 07 08:01:53:1410105713.875674:2:info] Scanned contents of 26 additional files at 1.29 per second
    [Sep 07 08:01:49:1410105709.159691:2:info] Scanned contents of 25 additional files at 1.62 per second
    [Sep 07 08:01:40:1410105700.970141:2:info] Scanned contents of 24 additional files at 3.30 per second
    [Sep 07 08:01:34:1410105694.969761:2:info] Scanned contents of 15 additional files at 11.82 per second
    [Sep 07 08:01:33:1410105693.700081:2:info] Starting scan of file contents
    [Sep 07 08:01:33:1410105693.289805:2:info] Analyzed 9251 files containing 130.96 MB of data.

    https://wordpress.org/plugins/wordfence/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter brandsteve

    (@brandsteve)

    I take back the claim that it was configured the same as the others.

    These 2 were checked.

    Scan files outside your WordPress installation
    Scan image files as if they were executable

    That said, Wordfence should still work even if they are checked. I’ve left them unchecked for now.

    Why would Wordfence struggle mightily if these are checked?

    I think thats a php.ini setting error you are seeing, not a Wordfence setting. I have mine set for 256mb in the Wordfence settings on my commercial sites and have yet to have a problem. I think my php.ini is set at 128mb. Its usually /etc/php.ini on a Linux server.

    Let us know if this does not help.

    tim

    Thread Starter brandsteve

    (@brandsteve)

    I will check to see if my host allows such things. I doubt it.

    I tried both settings individually. It’s the check images as executable that blows it up. Is there a more efficient way to make these checks? If not, perhaps you should add a clear warning to the options menu?

    Thats a good suggestion regardless. If you have a good amount of images in high resolutions, it could slow things down considerably.

    This page has some suggestions if you don’t have access to change it in php.ini

    http://docs.woothemes.com/document/increasing-the-wordpress-memory-limit/

    tim

    Did that help Steve?

    tim

    Thread Starter brandsteve

    (@brandsteve)

    Been watching football today. I do have some unnecessarily large image files. I will start with them.

    No problem. I used to watch football more, but last time I did, the Titans totally blew their chance at another superbowl and I stopped. I was getting a wee bit passionate about it. πŸ™‚

    Let me know how it goes.

    tim

    Steve

    I think I might have missed the trees for the forest. The execution time is also set in the php.ini and is a separate entry.

    Look for max_execution_time = 30 and change the value to 60.

    The reason I remembered was when I had to import a huge bunch of posts into WP one time and the importer kept dying. I increased the memory and the execution time.

    tim

    Thread Starter brandsteve

    (@brandsteve)

    Adding that setting to .php/5.3/phprc (dreamhost VPS) fixed the problem on one blog. I will repeat the process with the others.

    Any help, Steve?

    tim

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal error: Maximum execution time of 30 seconds exceeded’ is closed to new replies.