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

component_installer (file_get_contents) not proxy aware

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.8
    • 1.9
    • Administration
    • None
    • WinXP SP2, XAMPP 1.60a
    • MySQL
    • MOODLE_18_STABLE
    • 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

              skodak Petr Skoda
              crion Christian Münscher
              Nobody Nobody
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Mar/08