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

Error while Student is viewing a linked Google drive file - Exception - Call to a member function is_writable() on null

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3, Future Dev
    • None
    • Repositories
    • None
    • MOODLE_33_STABLE

    Description

      I have used the new Google drive linked (controlled?) repository to link a file as a Teacher from my own Google drive, and then logged in as a student. and got the following error: "Exception - Call to a member function is_writable() on null" (https://prototype.moodle.net/office/mod/resource/view.php?id=47)

      See attached screen capture.

      Exception - Call to a member function is_writable() on null
      More information about this error
      Debug info: 
      Error code: generalexceptionmessage
      Stack trace:
      line 583 of /repository/googledocs/lib.php: Error thrown
      line 917 of /lib/filestorage/stored_file.php: call to repository_googledocs->send_file()
      line 2370 of /lib/filelib.php: call to stored_file->send_file()
      line 411 of /mod/resource/lib.php: call to send_stored_file()
      line 4636 of /lib/filelib.php: call to resource_pluginfile()
      line 37 of /pluginfile.php: call to file_pluginfile()
      

      Attachments

        1. snapshot151.png
          130 kB
          Nadav Kavalerchik

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nadavkav Nadav Kavalerchik
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: