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

themedesignermode doesn't exist prior to setting it to Yes first time

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4
    • Component/s: Themes
    • Labels:
    • Environment:
      Any
    • Testing Instructions:
      Hide

      New conversion / possibly new install of 2.0
      Switch debug mode on before clicking Theme selector, without changing Theme settings first

      Show
      New conversion / possibly new install of 2.0 Switch debug mode on before clicking Theme selector, without changing Theme settings first
    • Workaround:
      Hide

      Either precreate $CFG->themedesignermode=0 in install (tidy),
      or use !isset($CFG->themedesignermode) wrapper in /theme/index.php (less tidy)

      Show
      Either precreate $CFG->themedesignermode=0 in install (tidy), or use !isset($CFG->themedesignermode) wrapper in /theme/index.php (less tidy)
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Pull Master Branch:
      wip-MDL-27825-master

      Description

      A bug appears only if you have debug switched on, namely that the themedesignermode object is not pre-created in the install of Moodle 2.0(.3)
      If debug mode is on, then repeated attempts at finding themedesignermode in /theme/index.php at line 98 (one per theme) result in copious errors.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  1/Aug/11