scott.hepler
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] strange sporadic errorOK, we got this squared away ourselves. It’s just a little workaround if $event is an object but not an instance of Event. Add this inside the ‘set_events’ function of includes/abstracts/calendar.php ; this begins at line 423 on v3.1.3. Here’s the patched function:
/** * Set events. * * @since 3.0.0 * * @param array $array */ public function set_events( array $array ) { $events = array(); if ( ! empty( $array ) ) { foreach ( $array as $tz => $e ) { foreach ( $e as $event ) { /* for some reason we occasionally see $event show up here as a * __PHP_Incomplete_Class Object even though it's formatted properly as * an Event object; it's all public variables, so we can simply cast * to an array and let the next line deal with it */ if (!($event instanceof Event) && !is_array($event)) $event = (array) $event; $events[ $tz ][] = $event instanceof Event ? $event : new Event( $event ); } } } $this->events = $events; }- This reply was modified 9 years, 7 months ago by scott.hepler.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] strange sporadic errorHi again, Nick:
OK, I’ve collected some more info:
– the (only) calendar which has the issue is a Grouped Calendar which aggregates ~24 smaller calendars
– we put in some debugging code to see what type of object the original error is complaining about; it turns out to be a __PHP_Incomplete_Class Object that looks like a SimpleCalendar\\Events\\Event — this seems to indicate that the class isn’t loaded
– I increased the WP memory by 50%, but no changeThanks,
ScottForum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] strange sporadic errorHi Nick:
Thanks for getting back to us. We are not currently doing any caching. The site is in production, so I’ll need to do the conflict checks later.
Thanks again,
ScottForum: Plugins
In reply to: [WordPress Dashboard Tweeter] Twitter login per userNevermind, I fixed this up myself — thanks!
Ah, so it is “on” for all sites if we need it for one. Thanks for the answer!
Forum: Plugins
In reply to: [BackWPup – WordPress Backup & Restore Plugin] S3?Oh, boy — this has bitten me, too. I feel very unhappy.