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

michaelschutz’s picture

I'm getting the same error.

nunoveloso’s picture

Assigned: Unassigned » nunoveloso

I 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.

rjjansen’s picture

Title: Error on admin log in » Missing argument 2 for _cmf_userspace_perms()

Installed 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.

Leeteq’s picture

#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?

kewlguy’s picture

Following 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.

OneTwoTait’s picture

Me too. Subscribing.

atreus’s picture

I 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

function _cmf_userspace_perms($manage_access, $view_access) {
  return (user_access($manage_access) || user_access($view_access));
}

with

function _cmf_userspace_perms($manage_access) {
  return (0);
}

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

nunoveloso’s picture

Status: Active » Fixed

Hello 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.