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

When trying to upload a glossary attachment that is too big it isnt handled gracefully

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Major Major
    • 2.0
    • 2.0
    • Files API, Glossary
    • None
    • MySQL
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      While adding a glossary entry I opted to attach a file. I browsed to my mp3s and tried to upload one. Screen shot of the error I got is attached. The full error message is below. I think me not being able to upload the file is fine. Its too big. However, this should be handled better.

      ERROR: Invalid JSON string

      ( ! ) Warning: POST Content-Length of 11893798 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

      ( ! ) Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent in /home/andrew/Desktop/repos/moodle/lib/sessionlib.php on line 137
      Call Stack
      #TimeMemoryFunctionLocation
      10.0007240376

      {main}( )../repository_ajax.php:0
      20.0009267504require_once( '/home/andrew/Desktop/repos/moodle/config.php' )../repository_ajax.php:31
      30.0019524152require_once( '/home/andrew/Desktop/repos/moodle/lib/setup.php' )../config.php:28
      40.090920318568session_get_instance( )../setup.php:588
      50.090920319736database_session->__construct( )../sessionlib.php:51
      60.090920319936session_stub->__construct( )../sessionlib.php:396
      70.091020326432session_start
      ( )../sessionlib.php:137



      ( ! ) Warning: Cannot modify header information - headers already sent in /home/andrew/Desktop/repos/moodle/repository/repository_ajax.php on line 60
      Call Stack
      #TimeMemoryFunctionLocation
      10.0007240376{main}

      ( )../repository_ajax.php:0
      20.173636065096header
      ( )../repository_ajax.php:60

      ( ! ) Warning: Cannot modify header information - headers already sent in /home/andrew/Desktop/repos/moodle/repository/repository_ajax.php on line 61
      Call Stack
      #TimeMemoryFunctionLocation
      10.0007240376

      {main}

      ( )../repository_ajax.php:0
      20.173636065056header
      ( )../repository_ajax.php:61

      {"error":"A required parameter (sesskey) was missing","stacktrace":null,"debuginfo":null,"reproductionlink":null}

      Close

            skodak Petr Skoda
            andyjdavis Andrew Davis
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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