Fork me on GitHub

.760RC3 & getusergroups()  Bottom

  • this code:

    Code

    $ugroups = pnModAPIFunc('groups', 'user', 'getusergroups', array('uid' => $v['uid']));

    produces this error:

    Code

    Fatal error: Cannot redeclare groups_userapi_getall() (previously declared in /Library/WebServer/Documents/PostNuke-0.760-RC3/html/modules/Groups/pnuserapi.php:42) in /Library/WebServer/Documents/PostNuke-0.760-RC3/html/modules/Groups/pnuserapi.php on line 42


    I cannot figure out how to correct the problem. any ideas?
  • Did you load the Groups module API functions before executing pnModAPIFunc? If so, try commenting out the load, as you might be loading the same thing twice (already loaded by the PostNuke core, and then again by your module)

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • no - I did not. That was my firts thought also, so I triple checked. In fact, I plan to make this mod .760 or greater only, so I have eliminated all the APILoad calls. any other ideas? this is frustrating!
  • **bump**
  • In your code you have 'groups' as the module name where as it's proper name is 'Groups'. This case sensitivity will be fixed in .760 RC4.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • aha! sneaky little bugger! :)

    THANK YOU ONCE AGAIN MARK!

This list is based on users active over the last 60 minutes.