Skip to content
Advertisement

core file deleted in woocommerce / wordpress

I have noticed that the file “wp-admin/includes/ajax-actions.php” is deleted automatically in production. Even if I upload this file via ftp, it gets deleted after some time ( ~5min ).

I cannot reproduce this behaviour in the local environment.Do you know any way to discover who deletes this file?

WordPress: 5.6
Woocommerce: 4.8
Production environment is hosted in plesk 18.0.30

Advertisement

Answer

Exact same issue here. Took me a while to figure it out. The file is constantly being deleted. It causes a whole mess on the admin panel (images not loading, themes or plugins cannot be installed, theme settings cannot be modified, etc.). I discovered it’s some kind of a scheduled job on the server that deletes all instances of the file (even if you backed it up on another folder) and it is not related with WP Toolkit security optimizations. Ι’ve already sent a message on my hosting provider and will post an answer once it is resolved.

EDIT: Turns out it was a misconfigured antivirus that was deleting the file from all installations. It was an isolated insident that was solved.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement