Fix for Broken WordPress Sites after Updating to ShareThis Plugin 7.01
ShareThis released an updated plugin today for WordPress, going from 6.0 to 7.01. I upgraded the plugin on one of secondary sites and realized right away that upgrading was a bad idea. The site was blank and no amount of refreshing made any difference.
I deleted the share-this folder from the wp-plugins folder for the site, and everything returned to normal. I went back and tried to reinstall the plugin from scratch. This time the site continued to work, but when I tried to activate the plugin, it gave the error message:
Plugin could not be activated because it triggered a fatal error. PHP Parse error: syntax error, unexpected T_DNUMBER in /plugins/share-this/sharethis.php on line 32
ClaytonL posted the fix in a thread in the WordPress.org Forums.
On line 32 of sharethis.php in the share-this plugin folder, change
You should be back in business after that. If you haven’t updated already, I’d hold of until ShareThis releases a fix.
Update: They’ve released 7.02 which fixes the bug.