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

Install script: icon image are not displayed on the Server Checks page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.8.6, 1.9.1
    • Component/s: Installation
    • Labels:
      None
    • Environment:
      WAMP + Vista
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Test:

      • Take a clean Moodle or rename your config.old
      • Run moodle (Installation script)
      • Go through the installation to the "Server Checks" page.
      • No icon image ( Firefox) or missing images (IE).

      Cause:
      weblib.php:
      doc_link(...) {
      ...
      if (empty($iconpath))

      { $iconpath = $CFG->httpswwwroot . '/pix/docs.gif'; // PROBLEM: $CFG->httpswwwroot isn't define in install script }

      ...
      }

      Quick fix:
      install.php:
      case ENVIRONMENT: /// Environment checks
      + // Set CFG->httpswwwroot default value
      + // it is used to display icon image by doc_link() in weblib
      + global $CFG;
      + $CFG->httpswwwroot=$INSTALL['wwwrootform'];

        Attachments

          Activity

            People

            Assignee:
            jerome Jérôme Mouneyrac
            Reporter:
            jerome Jérôme Mouneyrac
            Tester:
            Petr Skoda
            Participants:
            Component watchers:
            Matteo Scaramuccia, Andrew Nicols, 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:
              15/May/08