• I’m getting this error:

    Scan Failed

    The scan has failed because we received an unexpected response from the Wordfence servers. This may be a temporary error, though some sites may need adjustments to run scans reliably. Click here for steps you can try.

    The error returned was:

    We received a data structure that is not the expected array when contacting the Wordfence scanning servers and calling the ‘get_patterns’ function.

    Any ideas?
    Thanks in Advance!
    -T

    • This topic was modified 4 years, 6 months ago by tbgsav. Reason: fixing layout
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @tbgsav,

    I think this is caused by your PHP version being outdated, or that the JSON module is not available.

    Can you check these two pieces of information for me?

    1. Go to Wordfence -> Tools -> Diagnostics
    2. Under Other Test -> Click to view your system’s configuration in a new window
    3. Search for json support in the window that popped up from 2.

    Let me know your PHP version (For example: https://i.imgur.com/RaOMlNj.png )

    And if JSON is enabled or not (For example: https://i.imgur.com/hUZ6A2o.png )

    Dave

    Thread Starter tbgsav

    (@tbgsav)

    Wordfence reports my PHP version is: 7.0.31

    I do not have a JSON category…
    I looked at the error log and seems like it’s been getting this error for a few weeks only on the longer scheduled scans. The quick scan completes without issue.

    This is a VPS running CentOS. I recently ran a ‘yum update’ (not upgrade).

    [Oct 02 02:13:42:1569996822.208925:1:info] Contacting Wordfence to initiate scan
    [Oct 01 23:41:01:1569987661.396565:1:info] Scan stop request received.
    [Oct 01 17:11:54:1569964314.455120:2:error] Scan terminated with error: We received a data structure that is not the expected array when contacting the Wordfence scanning servers and calling the 'get_patterns' function.
    [Oct 01 17:11:54:1569964314.454466:2:info] Wordfence used 26 MB of memory for scan. Server peak memory usage was: 28 MB
    [Oct 01 17:11:53:1569964313.077005:2:info] Analyzed 7306 files containing 181.65 MB of data.
    [Oct 01 17:11:53:1569964313.058068:2:info] Analyzed 7300 files containing 181.54 MB of data so far
    [Oct 01 17:11:52:1569964312.741981:2:info] Analyzed 7200 files containing 179.83 MB of data so far
    [Oct 01 17:11:52:1569964312.397951:2:info] Analyzed 7100 files containing 178.28 MB of data so far
    [Oct 01 17:11:52:1569964312.006543:2:info] Analyzed 7000 files containing 174.51 MB of data so far
    [Oct 01 17:11:51:1569964311.661457:2:info] Analyzed 6900 files containing 172.14 MB of data so far
    [Oct 01 17:11:51:1569964311.274645:2:info] Analyzed 6800 files containing 169.18 MB of data so far
    [Oct 01 17:11:50:1569964310.723403:2:info] Analyzed 6700 files containing 159.45 MB of data so far
    [Oct 01 17:11:50:1569964310.254535:2:info] Analyzed 6600 files containing 158.22 MB of data so far
    [Oct 01 17:11:49:1569964309.877993:2:info] Analyzed 6500 files containing 156.73 MB of data so far
    [Oct 01 17:11:48:1569964308.888595:2:info] Analyzed 6400 files containing 154.29 MB of data so far
    [Oct 01 17:11:48:1569964308.561183:2:info] Analyzed 6300 files containing 152.67 MB of data so far
    [Oct 01 17:11:48:1569964308.227459:2:info] Analyzed 6200 files containing 149.35 MB of data so far
    [Oct 01 17:11:47:1569964307.797572:2:info] Analyzed 6100 files containing 148.96 MB of data so far
    [Oct 01 17:11:47:1569964307.353359:2:info] Analyzed 6000 files containing 147.06 MB of data so far
    [Oct 01 17:11:46:1569964306.829202:2:info] Analyzed 5900 files containing 134.52 MB of data so far
    [Oct 01 17:11:46:1569964306.431623:2:info] Analyzed 5800 files containing 128.74 MB of data so far
    [Oct 01 17:11:46:1569964306.046435:2:info] Analyzed 5700 files containing 128.68 MB of data so far
    [Oct 01 17:11:45:1569964305.654401:2:info] Analyzed 5600 files containing 128.62 MB of data so far
    [Oct 01 17:11:45:1569964305.312271:2:info] Analyzed 5500 files containing 128.32 MB of data so far
    [Oct 01 17:11:44:1569964304.920387:2:info] Analyzed 5400 files containing 127.5 MB of data so far
    [Oct 01 17:11:44:1569964304.532355:2:info] Analyzed 5300 files containing 126.34 MB of data so far
    [Oct 01 17:11:44:1569964304.153463:2:info] Analyzed 5200 files containing 125.56 MB of data so far
    [Oct 01 17:11:43:1569964303.749145:2:info] Analyzed 5100 files containing 124.52 MB of data so far
    [Oct 01 17:11:43:1569964303.397544:2:info] Analyzed 5000 files containing 122.87 MB of data so far
    [Oct 01 17:11:42:1569964302.943137:2:info] Analyzed 4900 files containing 117.66 MB of data so far
    [Oct 01 17:11:42:1569964302.559031:2:info] Analyzed 4800 files containing 115.83 MB of data so far
    [Oct 01 17:11:42:1569964302.217133:2:info] Analyzed 4700 files containing 114.78 MB of data so far
    [Oct 01 17:11:41:1569964301.828505:2:info] Analyzed 4600 files containing 113.92 MB of data so far
    [Oct 01 17:11:41:1569964301.466430:2:info] Analyzed 4500 files containing 113 MB of data so far
    [Oct 01 17:11:41:1569964301.090746:2:info] Analyzed 4400 files containing 110.79 MB of data so far
    [Oct 01 17:11:40:1569964300.729295:2:info] Analyzed 4300 files containing 108.57 MB of data so far
    [Oct 01 17:11:40:1569964300.432331:2:info] Analyzed 4200 files containing 108.53 MB of data so far
    [Oct 01 17:11:40:1569964300.131514:2:info] Analyzed 4100 files containing 108.5 MB of data so far
    [Oct 01 17:11:39:1569964299.848692:2:info] Analyzed 4000 files containing 108.47 MB of data so far
    [Oct 01 17:11:39:1569964299.572873:2:info] Analyzed 3900 files containing 108.44 MB of data so far
    [Oct 01 17:11:39:1569964299.293345:2:info] Analyzed 3800 files containing 108.42 MB of data so far
    [Oct 01 17:11:38:1569964298.994668:2:info] Analyzed 3700 files containing 108.39 MB of data so far
    [Oct 01 17:11:38:1569964298.689075:2:info] Analyzed 3600 files containing 107.95 MB of data so far
    [Oct 01 17:11:38:1569964298.274421:2:info] Analyzed 3500 files containing 107.23 MB of data so far
    [Oct 01 17:11:37:1569964297.928887:2:info] Analyzed 3400 files containing 106.53 MB of data so far
    [Oct 01 17:11:37:1569964297.523082:2:info] Analyzed 3300 files containing 105.93 MB of data so far
    [Oct 01 17:11:37:1569964297.196818:2:info] Analyzed 3200 files containing 105.9 MB of data so far
    [Oct 01 17:11:36:1569964296.861613:2:info] Analyzed 3100 files containing 105.87 MB of data so far
    [Oct 01 17:11:36:1569964296.438243:2:info] Analyzed 3000 files containing 104.2 MB of data so far
    [Oct 01 17:11:36:1569964296.008469:2:info] Analyzed 2900 files containing 102.83 MB of data so far
    [Oct 01 17:11:35:1569964295.663696:2:info] Analyzed 2800 files containing 100.18 MB of data so far
    [Oct 01 17:11:35:1569964295.267331:2:info] Analyzed 2700 files containing 98.59 MB of data so far
    [Oct 01 17:11:34:1569964294.892452:2:info] Analyzed 2600 files containing 97.08 MB of data so far
    [Oct 01 17:11:34:1569964294.558673:2:info] Analyzed 2500 files containing 96.24 MB of data so far
    [Oct 01 17:11:34:1569964294.021886:2:info] Analyzed 2400 files containing 94.23 MB of data so far
    [Oct 01 17:11:32:1569964292.999275:2:info] Analyzed 2300 files containing 92.79 MB of data so far
    [Oct 01 17:11:32:1569964292.577431:2:info] Analyzed 2200 files containing 92.27 MB of data so far
    [Oct 01 17:11:32:1569964292.104530:2:info] Analyzed 2100 files containing 90.11 MB of data so far
    [Oct 01 17:11:31:1569964291.530124:2:info] Analyzed 2000 files containing 88.97 MB of data so far
    [Oct 01 17:11:31:1569964291.096881:2:info] Analyzed 1900 files containing 87.74 MB of data so far
    [Oct 01 17:11:30:1569964290.609332:2:info] Analyzed 1800 files containing 85.17 MB of data so far
    [Oct 01 17:11:30:1569964290.164426:2:info] Analyzed 1700 files containing 79.6 MB of data so far
    [Oct 01 17:11:29:1569964289.646451:2:info] Analyzed 1600 files containing 72.93 MB of data so far
    [Oct 01 17:11:29:1569964289.198154:2:info] Analyzed 1500 files containing 66.31 MB of data so far
    [Oct 01 17:11:28:1569964288.793150:2:info] Analyzed 1400 files containing 59.59 MB of data so far
    [Oct 01 17:11:28:1569964288.382191:2:info] Analyzed 1300 files containing 52.88 MB of data so far
    [Oct 01 17:11:27:1569964287.981224:2:info] Analyzed 1200 files containing 46.4 MB of data so far
    [Oct 01 17:11:27:1569964287.443073:2:info] Analyzed 1100 files containing 39.84 MB of data so far
    [Oct 01 17:11:26:1569964286.964729:2:info] Analyzed 1000 files containing 33.81 MB of data so far
    [Oct 01 17:11:26:1569964286.515975:2:info] Analyzed 900 files containing 28.01 MB of data so far
    [Oct 01 17:11:26:1569964286.100958:2:info] Analyzed 800 files containing 22.19 MB of data so far
    [Oct 01 17:11:25:1569964285.629559:2:info] Analyzed 700 files containing 16.38 MB of data so far
    [Oct 01 17:11:25:1569964285.187700:2:info] Analyzed 600 files containing 10.56 MB of data so far
    [Oct 01 17:11:24:1569964284.823882:2:info] Analyzed 500 files containing 6.94 MB of data so far
    [Oct 01 17:11:24:1569964284.508548:2:info] Analyzed 400 files containing 6.21 MB of data so far
    [Oct 01 17:11:24:1569964284.169987:2:info] Analyzed 300 files containing 3.7 MB of data so far
    [Oct 01 17:11:23:1569964283.855352:2:info] Analyzed 200 files containing 2.44 MB of data so far
    [Oct 01 17:11:23:1569964283.532626:2:info] Analyzed 100 files containing 1.36 MB of data so far
    [Oct 01 17:11:23:1569964283.195387:2:info] 7306 files indexed
    [Oct 01 17:11:23:1569964283.191590:2:info] 7226 files indexed
    [Oct 01 17:11:23:1569964283.176910:2:info] 6726 files indexed
    [Oct 01 17:10:45:1569964245.003678:2:info] 6226 files indexed
    [Oct 01 17:10:30:1569964230.737959:2:info] 6000 files indexed
    [Oct 01 17:10:30:1569964230.719241:2:info] 5500 files indexed
    [Oct 01 17:10:30:1569964230.650249:2:info] 5000 files indexed
    [Oct 01 17:10:30:1569964230.632441:2:info] 4500 files indexed
    [Oct 01 17:10:30:1569964230.527783:2:info] 4000 files indexed
    [Oct 01 17:10:30:1569964230.388071:2:info] 3500 files indexed
    [Oct 01 17:10:30:1569964230.254720:2:info] 3000 files indexed
    [Oct 01 17:10:30:1569964230.089283:2:info] 2500 files indexed
    [Oct 01 17:10:29:1569964229.819018:2:info] 2000 files indexed
    [Oct 01 17:10:29:1569964229.604727:2:info] 1500 files indexed
    [Oct 01 17:10:29:1569964229.389862:2:info] 1000 files indexed
    [Oct 01 17:10:29:1569964229.237455:2:info] 500 files indexed
    [Oct 01 17:10:13:1569964213.090612:2:info] Found 2 themes
    [Oct 01 17:10:13:1569964213.085186:2:info] Getting theme list from WordPress
    [Oct 01 17:10:13:1569964213.084397:2:info] Found 22 plugins
    [Oct 01 17:10:13:1569964213.067062:2:info] Getting plugin list from WordPress
    [Oct 01 17:10:13:1569964213.039317:2:info] The disk has 51956.13 MB available
    [Oct 01 17:10:13:1569964213.038597:2:info] Total disk space: 59.05 GB -- Free disk space: 50.74 GB
    [Oct 01 17:10:13:1569964213.025800:2:info] Scanning DNS MX record for *.com
    [Oct 01 17:10:13:1569964213.010344:2:info] Scanning DNS A record for *.com
    [Oct 01 17:10:12:1569964212.992673:2:info] Starting DNS scan for *.com
    [Oct 01 17:10:09:1569964209.426192:1:info] Contacting Wordfence to initiate scan
    [Oct 01 17:10:09:1569964209.049426:1:info] Scheduled Wordfence scan starting at Tuesday 1st of October 2019 05:10:09 PM
    [Oct 01 12:12:58:1569946378.592916:1:info] Quick Scan Complete. Scanned in less than 1 second.
    [Oct 01 12:12:58:1569946378.592064:2:info] Wordfence used 0 B of memory for scan. Server peak memory usage was: 2 MB
    [Oct 01 12:12:58:1569946378.589818:1:info] -------------------
    [Oct 01 12:12:58:1569946378.551982:1:info] Initiating quick scan
    [Sep 30 12:12:50:1569859970.124705:1:info] Quick Scan Complete. Scanned in less than 1 second.
    [Sep 30 12:12:50:1569859970.123988:2:info] Wordfence used 0 B of memory for scan. Server peak memory usage was: 2 MB
    [Sep 30 12:12:50:1569859970.122056:1:info] -------------------
    [Sep 30 12:12:50:1569859970.083057:1:info] Initiating quick scan
    [Sep 29 12:14:17:1569773657.946392:1:info] Quick Scan Complete. Scanned in less than 1 second.
    [Sep 29 12:14:17:1569773657.945385:2:info] Wordfence used 0 B of memory for scan. Server peak memory usage was: 2 MB
    [Sep 29 12:14:17:1569773657.943185:1:info] -------------------
    [Sep 29 12:14:17:1569773657.899621:1:info] Initiating quick scan
    • This reply was modified 4 years, 6 months ago by tbgsav.
    • This reply was modified 4 years, 6 months ago by tbgsav.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Scan Failed – data structure not expected – ‘get_patterns’ function’ is closed to new replies.