These problems all occurred when running cron with activity stream enabled.
notice: Undefined variable: url in /sites/all/modules/activitystream/activitystream_feed/simplepie.inc on line 5463.
And many, many similar errors. It looks like version 1.1 of SimplePie wasn't PHP Notice free, bunch of undeclared variables. Updating to the most recent SimplePie 1.1.1 got rid of the problems with php notices thrown by simplepie.inc though.
There was also a nasty bug where the $node object wasn't actually getting loaded for items that already exist in the database. This was causing errors like this one.
notice: Undefined property: stdClass::$vid in /includes/common.inc on line 3300.
notice: Undefined property: stdClass::$vid in /sites/all/modules/cck/content.module on line 290.
This was caused by calling node_save($node) on a malformed node object. Since the $node object wasn't properly created for existing items it was sort of stuck somewhere between a new node, and an existing node, so node_save() didn't really know what to do with it.
I've attached two patches to this. One fixes just the problem with $node not being loaded properly, the other fixes this issue, and also patches simplepie.inc to the newest 1.1.1 version. Obviously simplepie.inc should probably get updated, but you can just download the new version instead of patching the existing one if you need to.
| Comment | File | Size | Author |
|---|---|---|---|
| actvitystream-php_notices_on_cron.patch | 613 bytes | eojthebrave | |
| actvitystream-php_notices_on_cron_sp.patch | 7.12 KB | eojthebrave |
Comments
Comment #1
akalsey commentedApplied to 5.x and 6.x
Comment #2
akalsey commented