Closed (fixed)
Project:
FeedAPI Extensible Parser
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2009 at 09:18 UTC
Updated:
1 May 2009 at 03:30 UTC
Helo
Im aggregating rss 2.0 feed and get error on cron run and refresh:
Fatal error: Call to a member function init() on a non-object in /home/podcast/public_html/sites/all/modules/feedapi_eparser/feedapi_eparser.plugins.inc on line 308
thanx for help
Comments
Comment #1
EmanueleQuinto commentedI had the same problem and after checking the code of feedapi_eparser.plugins.inc I found the lines (amended in the following of the discussion) that create the problem:
file: feedapi_eparser.plugins.inc
line 308: function init()
I added the if command because ensure_namespace method could set the array plugins to false:
Now either this function should return a value (TRUE or FALSE) depending on the test OR we have to check $this->namespace_plugins[$namespace]
A similar problem occurs in parse()
Line 316:
Line 324:
Don't know if is_object it's the right test...
I submit a patch as soon as possible (still debugging and a lot of print_r, dpm, dsm, var_dump around in my code.
Comment #2
neclimdulThanks I've already committed a fix for this. An array_filter before saving the settings fixes the problem.