If comments are disabled on a site, and "Content" gets set to "comment" in "General Settings" all you get is
Fatal error: Call to undefined function comment_operations()

You have to enable the comment module to get CMF working again.

Comments

luketsimmons’s picture

Hi maulwuff,

Yes I found this too, I was in a rush to get some bits sorted and was in the code so just commented out the foreach of comment_operations() on line 32 to get it back.

I think the solution is to chuck in a module_exists('comment') either in the form creation or where the form is called. As I said I've not really looked at the issue in full, but I think checking the comments module is on before allowing the select comment as a filter would be the safest fix for this.

Thanks,

Luke