• Resolved dlmweb

    (@dlmweb)


    Hello WordFence,

    My client is receiving these errors in the scan:
    [Sep 30 22:19:53:1538360393.288429:1:error] Undefined index: version (8) File: /home/xxxx/public_html/wp-content/plugins/wordfence/lib/wfScanEngine.php Line: 1678
    [Sep 30 22:19:53:1538360393.287841:1:error] Undefined index: version (8) File: /home/xxxx/public_html/wp-content/plugins/wordfence/lib/wfScanEngine.php Line: 1658

    I have reviewed the other threads discussing this error –
    https://ww.wp.xz.cn/support/topic/scan-cant-continue-stored-data-not-found-after-a-fork-3/#post-10364878

    However, I wasn’t able to apply the solution because the server is running PHP 5.6 and DB version 5.5.59-MariaDB-cll-lve

    PHP 5.6 does not appear to have mysqlnd, nd_mysqli and nd_pdo_mysql
    Perhaps that is the issue?

    What else can I do to troubleshoot?
    Thank you.

    Is that the problem?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @dlmweb!

    Is this actually preventing the scan from completing or are you just seeing the errors in the scan log, but the scan completes?

    I think it looks like the issue could be that you have a plugin installed that doesn’t have a plugin version defined properly. But I wouldn’t have expected this to stop your scan.

    Thread Starter dlmweb

    (@dlmweb)

    I believe the scan does complete. Below is a snippet of the log which shows a Quick Scan Complete and a Scan Complete:

    
    [Oct 01 20:27:13:1538440033.212275:1:info] Quick Scan Complete. Scanned in less than 1 second.
    [Oct 01 20:27:13:1538440033.211871:2:info] Wordfence used 256 KB of memory for scan. Server peak memory usage was: 15 MB
    [Oct 01 20:27:13:1538440033.210694:1:info] -------------------
    [Oct 01 20:27:13:1538440033.102741:1:info] Initiating quick scan
    [Oct 01 06:16:31:1538388991.747557:1:error] <br /> <b>Notice</b>: Undefined index: version in <b>/home/xxxx/public_html/wp-content/plugins/wordfence/lib/wfScanEngine.php</b> on line <b>1658</b><br /> <br /> <b>Notice</b>: Undefined index: version in <b>/home/xxxx/public_html/wp-content/plugins/wordfence/lib/wfScanEngine.php</b> on line <b>1678</b><br /> 0
    [Oct 01 06:16:31:1538388991.403220:1:info] Scan Complete. Scanned 5109 files, 17 plugins, 3 themes, 43 posts, 0 comments and 1102 URLs in 3 minutes 47 seconds.
    [Oct 01 06:16:31:1538388991.402783:2:info] Wordfence used 36.75 MB of memory for scan. Server peak memory usage was: 51.5 MB
    [Oct 01 06:16:31:1538388991.401984:1:info] -------------------
    [Oct 01 06:16:31:1538388991.394351:2:info] Done examining URLs
    [Oct 01 06:16:31:1538388991.393650:2:info] Examining URLs found in the options we scanned for dangerous websites
    [Oct 01 06:16:31:1538388991.357626:1:error] Undefined index: version (8) File: /home/xxxx/public_html/wp-content/plugins/wordfence/lib/wfScanEngine.php Line: 1678
    [Oct 01 06:16:31:1538388991.357007:1:error] Undefined index: version (8) File: /home/xxxx/public_html/wp-content/plugins/wordfence/lib/wfScanEngine.php Line: 1658
    [Oct 01 06:16:26:1538388986.123911:2:info] Starting password strength check on 5 users.
    [Oct 01 06:16:26:1538388986.092893:2:info] Done examining URLs
    [Oct 01 06:16:26:1538388986.091917:2:info] Done host key check.
    [Oct 01 06:16:25:1538388985.758054:2:info] Checking 182 host keys against Wordfence scanning servers.
    

    I’ve looked at the plugins and all are ones that I use on dozens of other client sites without issue…. Gravity Forms, TablePress, Genesis plugins, etc. so I wouldn’t expect those to throw an error, but perhaps tonight I can deactivate them all and try the scan again.

    Given that the scan completes, can I safely ignore the errors?
    Thank you.

    Hi again @dlmweb,

    I checked the code corresponding to this warning message and it looks like it’s part of the test that checks for vulnerable plugins and the “version” data is coming from the ww.wp.xz.cn repository there. That would mean you have a plugin with a particular slug and when we try to fetch information about that plugin from ww.wp.xz.cn we receive a reply that doesn’t contain a version for some reason.

    I do think disabling plugins is the easiest way to find out which one is causing it. I’d disable all of them first, if the error is then gone, enable half of them. If the error is still gone, you now know it’s coming from one in the other half (that you haven’t activated yet).

    If you figure out which one it is feel free to share if you want as it may help others who stumble on this thread in the future.

    But yes, you can also choose to ignore it if you prefer. It basically means we’re failing to check the status of one plugin because we’re not able to get a version for it.

    Hi @dlmweb,

    We haven’t heard back from you in a while. I’ve gone ahead and marked this thread as resolved. Please feel free to open another thread if you’re still having issues with Wordfence.

    Thanks!

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

The topic ‘Undefined-index in wfScanEngine.php’ is closed to new replies.