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

ERROR: Invalid JSON string on filepicker

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not a bug
    • Affects Version/s: 2.0, 2.1.6, 2.2.3, 2.3
    • Fix Version/s: None
    • Component/s: Filepicker
    • Environment:
      Any, moodle.org for example
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
      git@github.com:vadimonus/moodle.git

      Description

      Every time I tried to pick a file and the filepicker window appeared, it gave me the error: "Invalid JSON string", and I couldn't use it.
      The problem's described and solved here http://yuilibrary.com/projects/yui3/ticket/2531217

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              pniklas Pablo Niklas created issue -
              pniklas Pablo Niklas made changes -
              Field Original Value New Value
              Environment Linux Debian Lenny
              PHP Version 5.2.14-0.dotdeb.0 (with apc accelerator)

              config.php
              $CFG->dataroot = '/u01/moodledata';

              # ls -l /u01/moodledata
              lrwxrwxrwx 1 root root 14 nov 12 08:15 /u01/moodledata -> moodledata-2.0

              # ls -ld /u01/moodledata-2.0
              drwxr-xr-x 8 www-data root 4096 nov 11 13:01 /u01/moodledata-2.0

              # ls -l /u01/moodledata-2.0
              total 24
              drwxr-xr-x 6 www-data root 4096 nov 11 13:01 cache
              drwxr-xr-x 2 www-data root 4096 nov 11 13:01 filedir
              drwxr-xr-x 5 www-data root 4096 nov 11 13:01 lang
              drwxr-xr-x 2 www-data root 4096 nov 11 13:01 sessions
              drwxr-xr-x 4 www-data root 4096 nov 12 09:19 temp
              drwxr-xr-x 2 www-data root 4096 nov 11 13:01 trashdir
              Linux Debian Lenny
              PHP Version 5.2.14-0.dotdeb.0 (with apc accelerator)

              config.php
              $CFG->dataroot = '/u01/moodledata';

              # ls -l /u01/moodledata
              lrwxrwxrwx 1 root root 14 nov 12 08:15 /u01/moodledata -> moodledata-2.0

              # ls -ld /u01/moodledata-2.0
              drwxr-xr-x 8 www-data root 4096 nov 11 13:01 /u01/moodledata-2.0

              # ls -l /u01/moodledata-2.0
              total 24
              drwxr-xr-x 6 www-data root 4096 nov 11 13:01 cache
              drwxr-xr-x 2 www-data root 4096 nov 11 13:01 filedir
              drwxr-xr-x 5 www-data root 4096 nov 11 13:01 lang
              drwxr-xr-x 2 www-data root 4096 nov 11 13:01 sessions
              drwxr-xr-x 4 www-data root 4096 nov 12 09:19 temp
              drwxr-xr-x 2 www-data root 4096 nov 11 13:01 trashdir

              I'm using a reverse proxy configuration as well.
              Description Every time I tried to pick a file and the filepicker window appeared, it gave me the error: "Invalid JSON string", and I couldn't use it.

              I've dig into the issue navigator I found some issues related to that but they appeared as resolved.
              I don't think it would be related to permissions of directory pointed by $CFG->dataroot.

              I've enconter this issue while trying to add a photo to my profile and, when dealing with private files as well.

              Thanks.
              Every time I tried to pick a file and the filepicker window appeared, it gave me the error: "Invalid JSON string", and I couldn't use it.

              I've dug into the issue navigator I found some of them related to that, but they appeared as resolved.
              I don't think it would be related to permissions of the directory pointed by $CFG->dataroot.

              I've enconter this issue while trying to add a photo to my profile and, when dealing with private files as well.

              Thanks.
              skodak Petr Skoda made changes -
              Assignee Petr ?koda (skodak) [ skodak ] Dongsheng Cai [ dongsheng ]
              dongsheng Dongsheng Cai made changes -
              Status Open [ 1 ] Resolved [ 5 ]
              Resolution Cannot Reproduce [ 5 ]
              dougiamas Martin Dougiamas made changes -
              Status Resolved [ 5 ] Closed [ 6 ]
              QA Assignee nobody
              dougiamas Martin Dougiamas made changes -
              Workflow jira [ 40214 ] MDL Workflow [ 66175 ]
              tsala Helen Foster made changes -
              Resolution Cannot Reproduce [ 5 ]
              Status Closed [ 6 ] Reopened [ 4 ]
              Fix Version/s STABLE backlog [ 10463 ]
              QA Assignee nobody
              tsala Helen Foster made changes -
              Labels triaged
              tsala Helen Foster made changes -
              Link This issue is duplicated by MDLSITE-1198 [ MDLSITE-1198 ]
              dougiamas Martin Dougiamas made changes -
              Workflow MDL Workflow [ 66175 ] MDL Full Workflow [ 76857 ]
              jaseeey Jason Ilicic made changes -
              Attachment 20110317-Fix_AJAX_WWWROOT.patch [ 23985 ]
              spirit_1984 Shevchenko Dmitry made changes -
              Attachment comparison.zip [ 24893 ]
              dongsheng Dongsheng Cai made changes -
              Parent MDL-26832 [ 43024 ]
              Issue Type Bug [ 1 ] Sub-task [ 5 ]
              dougiamas Martin Dougiamas made changes -
              Component/s Filepicker [ 12030 ]
              Component/s Files API [ 10305 ]
              vadimon Vadim Dvorovenko made changes -
              Status Reopened [ 4 ] Waiting for peer review [ 10012 ]
              Description Every time I tried to pick a file and the filepicker window appeared, it gave me the error: "Invalid JSON string", and I couldn't use it.

              I've dug into the issue navigator I found some of them related to that, but they appeared as resolved.
              I don't think it would be related to permissions of the directory pointed by $CFG->dataroot.

              I've enconter this issue while trying to add a photo to my profile and, when dealing with private files as well.

              Thanks.
              Every time I tried to pick a file and the filepicker window appeared, it gave me the error: "Invalid JSON string", and I couldn't use it.
              The problem's described and solved here http://yuilibrary.com/projects/yui3/ticket/2531217
              Database PostgreSQL [ 10002 ]
              Pull 2.2 Diff URL https://github.com/vadimonus/moodle/commit/a63de07e297e355152acfa2befd54906a1bd1b25
              Pull 2.1 Branch MDL-25190-21
              Pull 2.2 Branch MDL-25190-22
              Pull 2.1 Diff URL https://github.com/vadimonus/moodle/commit/97474c6fee120c4f921491572400ea132b125ca0
              Pull from Repository git@github.com:vadimonus/moodle.git
              Labels triaged patch triaged
              Affects Version/s 2.2.3 [ 12053 ]
              Affects Version/s 2.1.6 [ 12052 ]
              Environment Linux Debian Lenny
              PHP Version 5.2.14-0.dotdeb.0 (with apc accelerator)

              config.php
              $CFG->dataroot = '/u01/moodledata';

              # ls -l /u01/moodledata
              lrwxrwxrwx 1 root root 14 nov 12 08:15 /u01/moodledata -> moodledata-2.0

              # ls -ld /u01/moodledata-2.0
              drwxr-xr-x 8 www-data root 4096 nov 11 13:01 /u01/moodledata-2.0

              # ls -l /u01/moodledata-2.0
              total 24
              drwxr-xr-x 6 www-data root 4096 nov 11 13:01 cache
              drwxr-xr-x 2 www-data root 4096 nov 11 13:01 filedir
              drwxr-xr-x 5 www-data root 4096 nov 11 13:01 lang
              drwxr-xr-x 2 www-data root 4096 nov 11 13:01 sessions
              drwxr-xr-x 4 www-data root 4096 nov 12 09:19 temp
              drwxr-xr-x 2 www-data root 4096 nov 11 13:01 trashdir

              I'm using a reverse proxy configuration as well.
              Any, moodle.org for example
              samhemelryk Sam Hemelryk made changes -
              Original Estimate 0 minutes [ 0 ]
              Remaining Estimate 0 minutes [ 0 ]
              Status Waiting for peer review [ 10012 ] Peer review in progress [ 10013 ]
              Peer reviewer samhemelryk
              samhemelryk Sam Hemelryk made changes -
              Status Peer review in progress [ 10013 ] Development in progress [ 3 ]
              derekcx Derek Chirnside made changes -
              Attachment Invalid JSON error.jpg [ 28360 ]
              dongsheng Dongsheng Cai made changes -
              Assignee Dongsheng Cai [ dongsheng ] moodle.com [ moodle.com ]
              cfollin Chris Follin made changes -
              Labels patch triaged moodlerooms partner patch triaged
              lazydaisy Mary Evans made changes -
              Affects Version/s 2.3 [ 10657 ]
              poltawski Dan Poltawski made changes -
              Parent MDL-26832 [ 43024 ]
              Original Estimate 0 minutes [ 0 ]
              Remaining Estimate 0 minutes [ 0 ]
              Rank (Obsolete) 162740000000
              Issue Type Sub-task [ 5 ] Bug [ 1 ]
              nebgor Aparup Banerjee made changes -
              Fix Version/s STABLE Sprint 22 [ 12156 ]
              tsala Helen Foster made changes -
              Link This issue has a non-specific relationship to MDL-34182 [ MDL-34182 ]
              poltawski Dan Poltawski made changes -
              Link This issue has a non-specific relationship to MDL-33857 [ MDL-33857 ]
              moodle.com moodle.com made changes -
              Fix Version/s STABLE Sprint 22 [ 12156 ]
              Assignee moodle.com [ moodle.com ] Aparup Banerjee [ nebgor ]
              nebgor Aparup Banerjee made changes -
              Status Development in progress [ 3 ] Open [ 1 ]
              salvetore Michael de Raadt made changes -
              Priority Major [ 3 ] Critical [ 2 ]
              Assignee Aparup Banerjee [ nebgor ] moodle.com [ moodle.com ]
              phalacee Jason Fowler made changes -
              Assignee moodle.com [ moodle.com ] Jason Fowler [ phalacee ]
              phalacee Jason Fowler made changes -
              Assignee Jason Fowler [ phalacee ] moodle.com [ moodle.com ]
              rajeshtaneja Rajesh Taneja made changes -
              Fix Version/s STABLE Sprint 23 Omega [ 12362 ]
              Fix Version/s STABLE backlog [ 10463 ]
              rajeshtaneja Rajesh Taneja made changes -
              Assignee moodle.com [ moodle.com ] Rajesh Taneja [ rajeshtaneja ]
              rajeshtaneja Rajesh Taneja made changes -
              Status Open [ 1 ] Development in progress [ 3 ]
              rajeshtaneja Rajesh Taneja made changes -
              Status Development in progress [ 3 ] Closed [ 6 ]
              Resolution Not a bug [ 7 ]
              stronk7 Eloy Lafuente (stronk7) made changes -
              Fix Version/s STABLE Sprint 23 Omega [ 12362 ]