Moodle

Undefined variable: completioninfo

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Conditional activities
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

i get the following error on the front page. i have conditional activities and completion info on.

Notice: Undefined variable: completioninfo in /Users/jason/Sites/moodle/course/lib.php on line 1537

Fatal error: Call to a member function is_enabled() on a non-object in /Users/jason/Sites/moodle/course/lib.php on line 1537

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

I have committed a temp fix, please have a look at this

Show
Petr Škoda (skodak) added a comment - I have committed a temp fix, please have a look at this
Hide
Sam Marshall added a comment -

Thanks Petr, sorry about this.

I did a patch and got the original developer to test it, hopefully it is ok this time. I think the bug only occurred if you had a section with no items in it, which is how he missed it in earlier testing as his test courses didn't have any empty sections.

(Note: I accidentally committed the fix with the comment MDL-19827, which is a duplicate of this, apologies.)

Show
Sam Marshall added a comment - Thanks Petr, sorry about this. I did a patch and got the original developer to test it, hopefully it is ok this time. I think the bug only occurred if you had a section with no items in it, which is how he missed it in earlier testing as his test courses didn't have any empty sections. (Note: I accidentally committed the fix with the comment MDL-19827, which is a duplicate of this, apologies.)

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: