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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.6, 1.9.1
    • 1.9
    • Installation
    • None
    • WAMP + Vista
    • Any
    • MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      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'];

            jerome Jérôme Mouneyrac
            jerome Jérôme Mouneyrac
            Petr Skoda Petr Skoda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.