Active
Project:
Content Management Filter
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2009 at 16:59 UTC
Updated:
29 Oct 2010 at 11:03 UTC
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
Comment #1
luketsimmonsHi 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