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.

CommentFileSizeAuthor
#3 term_node_count.module.patch852 bytesoriol_e9g

Comments

criznach’s picture

I had the same problem using the revisioning module. Your fix worked for me.

oriol_e9g’s picture

Status: Active » Needs review

Same problem and the change fixes the error.

oriol_e9g’s picture

StatusFileSize
new852 bytes
amitgoyal’s picture

Status: Needs review » Reviewed & tested by the community

It looks good to me except coding standards.