Posted by j0k3z on June 21, 2009 at 8:00pm
3 followers
| Project: | Activity Stream |
| Version: | 6.x-1.0-rc2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
As soon as turned on this module I get this error when I visit my admin page "Fatal error: Cannot redeclare class SimplePie"
I already have SimplePie loaded because I am using the feedapi module to parse RSS feeds as nodes on my website. I think your module is trying to load it again and its causing this error.
Comments
#1
I encountered the same problem, so I wrote a little patch which first checks if FeedAPI SimplePie parser is enabled and that simplepie.inc is present.
If not, then try detect simplepie.inc from activitystream_feed directory.
If not, then show warning message indicating that SimplePie must be installed.
Hope it helps!
Jérémy
#2
The 2.0 branch does almost exactly that. It allows a user to install the simplepie core module and falls back on it's own copy of simplepie as a last resort.
#3
Ok, I didn't know that. I attached an updated patch, there was an error in the previous one.
From your answer I have 2 questions:
- Is 2.0 branch usable, or stable enough to be put on production sites?
- Is there any plan to put such functionality in 1.0 branch ?
Thank you.
Jérémy
#4
AS 2 is now stable enough to be used in production. If someone wants to backport the Simplepie behaviors from 2.x to 1.x and supply a patch, I'd be happy to commit and push a new 1.x release.