Closed (fixed)
Project:
Content Management Filter
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Oct 2008 at 02:26 UTC
Updated:
17 Dec 2008 at 23:41 UTC
I get the following error on logging in as admin. . .
warning: Missing argument 2 for _cmf_userspace_perms() in C:\wamp\www\sites\all\modules\cmf\cmf.module on line 764.
Not sure if this is a problem with the module or if I have the permissions set wrong.
Comments
Comment #1
michaelschutz commentedI'm getting the same error.
Comment #2
nunoveloso commentedI just fixed it. Please check the dev version and test it (watch out the date @ 21/10/2008).
Works good for me now. If the same error occurs after installing the new version, try to empty tour cache.
Thank you for giving feedback.
Comment #3
rjjansen commentedInstalled CMF (Drupal 6.6 enviroment). Error given is: warning: Missing argument 2 for _cmf_userspace_perms() in /home/sitename/public_html/sites/all/modules/cmf/cmf.module on line 764.
Cache is cleared (was not active). Problem is still there.
Comment #4
Leeteq commented#5: was that the .dev version that was referred to as having the fix that needs testing, or the 1.1 version which is still not fixed?
Comment #5
kewlguy commentedFollowing the above advice, I removed the existing cmf and then installed the dev version, ran update php and now my admin pages give me the little pink box with: warning: Missing argument 1 for cmf_menu() in /home/xxxxxxxxx/public_html/sites/all/modules/cmf/cmf.module on line 52.
This is a clean install of 6.6 though I have just been activating other modules.
Comment #6
OneTwoTait commentedMe too. Subscribing.
Comment #7
atreus commentedI had this problem as well and managed to "fix" it for my site.
** DISCLAIMER **
I don't know ANY PHP. This was simple trial and error. This is not a general fix, but it will remove the error.
Ok, so I had the "release" version installed, but it would display errors on the user profile pages, and we can't have that.
So I checked the issues, and it was supposedly fixed in the "dev" release...and it was. However, the link to "content management filter" did not work.
So I went back to the "release" version, extracted it in a temporary directory, and changed the function at the very end of cmf.module
I replaced the function
with
So like I said, not a general solution, but it works for me.
What this will do is disable viewing of CMF from ALL user profiles. However, you will still be able to use it in the administrative backend. Which is exactly what I wanted.
Be warned, this could break other stuff.
Andrew
Comment #8
nunoveloso commentedHello Drupalers!
Thank you for all your feedback. It is really cool to see this module can be useful to you!
I would like to apologies D6 users because de "stable" release was everything but stable. The thing is that I don't know how, when I committed to CVS the .module file was the D5 version, so it created a bunch of issues that I corrected and improved.
Check the new releases with the fixes of following bugs:
I also added a little feature: for forum topic related content (node & comments), when you point the node type, there is a bubble showing off with the forum topic this content is associated to.
Unfortunately I couldn't yet figure out what is going on with pagers neither with CSS issues. I will appreciate if someone could give a little hand (especially with this last). I hope those updates will be useful. Thank you again.
Nuno.