Closed (fixed)
Project:
Category
Version:
4.7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2007 at 15:33 UTC
Updated:
4 Jun 2009 at 16:01 UTC
Hi,
I am using the category module in conjuction with the taxonomy access control, and nodeaccess module.
I got for every link touched above error now in this constallation.
I need all the modules for the functionality I am using.
Can somebody help me please?
What is this error meaning? How can I resolve it?
Greetings and many thanks in advance,
Martijn
Comments
Comment #1
summit commentedHi,
I may have solved it myzelf.
I think a module excedentally used $node without it being an array, so I check this again on the function aroudnd linke 1306.
The code was:
The new code I check if $node->category is an array.
/**
* Implementation of hook_nodeapi('update_index').
*/
function category_node_update_index(&$node) {
$output = array();
if (is_array($node->category)) {
foreach ($node->category as $cat) {
$output[] = $cat->title;
}
if (count($output)) {
return '('. implode(', ', $output) .')';
}
}
}
SO I added if (is_array($node->category)) { to the code.
Is this correct?
Please help.
greetings,
Martijn
Comment #2
JirkaRybka commentedEven if this bug still stands in 4.7.x, that version is no more supported, and this issue got no reply for over 2 years.
Closing now.