Posted by mgruene on September 30, 2009 at 5:16am
Jump to:
| Project: | OG Join Role |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
We had a problem with the module. After installing it, nobody could subscribe to groups anymore as the og_subscribe function is in an external file.
The quick fix I did to make it work was adding
'file' => '../og/og.pages.inc'
to the $items['og/subscribe/%node'] array, but I'm sure there's a better way to do this?
Cheers
Michael
Comments
#1
Maybe this?
'file' => 'og.pages.inc','file path' => drupal_get_path('module', 'og'),
We needn't worry about whether the file is there or not since it is listed as a dependency in the .info file.
Hope this helps.
Chris
#2
Hello,
In my case a blank screen showed when a user wants to join a group, ive tried to modify the code and the blanks screen appears againg and got the following message
call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'og_subscribe' was given in ...
Do i have to do something else?
thanks
#3
duplicate of http://drupal.org/node/745818