Title: Database write error while scanning files
Last modified: August 6, 2026

---

# Database write error while scanning files

 *  Resolved [culladmin](https://wordpress.org/support/users/culladmin/)
 * (@culladmin)
 * [1 day, 9 hours ago](https://wordpress.org/support/topic/database-write-error-while-scanning-files/)
 * We’re investigating an intermittent issue on a WordPress site where users occasionally
   receive the message **“There has been a critical error on this website.”** Refreshing
   the page typically resolves the issue.
 * To troubleshoot, I enabled WordPress debugging, updated **Security by CleanTalk
   from v2.184 to v2.185**, and ran a manual malware scan.
 * During the scan, the attached `debug.log` repeatedly recorded the following fatal
   error originating from the Security by CleanTalk plugin:
 *     ```wp-block-code
       PHP Fatal error: Uncaught Error:
       Class "CleantalkSP\SpbctWP\Scanner\Surface" not found
       ```
   
 * The stack trace references:
 *     ```wp-block-code
       wp-content/plugins/security-malware-firewall/lib/CleantalkSP/SpbctWP/Scanner/ScannerQueue.php
       ```
   
 * In addition, the Malware Scanner reports:
 * **“Database write error while scanning files.”**
 * Could you please help determine:
    1. Whether the fatal error and the database write error are related.
    2. Whether either could be responsible for the intermittent WordPress critical 
       errors we’re seeing.
    3. Whether this is a known issue and, if so, whether there’s a fix or anything 
       you’d recommend we do to resolve it.
 * I can provide screenshots and debug log.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-write-error-while-scanning-files%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [denisxam](https://wordpress.org/support/users/denisxam/)
 * (@denisxam)
 * [1 day, 8 hours ago](https://wordpress.org/support/topic/database-write-error-while-scanning-files/#post-18986185)
 * Hello,
   Thank you for your request.
 * For more details and debug.log, please contact us via our private ticket system:
 * [https://cleantalk.org/my/support/open](https://cleantalk.org/my/support/open)
 *  Thread Starter [culladmin](https://wordpress.org/support/users/culladmin/)
 * (@culladmin)
 * [1 day, 8 hours ago](https://wordpress.org/support/topic/database-write-error-while-scanning-files/#post-18986193)
 * Moved to a Cleantalk Support Ticket.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-write-error-while-scanning-files%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/security-malware-firewall/assets/icon-256x256.gif?rev=3518712)
 * [Security Plugin, Firewall & Malware Scanner with Auto Removal](https://wordpress.org/plugins/security-malware-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/security-malware-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/security-malware-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/security-malware-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/security-malware-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/security-malware-firewall/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [culladmin](https://wordpress.org/support/users/culladmin/)
 * Last activity: [1 day, 8 hours ago](https://wordpress.org/support/topic/database-write-error-while-scanning-files/#post-18986193)
 * Status: resolved