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

Error when copying file from Dropbox repository

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.4.5, 3.5.2
    • 3.2.1, 3.4.4, 3.5.1, 3.6
    • Repositories
    • MOODLE_32_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • MDL-57666-master
    • Hide

      Prerequisites:

      1. Existing Dropbox account (containing uploaded files).
      2. Configured and enabled Dropbox repository. (Site administration > Plugin > Repositories > Manage repositories)

      Test scenario:

      1. Log in as Admin.
      2. Go to 'Private files'.
      3. Click on the "Add" icon in the file manager.
      4. In the Filepicker:
        • make sure you can see the Dropbox repository in the list of available repositories.
        • Click on the Dropbox repository.
          • make sure you can now see the uploaded files from your Dropbox account.
      5. Open new tab/window in your browser and log in to your Dropbox account.
      6. In your Dropbox account pick one file and delete it.
      7. Go back to the tab with your Moodle instance.
      8. With the Filepicker still opened (the previous state) you should still see the deleted file. 
        • click on the file that you've just deleted from your Dropbox account.
        • select 'Make a copy of the file' and click 'Select file'
        • make sure you get an error that says 'Coding error detected, it must be fixed by a programmer: Endpoint specific error: ...'
          and NOT 'Coding error detected, it must be fixed by a programmer: PHP catchable fatal error'

       

      Show
      Prerequisites: Existing Dropbox account (containing uploaded files). Configured and enabled Dropbox repository. (Site administration > Plugin > Repositories > Manage repositories) Test scenario: Log in as Admin. Go to 'Private files'. Click on the "Add" icon in the file manager. In the Filepicker: make sure you can see the Dropbox repository in the list of available repositories. Click on the Dropbox repository. make sure you can now see the uploaded files from your Dropbox account. Open new tab/window in your browser and log in to your Dropbox account. In your Dropbox account pick one file and delete it. Go back to the tab with your Moodle instance. With the Filepicker still opened (the previous state) you should still see the deleted file.  click on the file that you've just deleted from your Dropbox account. select 'Make a copy of the file' and click 'Select file' make sure you get an error that says 'Coding error detected, it must be fixed by a programmer: Endpoint specific error: ...' and NOT 'Coding error detected, it must be fixed by a programmer: PHP catchable fatal error'  

      The following error occurs for a couple users when copying a file from the Dropbox repository:

      [11-Jan-2017 10:51:05 America/Chicago] Default exception handler: Coding error detected, it must be fixed by a programmer: PHP catchable fatal error Debug: Object of class stdClass could not be converted to string
      Error code: codingerror
      * line 426 of \lib\setuplib.php: coding_exception thrown
      * line 201 of \repository\dropbox\classes\dropbox.php: call to default_error_handler()
      * line 114 of \repository\dropbox\classes\dropbox.php: call to repository_dropbox\dropbox->check_and_handle_api_errors()
      * line 323 of \repository\dropbox\classes\dropbox.php: call to repository_dropbox\dropbox->fetch_dropbox_data()
      * line 427 of \repository\dropbox\lib.php: call to repository_dropbox\dropbox->get_file_share_info()
      * line 486 of \repository\dropbox\lib.php: call to repository_dropbox->fix_old_style_reference()
      * line 265 of \repository\dropbox\lib.php: call to repository_dropbox->unpack_reference()
      * line 278 of \repository\repository_ajax.php: call to repository_dropbox->get_file()
      

            Geshoski Mihail Geshoski
            dastratman Daniel Stratman
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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