Title: PHP Fatal Error
Last modified: March 31, 2023

---

# PHP Fatal Error

 *  Resolved [nicmare](https://wordpress.org/support/users/nicmare/)
 * (@nicmare)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-352/)
 * My debug.log gets flooded with these errors:
 *     ```wp-block-code
       PHP Fatal error:
   
       Uncaught Exception: DateTime::__construct(): Failed to parse time string ( seconds ago) at position 0 (s): The timezone could not be found in the database in /Volumes/eSSD/_htdocs/Project2023/wp-content/plugins/action-scheduler/functions.php:421Stack trace:
   
       0 /Volumes/eSSD/_htdocs/Project2023/wp-content/plugins/action-scheduler/functions.php(421): DateTime->__construct(' seconds ago', Object(DateTimeZone))
   
       1 /Volumes/eSSD/_htdocs/Project2023/wp-content/plugins/action-scheduler/classes/ActionScheduler_QueueCleaner.php(34): as_get_datetime_object(' seconds ago')
   
       2 /Volumes/eSSD/_htdocs/Project2023/wp-content/plugins/action-scheduler/classes/ActionScheduler_QueueCleaner.php(139): ActionScheduler_QueueCleaner->delete_old_actions()
   
       3 /Volumes/eSSD/_htdocs/Project2023/wp-content/plugins/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(160): ActionScheduler_QueueCleaner->clean(300)
   
       4 /Volumes/eSSD/_htdocs/Project2023/wp-content/plugins/action-scheduler/classes/ActionScheduler_QueueRunner.php(130): ActionScheduler_Abstract_QueueRunner->run_cleanup()
   
       5 /Volumes/eSSD/_htdocs/Project2023/wp-includes/class-wp-hook.php(308): ActionScheduler_QueueRunner->run('WP Cron')
   
       6 /Volumes/eSSD/_htdocs/Project2023/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
   
       7 /Volumes/eSSD/_htdocs/Project2023/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
   
       8 /Volumes/eSSD/_htdocs/Project2023/wp-cron.php(188): do_action_ref_array('action_schedule…', Array)
   
       9 /Users/nicb/.composer/vendor/laravel/valet/server.php(250): require('/Volumes/eSSD/_…')
   
       10 {main}
   
       thrown in /Volumes/eSSD/_htdocs/Project2023/wp-content/plugins/action-scheduler/functions.php on line 421[31-Mar-2023 07:35:58 UTC] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string ( seconds ago) at position 0 (s): The timezone could not be found in the database in /Volumes/eSSD/_htdocs/Project2023/wp-content/plugins/action-scheduler/functions.php:421
       ```
   
 * I am running PHP 8.0.27 with WP 6.2 on a Valet local machine.

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

 *  Thread Starter [nicmare](https://wordpress.org/support/users/nicmare/)
 * (@nicmare)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-352/#post-16613215)
 * i disabled addtional plugins like “rank math” and “cleanup action scheduler” 
   and errors are gone.
 *  Plugin Contributor [Barry](https://wordpress.org/support/users/barryhughes-1/)
 * (@barryhughes-1)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-352/#post-16614933)
 * Hi [@nicmare](https://wordpress.org/support/users/nicmare/),
 * This sounds like the same problem [reported over here](https://github.com/woocommerce/action-scheduler/issues/917).
   It’s definitely possible that the origin of the problem lies in one of those 
   other plugins, but we have also done some work on our side [to try and protect against this kind of problem](https://github.com/woocommerce/action-scheduler/pull/923)
   in the future.
 * It hasn’t been released just yet, but ought to be available in the very next 
   version of Action Scheduler.

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

The topic ‘PHP Fatal Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/action-scheduler.svg)
 * [Action Scheduler](https://wordpress.org/plugins/action-scheduler/)
 * [Support Threads](https://wordpress.org/support/plugin/action-scheduler/)
 * [Active Topics](https://wordpress.org/support/plugin/action-scheduler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/action-scheduler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/action-scheduler/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Barry](https://wordpress.org/support/users/barryhughes-1/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-352/#post-16614933)
 * Status: resolved