Hi @alainmelsens
I hope you’re well today!
That other localhost environment that you are duplicating site to – is is set/configured the same way as the one where the site doesn’t work or are there some differences? If yes, what are they?
Apart of that:
– make sure that no “host level” cache is enabled during malware scan; usually it’s not an issue but it’s worth checking.
– check Malware scan settings on “Defender -> Malware Scanning -> Settings” page and try lowering value of “Max included file size” there and running scan again after that
– also, are there any errors during the scan showing up in browser console?
Best regards,
Adam
Hi Adam,
Indeed, the copied website is a totally identical version of the original one.
I have not changed anything. It also works on a similar Windows IIS platform. The original why the scan does not work, however, is a Windows Server with IIS web server and the local one is a Windows 10 Professional also with IIS web server with the same settings.
No cache plugins or similar cache settings are used.
On another website, but a smaller one, also on the same Windows IIS server, the malware scan works without any problems.
However, I cannot adjust those settings of malware scan where it gives problems, because I only get a window with the texts:
“Scan your website for file changes, vulnerabilities and injected code and get notified about anything suspicious. Defender will keep an eye on your code without you having to worry. RUN SCAN”
And can you suggest me how I can see errors during scan in the browser console?
I have tried in Google Chrome with the tools for developers, but I can’t see any errors in that console window.
Any other suggestions?
Best regards,
Alain
-
This reply was modified 4 years, 1 month ago by
alainmelsens.
Hello @alainmelsens ,
And can you suggest me how I can see errors during scan in the browser console?
I have tried in Google Chrome with the tools for developers, but I can’t see any errors in that console window.
If there are any errors they should show in the Chrome console. If they are not showing can you try enabling debug mode and see if that will produce any errors at all?
See here how to do that https://ww.wp.xz.cn/support/article/debugging-in-wordpress/
kind regards,
Kasia
Hi Kasia,
Ok, thanks for the info.
I was able to create a debug.log file in the meantime during a Malware scan that crashed.
To which email address can I send this? Or how can I deliver it to you?
Thanks in advance.
Kind regards,
Alain
Hi @alainmelsens
Please use this form https://wpmudev.com/contact/#i-have-a-different-question and make sure that subject is “I have a different question” and:
– Mark to my attention: ATTN: Kris
– Link back to this thread
so that we will follow up there to check this issue for you.
Kind Regards,
Kris
Hi Kris,
Thanks.
Message was send via the form.
I look forward to get feedback from you.
Thank you in advance.
Kind regards,
Alain
Hi,
As mentioned at the beginning, I use WordPress for websites on Windows web servers. After a long search on the Internet, it became clear that there are sometimes problems with the WordPress built-in Cron Jobs handling on Windows OS. Defender Malware Scan does indeed use the Cron Job routine.
On Windows web servers this Cron Job system can be started via the well known Windows scheduled tasks. It is rather complicated to explain all this here how to set this up.
I found a fitting Youtube video in which everything is clearly explained. Before it worked properly for me, I set the Windows task as a scheduled neutral task and not as in the video as a scheduled task after logging in. See the Youtube video at:
Setting up WordPress Cron as a Windows Scheduled Task
Of course, the following instruction “define(‘DISABLE_WP_CRON’, true);” should also be placed in the wp-config.php file. This will disable the default WordPress Cron Job routine. This is now taken over by the Windows OS.
Now everything works perfectly as it should.
A special thank to the Defender support team, but…
I searched more for a specific Windows cause and found this working alternative solution.
Kind Regards.
Alain