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

tool_moodlenet uses message_send() API during upgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.0
    • 4.0
    • MoodleNet
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-73939-master
    • Hide
      1. Run git checkout e63604fb
      2. Do a fresh install
      3. Run git checkout master
      4. Upgrade Moodle
      5. Log in as admin
      6. Go to Site administration > General > Messaging > Notification settings
      7. Enable notifications for "Notices about minor problems" for the "Web" interface.
      8. Hit the "Save changes" button
      9. Run cron (php admin/cli/cron.php)
      10. Log in as admin
      11. Confirm that you get a notification that the default MoodleNet setting has changed.
      12. Click on the notification (on the notification text itself. not on the "view full notification" link next to it).
      13. Confirm that you get redirected to the Advanced features admin page with "Enable MoodleNet integration" visible.
      14. Verify that the "Enable MoodleNet integration" setting is checked
      15. Go to "Site administration > Courses > Activity chooser settings"
      16. Verify that "Activity chooser footer" is set to "MoodleNet".

       

      Show
      Run git checkout e63604fb Do a fresh install Run git checkout master Upgrade Moodle Log in as admin Go to Site administration > General > Messaging > Notification settings Enable notifications for " Notices about minor problems " for the " Web " interface. Hit the "Save changes" button Run cron ( php admin/cli/cron.php ) Log in as admin Confirm that you get a notification that the default MoodleNet setting has changed. Click on the notification (on the notification text itself. not on the "view full notification" link next to it). Confirm  that you get redirected to the Advanced features admin page with " Enable MoodleNet integration " visible. Verify  that the "Enable MoodleNet integration" setting is checked Go to "Site administration > Courses > Activity chooser settings" Verify  that "Activity chooser footer" is set to "MoodleNet".  

      Upgrade fails because of use of a core API which is currently failing.

      The failure of the API is tracked separtely in MDL-73747, but the use of this API is a breach of our rules for use of core APIs during an upgrade. The message_send() function is not declared to be upgrade safe and should not be used here.

      -->tool_moodlenet
      Default exception handler: Coding error detected, it must be fixed by a programmer: Could not load preference popup_provider_moodle_notices_locked. Make sure the component and name you supplied
                          to message_send() are valid. Debug:
      Error code: codingerror
      * line 297 of /lib/messagelib.php: coding_exception thrown
      * line 156 of /admin/tool/moodlenet/db/upgrade.php: call to message_send()
      * line 709 of /lib/upgradelib.php: call to xmldb_tool_moodlenet_upgrade()
      * line 1935 of /lib/upgradelib.php: call to upgrade_plugins()
      * line 202 of /admin/cli/upgrade.php: call to upgrade_noncore()
       
      !!! Coding error detected, it must be fixed by a programmer: Could not load preference popup_provider_moodle_notices_locked. Make sure the component and name you supplied
                          to message_send() are valid. !!!
      !!
      Error code: codingerror !!
      !! Stack trace: * line 297 of /lib/messagelib.php: coding_exception thrown
      * line 156 of /admin/tool/moodlenet/db/upgrade.php: call to message_send()
      * line 709 of /lib/upgradelib.php: call to xmldb_tool_moodlenet_upgrade()
      * line 1935 of /lib/upgradelib.php: call to upgrade_plugins()
      * line 202 of /admin/cli/upgrade.php: call to upgrade_noncore()
       !!
      

        1. moodlenet coding error.png
          189 kB
          Rick Jerz
        2. moodlenet settings.png
          120 kB
          Rick Jerz
        3. MDL-73939 notifications.png
          22 kB
          Simey Lameze
        4. image-2022-03-01-12-05-33-789.png
          93 kB
          Michael Milette
        5. Step No. 11_Screenshot.PNG
          19 kB
          Gladys Basiana
        6. Step No. 13 & 14_Screenshot.PNG
          58 kB
          Gladys Basiana
        7. Step No. 16_Screenshot.PNG
          72 kB
          Gladys Basiana

            rezaie9 Shamim Rezaie
            rjerz Rick Jerz
            Simey Lameze Simey Lameze
            Jun Pataleta Jun Pataleta
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 10 minutes
                5h 10m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.