Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3620

Cannot require a CSS file after <head> has been printed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.1, 2.2
    • Component/s: Block: Accessibility
    • Labels:
      None
    • Workaround:
      Hide

      Remove the block from the course before deletion

      Show
      Remove the block from the course before deletion
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE

      Description

      Course delete fails with Accessibility Block installed and active. Removing block from course allows deletion.

      [Moodle 2.2.2+ on Windows Server 2008 / IIS / MSSQL / PHP 5.3.8]


      Coding error detected, it must be fixed by a programmer: Cannot require a CSS file after <head> has been printed.

      More information about this error

      Debug info: /blocks/accessibility/userstyles.php
      Stack trace:
      line 596 of \lib\outputrequirementslib.php: coding_exception thrown
      line 49 of \blocks\accessibility\block_accessibility.php: call to page_requirements_manager->css()
      line 118 of \blocks\moodleblock.class.php: call to block_accessibility->init()
      line 1525 of \lib\blocklib.php: call to block_base->__construct()
      line 1881 of \lib\blocklib.php: call to block_instance()
      line 1902 of \lib\blocklib.php: call to blocks_delete_instance()
      line 4390 of \lib\moodlelib.php: call to blocks_delete_all_for_context()
      line 4313 of \lib\moodlelib.php: call to remove_course_contents()
      line 78 of \course\delete.php: call to delete_course()

        Attachments

          Activity

            People

            Assignee:
            marxjohnson Mark Johnson
            Reporter:
            mikelewis Michael Lewis
            Participants:
            Component watchers:
            Mark Johnson
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Fix Release Date:
              1/Jul/11