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

PHP warnings while enrolling students to remote course and accessing remote course

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.2
    • 2.3.3
    • MNet
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • wip-mdl-35787
    • Hide

      Pre-requisite:

      1. Two sites with mnet
      2. Minimum one course should have mnet enrolment enabled.

      Test 1

      1. Log in as admin to site which has mnet site
      2. Go to Remote enrolments client (Site administration -> Networking -> Remote enrolments client)
      3. Click "Edit enrolments" next to mnet site information
      4. Click "Edit enrolments" next to remote course
      5. No notice/warning should be visible

      Test 2:

      1. Enrol user 1 in remote course
      2. Login as user1 and go to my home page
      3. Click on remote course and you should be redirected normally (without any php warning)
      Show
      Pre-requisite: Two sites with mnet Minimum one course should have mnet enrolment enabled. Test 1 Log in as admin to site which has mnet site Go to Remote enrolments client (Site administration -> Networking -> Remote enrolments client) Click "Edit enrolments" next to mnet site information Click "Edit enrolments" next to remote course No notice/warning should be visible Test 2: Enrol user 1 in remote course Login as user1 and go to my home page Click on remote course and you should be redirected normally (without any php warning)

    Description

      Warning encountered while enrolling students in remote course
      Strict standards: Creating default object from empty value in /var/www/im/mnet/service/enrol/course.php on line 66 Call Stack: 0.0004 755464 1.

      {main}() /var/www/im/mnet/service/enrol/course.php:0
      Steps to reproduce:
      # Log in as admin to site which has mnet site
      # Go to Remote enrolments client (Site administration -> Networking -> Remote enrolments client)
      # Click "Edit enrolments" next to mnet site information
      # Click "Edit enrolments" next to remote course
      # Above warning is visble.

      Warning encountered while accessing remote course
      Strict standards: Only variables should be passed by reference in /var/www/m/auth/mnet/auth.php on line 381 Call Stack: 0.0002 666248 1. {main}

      () /var/www/m/auth/mnet/land.php:0 0.0951 30780144 2. auth_plugin_mnet->confirm_mnet_session() /var/www/m/auth/mnet/land.php:39
      Steps to reproduce:

      1. Enrol user 1 in remote course
      2. Login as user1 and go to my home page
      3. Click on remote course and you will see above warning.

      Attachments

        Activity

          People

            rajeshtaneja Rajesh Taneja
            rajeshtaneja Rajesh Taneja
            Ankit Agarwal Ankit Agarwal
            Dan Poltawski Dan Poltawski
            David Monllaó David Monllaó
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Nov/12