Don't know why, maybe is a misconfiguration of my site, but when I did publish/unpublish revisioned content I had this error:
Fatal error: Unsupported operand types in .../modules/term_node_count/term_node_count.module on line 66
Looking that line I found
$tids_to_update = $saved_tids + $submitted_tids;
and debugging I found out that the first operand ($saved_tids) was sometimes empty.
To solve this issue I replaced the line with a check on that variable:
if($saved_tids){
$tids_to_update = $saved_tids + $submitted_tids;
}else{
$tids_to_update = $submitted_tids;
}
Let me know if it's correct and if you need a patch with this change.
Comments
Comment #1
criznach commentedI had the same problem using the revisioning module. Your fix worked for me.
Comment #2
oriol_e9gSame problem and the change fixes the error.
Comment #3
oriol_e9gComment #4
amitgoyal commentedIt looks good to me except coding standards.