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

installing translations fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.8
    • Component/s: Language
    • Labels:
      None
    • Environment:
      Linux, apache 2.0.58, php 5.1.6
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      All of this is tested with a fresh install of moodle. Moodle version: 1.7.1+
      The default setting in php5 is 'allow_url_fopen=Off'.

      Bug 1) [ suggestion ]

      • set php option 'allow_url_fopen=Off'
      • go to: Administration - Language - Language packs
      • you get following warning:

      Because Moodle can not connect to download.moodle.org, we are unable to
      do language pack installation automatically. Please download the
      appropriate zip file(s) from the list below, copy them to your
      /opt/web/ADDON/moodle/lang/ directory and unzip them manually.

      ==> Should have a notification about allow_url_fopen=On here!

      Bug 2) [ minor bug ]

      • set php option 'allow_url_fopen=On'
      • go to: Administration - Language - Language packs
      • set php option 'allow_url_fopen=Off'
      • select 'Svenska (sv)' and 'install selected language pack'
      • you get following error message:

      Download of components to your server isn't allowed (allow_url_fopen is
      disabled).

      You must download the http://download.moodle.org/lang16/sv_utf8zip file
      manually, copy it to "/opt/web/ADDON/moodle/lang" in your server and
      unzip it there.

      ==> The downloadable filename is missing a '.' Should be 'sv_utf8.zip', not 'sv_utf8zip'.

      Bug 3) [ major bug ]

      • set php option 'allow_url_fopen=On'
      • go to: Administration - Language - Language packs
      • select 'Svenska (sv)' and 'install selected language pack'
      • you get following error message:

      Cannot save md5 file.

      ==> new language not installed

      Bug 4) [ major bug ]

      • create 'lang' directory under $moodledata
      • manually download and unzip http://download.moodle.org/lang16/??_utf8.zip files into $moodledata/lang
      • set php option 'allow_url_fopen=On'
      • go to: Administration - Language - Language packs
        ==> The downloaded language is NOT listed as installed. Therefore it can't be selected to be used anywhere.

      Working recipie for installing language)

      • create 'lang' directory under $moodledata
      • download and unzip http://download.moodle.org/lang16/??_utf8.zip files into $moodledata/lang
      • set php option 'allow_url_fopen=On'
      • got to: Administration - Language - Language packs
      • select the languages and install them again
      • optionally you can return the php option 'allow_url_fopen=Off' to maintain more secure system

        Attachments

          Activity

            People

            Assignee:
            nicolasconnault Nicolas Connault
            Reporter:
            tpeland Tero Pelander
            Tester:
            Nobody
            Participants:
            Component watchers:
            David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              31/Mar/07