always error 382 on cron, on simplepie parser,... feedapi/parser_simplepie/simplepie.inc on line 382
am tired to try, it always an error code like this every time I install simplepie parser module,.. (no other simplepie)... :(

Please give me a clue,.. thanks b4

CommentFileSizeAuthor
#11 simplepie_not_conflict.patch940 bytesaron novak

Comments

aron novak’s picture

Status: Active » Postponed (maintainer needs more info)

Please share the details:
- Exact version number of simplepie.inc file
- Please copy here the exact error message. Is it a php error message?
- When does this message appear? When you enable the module or when you try to create a feed?

panji’s picture

I've found it,... it's a conflict with Activity Stream module...

panji’s picture

I still needed Activity Stream module, but it's always create error on status report

- simplepie.inc => latest version (Version 1.1.1. Released on 15 March 2008.)

- Error message :

Fatal error: Cannot redeclare class SimplePie in /[My Host Path]/www/sites/all/modules/feedapi/parser_simplepie/simplepie.inc on line 382

- create error on status report

sundby’s picture

I have the same exact error. Whenever I copy the simplepie.inc over to the parser directory and enable the SimplePie Parser then I get the same error.

sundby’s picture

I see now that when I disable the Activity Stream module then everything works fine. Apparently Activity Stream declares a class with the name SimplePie as well, so not really a FeedAPI issue.

aron novak’s picture

Title: always error 382 on cron, with simplepie parser » Use simplepie project instead of including own version
Category: bug » support

Yep, it could be a problem of having some modules what use the same included library.
Pro: - better compatibility with other modules
Con: - add another module to the dependencies, more complex installation of FeedAPI

gausarts’s picture

subscribing, thanks

snorkers’s picture

Found the same error (although @ line 386 of simplepie.inc v1.1.3) - and aware that ActivityStream is currently using SimplePie 1.1.1. However quick scan of the module and inc files in ActivityStream doesn't highlight any other declarations of class SimplePie. Will investigate slow time, but in the meantime, I'll disable ActivityStream, and post an issue over there too...

snorkers’s picture

In fact, just looked under ActivityStream issues, and the same problem is highlighted there (http://drupal.org/node/303765). Concensus seems to be to make ActivityStream and FeedAPI dependent upon the SimplePie module and utliise a shared library file. Any thoughts?

mustafau’s picture

Instead of adding another dependency to FeedAPI, parser_simplepie can check if SimplePie object is declared before.

aron novak’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new940 bytes
Leeteq’s picture

Subscribing.

aron novak’s picture

DanielTheViking: um, instead of subscribing, apply this patch and tell if it helps or not.
http://drupal.org/node/311039#comment-1342728

aron novak’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.