crowdfavorite / wp-social

A social web integration plugin for WordPress. (Twitter, Facebook, etc.)
http://wordpress.org/extend/plugins/social
GNU General Public License v2.0
183 stars 59 forks source link

Scheduled Post error #144

Open crookedletter opened 11 years ago

crookedletter commented 11 years ago

Plugin works great when manually posting, however, I am attempting to use the plugin with WP's scheduled post function. I recieve the following error when I attempt to do so.

Error string(32) "lib/social/aggregation/queue.php" string(0) "" Fatal error: Class 'Social_AggregationQueue' not found in /home/****/_.com/wp-content/plugins/social/social.php on line 980 Notice: ob_endflush(): failed to delete buffer zlib output compression. in /home/****/_.com/wp-includes/functions.php on line 2705

crookedletter commented 11 years ago

I believe I solved my issue. This is just a guess, however, it looks as though sequential calls were being made simultaneously due to the speed of our hosting environment. I added this->init() to line 978 of public function transition_post_status($new, $old, $post) on social.php. if (self::broadcasting_enabled_for_post_type($post->post_type)) { $this->init(); Social_Aggregation_Queue::factory()->add($post->ID)->save(); } Now that I'm forcing the call to the init function I am able to use WPs scheduled post functionality.

jondavidjohn commented 11 years ago

Can't get this to replicate or make much sense at this point, pushing to further release.