Moodle

call to undefined (unfound) groups_get_groups_for_user halts upgrade / migration during install

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.9.5
  • Fix Version/s: None
  • Component/s: Wiki (1.x)
  • Labels:
    None
  • Environment:
    centos 5.3 , php 5.1.6 , apache 2, Moodle 1.9.5+ (Build: 20090624)
  • Database:
    MySQL
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_19_STABLE

Description

i deleted the mod/wiki folder. and copied the nwiki 2 mod/wiki folder instead.
(all the other folders in the nwiki 2 zip too) and started the upgrade process by clicking the Notification menu entry.

the process was haled with fatal error :
unable to find groups_get_groups_for_user() function on mod/wiki/wikimigrate/ewiki_migrate.php line 453.

indeed there is no such function. (that i could find)

i used groups_get_user_groups() function instead.

see patch: (do not forget to switch the parameters!)
//$groups = groups_get_groups_for_user($page->userid,$cm->course);
$groups = groups_get_user_groups($cm->course,$page->userid);

and it solved that issue (i hope)

Activity

Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.
Hide
Nadav Kavalerchik added a comment -

It should be move to CONTRIB since it is related to NWiki module for Moodle 1.9
And, the suggested fix solves this issue.

Show
Nadav Kavalerchik added a comment - It should be move to CONTRIB since it is related to NWiki module for Moodle 1.9 And, the suggested fix solves this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: