When I try to access my rss feeds I get the follow error: "Fatal error: Cannot use object of type stdClass as array in /var/www/www2.domain.org/htdocs/blog/modules/node.module on line 1489"

The file has this at that location
1489 if ($element['namespace']) {
1490 $namespaces = array_merge($namespaces, $element['namespace']);
1491 }

Can any one point in me in the right direction to fix this?

Comments

nedjo’s picture

If you look a couple of lines above those, you'll find that the data in question is being returned through a module hook:


    // Allow modules to add additional item fields
    $extra = node_invoke_nodeapi($item, 'rss item');

It looks like one of the modules you have enabled is misbehaving and returning an object instead of an array. Try disabling modules one by one to identify which is the culprit. Or you could search your .module files for the line:

case 'rss item':

to find which might be causing the problem.

IrnBru001’s picture

It appears that the culprit was the module "tlc" Guess I'll contact the author or try to find a different way to use that technorati feature.