I am currently facing some problems when trying to run the Defender scan on my site. The scan always stucks. Here's the abstract from the debug log:
PHP Fatal error: Uncaught Error: Cannot unset string offsets in [path to installation]/wp-content/plugins/wp-defender/app/module/scan/behavior/pro/content-scan.php:86
#0 [path to installation]/wp-content/plugins/wp-defender/app/module/scan/behavior/pro/content-scan.php(47): WP_Defender\Module\Scan\Behavior\Pro\Content_Scan->scanAFile('/home/www/web14...':wink:
#1 [internal function]: WP_Defender\Module\Scan\Behavior\Pro\Content_Scan->processItemInternal(Array, '/home/www/web14...':wink:
#2 [path to installation]/wp-content/plugins/wp-defender/vendor/hammer/base/component.php(217): ReflectionMethod->invokeArgs(Object(WP_Defender\Module\Scan\Behavior\Pro\Content_Scan), Array)
#3 [path to installation]/wp-content/plugins/wp-defender/vendor/hammer/queue/queue.php(184): Hammer\Base\Component->__call('processItemInte...', Array)
#4 [path to installation]/wp-content/plugins/wp-defender/app/module/scan/component/scan-api.php(251): Hammer\Queue\Queue->processItem in [path to installation]/wp-content/plugins/wp-defender/app/module/scan/behavior/pro/content-scan.php on line 86
When I try to run the scan via the WPMUDEV Hub I receive the following error:
We got an unexpected response from your website: "500 Internal Server Error"
Do you have any advice on how to fix this?
- PHP 7.1 is running
- I already deleted Defender and reinstalled it.
- There is another site running in a different directory on this server and the Defender scan is working properly there.
- the scan always stucks while analyzing the WordPress content.
Thank you in advance for your help.