Hello!
I think you are correct; currently the plugin attempts to query all of the posts during plugin activation. I will change this for the next version (1.3) which I plan to release within 2 weeks so that the plugin does not attempt to query/activate.
If you would like to help me test out version 1.3, send me an email ([email protected]) and I’ll send you a .zip file with the new plugin code which should hopefully be able to activate on your site.
I’ll post another reply here when the update is released. Thanks for your feedback with the plugin!
Thread Starter
junger
(@junger)
Awesome, thanks Ben!
Any direction on, if for the meantime, I want to activate the plugin but NOT run the query at the same time? Happy to comment out the code that does it for now.
Yes, in the mean time you can edit the file social-metrics-tracker.php:
Around line 238, find this code:
if ($this->is_development_server()) {
// Do not schedule update
} else {
// Sync all data
MetricsUpdater::scheduleFullDataSync();
}
and replace with:
if ($this->is_development_server()) {
// Do not schedule update
} else {
// Sync all data
// MetricsUpdater::scheduleFullDataSync();
}
So that you simply comment out the line which schedules the full sync when the plugin is activated. Data will still be collected after the plugin is activated, it will just take a little while for all of the posts to be updated.
Note that in this case data will only be collected if a post is actually viewed by a site visitor, so if you have old posts which don’t receive any visitors, then no data will be retrieved for those posts until they are viewed at least once.
Version 1.3 is now released, try it out and let me know if you have any issues!