Moodle
  1. Moodle
  2. MDL-17601

apache2 error log: File does not exist: favicon.ico

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 1.9.8
    • Component/s: Messages
    • Labels:
      None
    • Environment:
      Linux izra 2.6.27.7 #1 SMP Fri Nov 21 18:49:50 CET 2008 i686 GNU/Linux
      apache2.2 (2.2.3-4+etch6)
      php5 (5.2.0-8+etch13)
    • Database:
      MySQL
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      30185

      Description

      after checking the apache error log i found plenty of lines such this:

      [Thu Dec 11 00:32:03 2008] [error] [client XXX.XXX.XXX.XXX] File does not exist: /home/www/moodle/favicon.ico, referer: https://moodle/message/discussion.php?id=342

      when i checked the file message/discussion.php, the page header was written by the hand (when i was looking for function print_header, it was written in the comment, it is not allowed to write by the hand...) and there was missing such line about the favicon.ico. possible solutions:

      1. add the line
      <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
      in the message/discussion.php (after line 43)

      2. correct the code to use the function print_header

      3. just symlink the favicon to the moodle root directory, which is solution for other possible error messages such this one. it will be good to mention it in documentation, but it could be problem during the theme switching

        Activity

        Hide
        Andrew Davis added a comment -

        Resolved in both 1.9 and 2.0 I added <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
        Using print_header resulted in a lot of other stuff being included that wasnt necessary in a frameset document.

        Show
        Andrew Davis added a comment - Resolved in both 1.9 and 2.0 I added <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" /> Using print_header resulted in a lot of other stuff being included that wasnt necessary in a frameset document.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: