Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-40236

PHP fatal error when a user opens an assigment

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.4.4
    • None
    • Assignment, Navigation
    • MOODLE_24_STABLE
    • Hide

      Test regression:

      1. Log in as an admin
      2. Enter a course and create a new assignment.
      3. Edit the role permissions for the course
        1. give students 'moodle/course:manageactivities'
        2. check students don't have 'moodle/site:manageblocks'
      4. Log out.
      5. Log in as a student
      6. Browse to the assignment you created earlier and check you don't get a fatal error.

      Test fix:

      1. As the student browse back to the course.
      2. Turn on editing.
      3. Click "Add an activity or resource"
      4. Check the activity chooser loads and that there are no activities you can add.
      5. Log out
      6. Log in as a teacher
      7. Browse to the course and turn on editing.
      8. Add a forum.
      Show
      Test regression: Log in as an admin Enter a course and create a new assignment. Edit the role permissions for the course give students 'moodle/course:manageactivities' check students don't have 'moodle/site:manageblocks' Log out. Log in as a student Browse to the assignment you created earlier and check you don't get a fatal error. Test fix: As the student browse back to the course. Turn on editing. Click "Add an activity or resource" Check the activity chooser loads and that there are no activities you can add. Log out Log in as a teacher Browse to the course and turn on editing. Add a forum.

    Description

      When a user ( a student in a course) opens a assigment the following PHP error occurs

      Notice: Undefined variable: baseurl in /var/www/elo/lib/navigationlib.php on line 3564

      Fatal error: __clone method called on non-object in /var/www/elo/lib/navigationlib.php on line 3564

      EDIT: I have replaced navigationlib.php with the standard navigationlib.php from moodle 2.4.4 package. It works for now. By the way, I am using moodle version 2.4.4+ Build: 20130614

      Attachments

        Issue Links

          Activity

            People

              samhemelryk Sam Hemelryk
              mvgerwen Mitchell van Gerwen
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: