After installing on PHP5.3.0, the following error is displayed.

Deprecated function: Assigning the return value of new by reference is deprecated in require_once() 
(line 15 of /path/to/sites/all/modules/patched/activitystream/activitystream_feed/activitystream_feed.module).

Comments

xurizaemon’s picture

Assigned: Unassigned » xurizaemon

Sorry for not being explicit about *which* others - will prob post a patch shortly when I pull it out of git stash :)

xurizaemon’s picture

Title: "Assigning the return value of new by reference is deprecated" from ActivityStream Feed module (and some others) » "Assigning the return value of new by reference is deprecated" errors from simplepie.inc in ActivityStream Feed submodule
Version: 7.x-2.x-dev » 6.x-2.x-dev
Assigned: xurizaemon » Unassigned
Category: task » bug
Status: Needs work » Active

After a review, this isn't the issue I'd been working on, and it looks like it's an issue with the SimplePie 1.2 PHP4 support. As #1206466: Activity Stream includes non-GPL code (simplepie) will remove the include, there's little point in providing a patch to that file here.

Fix for this will be to move the module to use 1.3 (currently "master") branch of SimplePie: https://github.com/simplepie/simplepie/branches

msbrar’s picture

Is there any workaround for this.

socialnicheguru’s picture

This is also there in Drupal 7

stevedas’s picture

Does anyone know how to fix this problem? ......... I'm not following the comments above

xurizaemon’s picture

Status: Active » Postponed (maintainer needs more info)

Try updating activitystream/activitystream_feeds/simplepie.inc with this copy: https://raw.github.com/simplepie/simplepie/one-dot-two/simplepie.inc

Report back if that fixes it please.

xurizaemon’s picture

Status: Postponed (maintainer needs more info) » Needs work
StatusFileSize
new281 KB

Looks like the use of SimplePie 1.2.1 from #963422: Port Activity Stream to Drupal 7? fixes this issue, as it goes away in my D7 sandbox where this is now updated.

Please try this patch.

xurizaemon’s picture

Status: Needs work » Needs review

Please try the above patch and report back accordingly if that fixes it.

morbus iff’s picture

Status: Needs review » Closed (duplicate)

Duplicate of #1413770: Deprecated function: Assigning the return value of new by reference is deprecated in require_once() (line 15 of activitystream_f.

In 7.x-3.x, SimplePIE has been updated to 1.3, which fixes this issue and drops PHP 4 compatibility.

morbus iff’s picture

Issue summary: View changes

log message is required!