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

Bypass message.php dependency while upgrading moodle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 4.5.1
    • Administration
    • MOODLE_405_STABLE
    • Easy

      We noticed when upgrading to 4.5.1 (4.5 not tested) that a plugin e.g. block_exaport can be installed during the upgrade despite the new specification for MESSAGE_DEFAULT_LOGGEDIN and MESSAGE_DEFAULT_LOGGEDOFF.

      To achieve this, you must do the following.

      1. start the upgrade
      Here you get the typical message:

      -->message_airnotifier
      !!! Fehler: Undefined constant "MESSAGE_DEFAULT_LOGGEDIN" !!!
      !! 
      Error code: generalexceptionmessage !!
      !! Stack trace: * line 23 of /blocks/exaport/db/messages.php: Error thrown
      * line 692 of /lib/messagelib.php: call to require()
      * line 487 of /lib/messagelib.php: call to message_get_providers_from_file()
      * line 629 of /lib/upgradelib.php: call to message_update_processors()
      * line 771 of /lib/upgradelib.php: call to upgrade_component_updated()
      * line 1937 of /lib/upgradelib.php: call to upgrade_plugins()
      * line 274 of /admin/cli/upgrade.php: call to upgrade_noncore()
       !! | stderr: Database transaction aborted automatically in /home/vhosts/moodle/kurse.mh-trossingen.de/public_html/admin/cli/upgrade.php
      Default exception handler: Fehler: Undefined constant "MESSAGE_DEFAULT_LOGGEDIN" Debug: 
      Error code: generalexceptionmessage
      * line 23 of /blocks/exaport/db/messages.php: Error thrown
      * line 692 of /lib/messagelib.php: call to require()
      * line 487 of /lib/messagelib.php: call to message_get_providers_from_file()
      * line 629 of /lib/upgradelib.php: call to message_update_processors()
      * line 771 of /lib/upgradelib.php: call to upgrade_component_updated()
      * line 1937 of /lib/upgradelib.php: call to upgrade_plugins()
      * line 274 of /admin/cli/upgrade.php: call to upgrade_noncore()

      2. move plugin from the public_html
      3. run the upgrade again
      4. add plugin again
      5. start upgrade again twice ... first time it fails and second time it runs through.

       

            Unassigned Unassigned
            Mephisto Serhat Saman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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