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

File Picker reports JSON error when moodle is on a reverse proxy.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Files API
    • Labels:
    • Environment:
      Ubuntu Server 10.10, Apache 2.2.16, PHP 5.3.4, Mod_Proxy
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      When accessing Moodle through the reverse proxy http://domainname/moodle the File Picker is completely unusable. All of the repository plugins give a JSON error similar to

      ERROR: Invalid JSON string

      {"nologin":true,"nosearch":true,"norefresh":true,"list":[],"dynload":false,"upload":

      {"label":"Attachment","id":"repo-form"}

      ,"repo_id":3}

      When bypassing the reverse proxy config and changing the CFG->wwwroot string to point to the ip address http://x.x.x.x/moodle and accessing moodle directly then the File Picker works.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: