Title: Undefined array key &#8220;flush-files&#8221;
Last modified: September 25, 2025

---

# Undefined array key “flush-files”

 *  [joncon62](https://wordpress.org/support/users/joncon62/)
 * (@joncon62)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/undefined-array-key-flush-files/)
 * I am getting a lot of the following PHP warnings in the error log
 *     ```wp-block-code
       PHP Warning:  Undefined array key "flush-files" in .../wp-content/plugins/better-wp-security/core/lib/class-itsec-scheduler-cron.php on line 54
       ```
   
 * I am using the latest 9.4.1 code. Can this be fixed in the next release?

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

 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [8 months ago](https://wordpress.org/support/topic/undefined-array-key-flush-files/#post-18667336)
 * Hello,
 * Glad you reached out!
 * We normally see this PHP warning when Solid Security’s Scheduler configuration
   on the site got corrupted. 
 * Kindly try to reset the Scheduler tool by enabling [Solid Security’s Debug](https://solidwp.com/documentation/security/how-it-works/all-about-solid-securitys-debug-mode/)
   mode, navigating to _Security > Debug_, and clicking the `ITSEC_Scheduler_Cron`“
   Reset” button.
 * Let us know how it goes.
 *  Thread Starter [joncon62](https://wordpress.org/support/users/joncon62/)
 * (@joncon62)
 * [8 months ago](https://wordpress.org/support/topic/undefined-array-key-flush-files/#post-18668108)
 * Ah thanks, yes that has cleared out most of my errors. I still see the occasional
   following error.
 *     ```wp-block-code
       PHP Warning:  Undefined array key "malware-scan" in .../wp-content/plugins/better-wp-security/core/lib/class-itsec-scheduler-cron.php on line 54PHP Warning:  Trying to access array offset on value of type null in .../public_html/wp-content/plugins/better-wp-security/core/lib/class-itsec-scheduler-cron.php on line 54
       ```
   

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

The topic ‘Undefined array key “flush-files”’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 2 replies
 * 4 participants
 * Last reply from: [joncon62](https://wordpress.org/support/users/joncon62/)
 * Last activity: [8 months ago](https://wordpress.org/support/topic/undefined-array-key-flush-files/#post-18668108)
 * Status: not resolved