WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Comments Importer
Critical scheduling bug (1 post)

  1. Boris Kuzmanovic
    Member
    Posted 9 months ago #

    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 http://wordpress.org/support/topic/plugin-facebook-comments-importer-deletes-other-plugins-schedule-intervals?replies=1

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 9 months ago by Boris Kuzmanovic
  • This topic is not resolved
  • WordPress version: 3.7.1