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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.8.6, 1.9.1
    • 1.9
    • Installation
    • None
    • WAMP + Vista
    • Any
    • MOODLE_19_STABLE
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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