Title: crontab &#8211; PHP Fatal error
Last modified: August 30, 2016

---

# crontab – PHP Fatal error

 *  Resolved [nuyensgert](https://wordpress.org/support/users/nuyensgert/)
 * (@nuyensgert)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/crontab-php-fatal-error/)
 * Plugin version 3.0.10.
 * I disabled the WordPress default wp-cron behaviour in wp-config.php:
    define(‘
   DISABLE_WP_CRON’, true);
 * I have the following crontab setup (running every 30 min):
    */30 * * * * cd /
   var/www/bethhagaphen.info/htdocs; php /var/www/bethhagaphen.info/htdocs/wp-cron.
   php
 * Everyday at 18u30 I get the following error mailed to me:
    PHP Fatal error: Call
   to undefined function SimpleCalendar\simcal_delete_feed_transients() in /var/
   www/bethhagaphen.info/htdocs/wp-content/plugins/google-calendar-events/includes/
   post-types.php on line 316
 * Can you take a look at it?
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

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

 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/crontab-php-fatal-error/#post-6901296)
 * Does it work correctly if you have the wp-cron on?
 *  Thread Starter [nuyensgert](https://wordpress.org/support/users/nuyensgert/)
 * (@nuyensgert)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/crontab-php-fatal-error/#post-6901395)
 * It is triggered upon deletion of a calendar.
 * I think it has something to do with wordpress trying to empty the trash (files
   in the trash are automatically deleted after 30 days by wp).
 * I had some calendars in the trash. I emptied the trash.
 * I’ll have to wait until tomorrow to see if this solved the problem.
    I’ll keep
   you informed.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/crontab-php-fatal-error/#post-6901406)
 * Sounds great. Look forward to your findings. Thanks.
 *  Thread Starter [nuyensgert](https://wordpress.org/support/users/nuyensgert/)
 * (@nuyensgert)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/crontab-php-fatal-error/#post-6901491)
 * It didn’t solve the problem.
 * About your question if it works correctly when I have the wp-cron on: I think
   it worked ok but I want to have it off and work with crontab who calls wp-cron.
   I don’t see the difference.
 * I can’t understand what exactly is causing the problem. Everyday at 18u30 I get
   a mail while the crontab job runs every 30 min.
 * I also don’t understand what is triggering simcal_delete_feed_transients() at
   post-types.php on line 316?
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/crontab-php-fatal-error/#post-6901494)
 * Is the 18:30 time matching up when your calendar cache is clearing?
 * > I also don’t understand what is triggering simcal_delete_feed_transients() 
   > at post-types.php on line 316?
 * That’s the function that is called when your calendar cache is cleared. It removes
   all the old transients to replace with the new one.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/crontab-php-fatal-error/#post-6901527)
 * Assuming this is resolved since there has not been a reply here. Please let us
   know if there is anything else we can help you with.
 * Thanks!
 *  Thread Starter [nuyensgert](https://wordpress.org/support/users/nuyensgert/)
 * (@nuyensgert)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/crontab-php-fatal-error/#post-6901528)
 * Sorry for my late reaction but it has been a busy week and I didn’t have time
   to reply. The problem is not solved yet, for all my calendar the cache clearing
   interval is 4 hours.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/crontab-php-fatal-error/#post-6901546)
 * I’m not really sure. Since it is working with the other plugin disabled then 
   I would have to assume it is conflicting somehow.

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

The topic ‘crontab – PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/crontab-php-fatal-error/#post-6901546)
 * Status: resolved