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

Choice module broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Choice
    • Labels:
      None
    • Database:
      MySQL
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Moodle 2.0 Preview 4+ (Build: 20100728)

      Choice module appears completely broken, To reproduce, just add a choice module in a course. The following errors appears:

      Warning: Illegal offset type in isset or empty in /var/www/moodle20/lib/moodlelib.php on line 5844

      Help title string does not exist: [Array, moodle]
      line 299 of /lib/outputcomponents.php: call to debugging()
      line 1562 of /lib/outputrenderers.php: call to help_icon->diag_strings()
      line 1487 of /lib/formslib.php: call to core_renderer->help_icon()
      line 917 of /lib/formslib.php: call to MoodleQuickForm->addHelpButton()
      line 60 of /mod/choice/mod_form.php: call to moodleform->repeat_elements()
      line 151 of /lib/formslib.php: call to mod_choice_mod_form->definition()
      line 73 of /course/moodleform_mod.php: call to moodleform->moodleform()
      line 216 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
      Help contents string does not exist: [Array_help, moodle]
      line 302 of /lib/outputcomponents.php: call to debugging()
      line 1562 of /lib/outputrenderers.php: call to help_icon->diag_strings()
      line 1487 of /lib/formslib.php: call to core_renderer->help_icon()
      line 917 of /lib/formslib.php: call to MoodleQuickForm->addHelpButton()
      line 60 of /mod/choice/mod_form.php: call to moodleform->repeat_elements()
      line 151 of /lib/formslib.php: call to mod_choice_mod_form->definition()
      line 73 of /course/moodleform_mod.php: call to moodleform->moodleform()
      line 216 of /course/modedit.php: call to moodleform_mod->moodleform_mod()

      Warning: Illegal offset type in isset or empty in /var/www/moodle20/lib/moodlelib.php on line 5890

      Warning: Illegal offset type in isset or empty in /var/www/moodle20/lib/moodlelib.php on line 5904

      Invalid get_string() identifier: 'Array' or component 'moodle'
      line 5906 of /lib/moodlelib.php: call to debugging()
      line 6460 of /lib/moodlelib.php: call to core_string_manager->get_string()
      line 1582 of /lib/outputrenderers.php: call to get_string()
      line 70 of /lib/outputrenderers.php: call to core_renderer->render_help_icon()
      line 1568 of /lib/outputrenderers.php: call to renderer_base->render()
      line 1487 of /lib/formslib.php: call to core_renderer->help_icon()
      line 917 of /lib/formslib.php: call to MoodleQuickForm->addHelpButton()
      line 60 of /mod/choice/mod_form.php: call to moodleform->repeat_elements()
      line 151 of /lib/formslib.php: call to mod_choice_mod_form->definition()
      line 73 of /course/moodleform_mod.php: call to moodleform->moodleform()
      line 216 of /course/modedit.php: call to moodleform_mod->moodleform_mod()

      Coding error detected, it must be fixed by a programmer: Url parameters values can not be arrays!

      Stack trace:
      line 395 of /lib/weblib.php: coding_exception thrown
      line 376 of /lib/weblib.php: call to moodle_url->params()
      line 1600 of /lib/outputrenderers.php: call to moodle_url->__construct()
      line 70 of /lib/outputrenderers.php: call to core_renderer->render_help_icon()
      line 1568 of /lib/outputrenderers.php: call to renderer_base->render()
      line 1487 of /lib/formslib.php: call to core_renderer->help_icon()
      line 917 of /lib/formslib.php: call to MoodleQuickForm->addHelpButton()
      line 60 of /mod/choice/mod_form.php: call to moodleform->repeat_elements()
      line 151 of /lib/formslib.php: call to mod_choice_mod_form->definition()
      line 73 of /course/moodleform_mod.php: call to moodleform->moodleform()
      line 216 of /course/modedit.php: call to moodleform_mod->moodleform_mod()

        Attachments

          Activity

            People

            Assignee:
            mudrd8mz David Mudrák (@mudrd8mz)
            Reporter:
            andreabix Andrea Bicciolo
            Tester:
            Nobody
            Participants:
            Component watchers:
            Dan Marsden, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10