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

Setting filesize settings to huge values breaks settings pages/search

    XMLWordPrintable

Details

    • MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-71487-311
    • Hide
      1. Login as admin
      2. Navigate to Security > Site security settings in site administration
      3. Set Private file space to: "9223372036854775807 [bytes]" (PHP_INT_MAX on 64-bit system)
      4. Press Save changes
      5. Confirm setting is saved
      6. Set Private file space to: "9223372036854775808 [bytes]" and press Save changes
      7. Confirm you see the error Some settings were not changed due to an error. and Could not save setting next to the field
      8. Set Private file space to: "4611686018427387904 [KB]" and press Save changes
      9. Confirm you see the error Some settings were not changed due to an error. and Could not save setting next to the field
      10. Set Private file space to: "0 [KB]" and press Save changes
      11. Confirm setting is saved
      Show
      Login as admin Navigate to Security > Site security settings in site administration Set Private file space to: "9223372036854775807 [bytes] " ( PHP_INT_MAX on 64-bit system) Press Save changes Confirm setting is saved Set Private file space to: "9223372036854775808 [bytes] " and press Save changes Confirm you see the error Some settings were not changed due to an error. and Could not save setting next to the field Set Private file space to: "4611686018427387904 [KB] " and press Save changes Confirm you see the error Some settings were not changed due to an error. and Could not save setting next to the field Set Private file space to: "0 [KB] " and press Save changes Confirm setting is saved

    Description

      Hi there, 

       

      I was trying to change the size for private file under site administration -> security --> site security settings.

      However, after I did the change, the system pop out a message.

      (Exception - Argument 1 passed to core_admin\local\settings\filesize::parse_bytes() must be of the type integer, string given, called in [dirroot]\admin\classes\local\settings\filesize.php on line 130)

      After that, I couldn't use the search feature in site administration

      Attachments

        1. MDL-71487_Step 11.png
          MDL-71487_Step 11.png
          67 kB
        2. MDL-71487_Step 5.png
          MDL-71487_Step 5.png
          66 kB
        3. MDL-71487_Step 7_1.png
          MDL-71487_Step 7_1.png
          68 kB
        4. MDL-71487_Step 7_2.png
          MDL-71487_Step 7_2.png
          78 kB
        5. MDL-71487_Step 9_1.png
          MDL-71487_Step 9_1.png
          67 kB
        6. MDL-71487_Step 9_2.png
          MDL-71487_Step 9_2.png
          77 kB

        Activity

          People

            pholden Paul Holden
            jer12182002 hung che chen
            Huong Nguyen Huong Nguyen
            Victor Déniz Falcón Victor Déniz Falcón
            Angelia Dela Cruz Angelia Dela Cruz
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              13/Sep/21

              Time Tracking

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