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

component_installer (file_get_contents) not proxy aware

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.8
    • Fix Version/s: 1.9
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      WinXP SP2, XAMPP 1.60a
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Moodle 1.8 Beta + (2007021401)
      When trying to use /admin/langimport.php, there happened nothing, first. Then I remembered adding our proxy, and now displaying the language selection boxes works fine. When selecting a language and clicking "<- Install selected language pack", nothing happens for a long time. With Debugging set to "DEVELOPER" I get the following output after 60 seconds of wait:

      "
      XML-Verarbeitungsfehler: Kein Element gefunden
      Adresse: http://localhost/moodle/admin/langimport.php?mode=2
      Zeile Nr. 258, Spalte 1:
      ^
      "

      Translated something like:
      "
      XML-processing error: no element found
      address: http://localhost/moodle/admin/langimport.php?mode=2
      line Nr. 258, column 1:
      ^
      "

      This error led me to the component_installer, and that seems to use "file_get_contents" to download the language-pack, but I was unable to find something like "proxy_url" in admin/langimport.php - I think the component_installer does not incorporate the proxy-rules.

      Any comments if I did something wrong? Any fast workaround for installing a langpack locally? Thanks for this great program!

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              crion Christian Münscher
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08