rseitz
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Plugin is not workingWe’ve been running Simple Calendar on two WP multisite installations for a few years now. And recently every site that had it activated began showing that “critical error” screen. In case it helps others to troubleshoot the problem, at least one of those sites hadn’t even created an event. Just having the plugin activated crashed the site. While activated, we also could not view the Settings or Calendars screens without seeing that same error. We’ve decided to avoid this headache and deactivate it across our nearly 400 sites.
Forum: Plugins
In reply to: [AI Twitter Feeds (Twitter widget & shortcode)] PHP7 compatibilityOur system admins didn’t wait to update us to PHP 7, so we had to scramble to make our WordPress Multisites work. In the ai-twitter-feeds.php file, we had to change this line:
$status = preg_replace(“/((http:\/\/|https:\/\/)[^ )
]+)/e”, “‘‘. ((strlen(‘$1’)>=$linkMaxLen ? substr(‘$1′,0,$linkMaxLen).’…’:’$1′)).’‘”, $status);to this:
$status = preg_replace_callback(“/((http:\/\/|https:\/\/)[^ )
]+)/”, function($m){ return ‘‘. ((strlen(‘$1’)>=$linkMaxLen ? substr(‘$1′,0,$linkMaxLen).’…’:’$1′)).’‘;}, $status);At least, the pages are working again and it isn’t throwing any errors. I hope the new command we added accomplishes what the old one did.