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

Update upgrade_stale_php_files_present() before 3.9 release

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.9
    • 3.9
    • Installation
    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • Hide

      web

      1. Create/check out a 3.8.x site. For example:

        git checkout v3.8.0
        

      2. Install the 3.8 site.
      3. Check out the master branch

        git checkout master
        

      4. Create any of the following files that are being detected by the patch. (e.g. on Linux, use the "touch" command):
        • course/classes/output/modchooser_item.php

          touch course/classes/output/modchooser_item.php
          

        • course/yui/src/modchooser/js/modchooser.js

          course/yui/src/modchooser/js/modchooser.js
          

        • ...
      5. Open your Moodle instance on your browser.
      6. Log in as admin and proceed with the upgrade.
      7. Verify that a notice ("Mixed Moodle versions detected....") is displayed saying that there are problems upgrading and a proper procedure for upgrading to a major release.
      8. Delete the touched file(s) in 2.
      9. Click "Reload".
      10. Verify that the upgrade now proceeds ok.

      cli

      1. Disclaimer: CLI upgrade does not run the upgrade_stale_php_files_present() check. MDL-53596 has been created about that. Nothing to test here yet.
      Show
      web Create/check out a 3.8.x site. For example: git checkout v3.8.0 Install the 3.8 site. Check out the master branch git checkout master Create any of the following files that are being detected by the patch. (e.g. on Linux, use the " touch " command): course/classes/output/modchooser_item.php touch course/classes/output/modchooser_item.php course/yui/src/modchooser/js/modchooser.js course/yui/src/modchooser/js/modchooser.js ... Open your Moodle instance on your browser. Log in as admin and proceed with the upgrade. Verify that a notice ("Mixed Moodle versions detected....") is displayed saying that there are problems upgrading and a proper procedure for upgrading to a major release. Delete the touched file(s) in 2. Click " Reload ". Verify that the upgrade now proceeds ok. cli Disclaimer: CLI upgrade does not run the upgrade_stale_php_files_present() check. MDL-53596 has been created about that. Nothing to test here yet.

      Simply verify we have a number (4-5) of files for the next major release. They all must be files deleted since last stable version and current master

      git diff --name-status MOODLE_XX_STABLE..master | grep ^D
      

      Note that it's better not to pick any plugin file that maybe reinstalled manually (exception being forum files because that plugin is mandatory).

        1. MDL-68165.jpg
          31 kB
          Anna Carissa Sadia
        2. MDL-68165 (2).jpg
          68 kB
          Anna Carissa Sadia

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Bas Brands Bas Brands
            Jake Dallimore Jake Dallimore
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 25 minutes
                1h 25m

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