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

undefined var $sqlwhere when running automated backups

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Log in as admin
      2. Ensure there are multiple courses created on your site.
      3. Set the following site configuration settings...
        backup_auto_active - manual
        backup_auto_storage - specified directory
        backup_auto_destination - path to some writeable dir
        backup_auto_skip_modif_prev - checked
        backup_auto_skip_modif_days - never
      4. Run the script php admin/cli/automated_backups.php and make sure no errors or notices are generated.
      5. Run the script php admin/cli/automated_backups.php again and make sure no errors or notices are generated.
      Show
      Log in as admin Ensure there are multiple courses created on your site. Set the following site configuration settings... backup_auto_active - manual backup_auto_storage - specified directory backup_auto_destination - path to some writeable dir backup_auto_skip_modif_prev - checked backup_auto_skip_modif_days - never Run the script php admin/cli/automated_backups.php and make sure no errors or notices are generated. Run the script php admin/cli/automated_backups.php again and make sure no errors or notices are generated.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-42427-master
    • Sprint:
      BACKEND Sprint 6

      Description

      automated backups produce following notice:-

      Notice: Undefined variable: sqlwhere in /var/www/int/25/moodle/backup/util/helper/backup_cron_helper.class.php on line 172
       
      Call Stack:
          0.0002     241200   1. {main}() /var/www/int/25/moodle/admin/cli/automated_backups.php:0
          0.2096   29878800   2. backup_cron_automated_helper::run_automated_backup() /var/www/int/25/moodle/admin/cli/automated_backups.php:95

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ankit_frenz Ankit Agarwal
              Reporter:
              ankit_frenz Ankit Agarwal
              Peer reviewer:
              Mark Nelson
              Integrator:
              Marina Glancy
              Tester:
              Rossiani Wijaya
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Nov/13