Critical scheduling bug
-
I found a bug which causes this plugin to override existing crons. After installing FBCI, my Jetpack emails stopped going out and my post schedules never worked.
After applying a fix everything went back to normal. It would be nice to see it in the next release.
Open facebook-comments-importer.php and change this function:
function fbci_schedules() { return array( 'fifteenminutes' => array( 'interval' => 900, /* 60 seconds * 15 minutes */ 'display' => 'Fifteen minutes' ), 'halfhour' => array( 'interval' => 1800, /* 60 seconds * 30 minutes */ 'display' => 'Half hour' ) ); }
to
function fbci_schedules($schedules) { return array_merge($schedules, array( 'fifteenminutes' => array( 'interval' => 900, /* 60 seconds * 15 minutes */ 'display' => 'Fifteen minutes' ), 'halfhour' => array( 'interval' => 1800, /* 60 seconds * 30 minutes */ 'display' => 'Half hour' ) )); }
This fix was reported earlier but was overlooked and closed for some reason https://www.ads-software.com/support/topic/plugin-facebook-comments-importer-deletes-other-plugins-schedule-intervals?replies=1
- The topic ‘Critical scheduling bug’ is closed to new replies.