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

Unable to add activity, when module name ends with number

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.1.2, 3.4, 3.5.3
    • Course, Installation

      Moodle 3.1.2+ (Build: 20161027)

      How to reproduce:

      Create a stub 'mod/something1' plugin. Install it.

      Try to add an activity of type 'something1'.

      You will get:

      Can not find data record in database table modules.
       
      More information about this error
       
      Debug info: SELECT * FROM {modules} WHERE name = ?
      [array (
      0 => 'something',
      )]
      Error code: invalidrecord
      Stack trace:
      line 1502 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      line 1478 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      line 425 of /course/modlib.php: call to moodle_database->get_record()
      line 63 of /course/modedit.php: call to can_add_moduleinfo()
      

      But if you name your plugin 'something' (without a number at the end), then everything works.

            Unassigned Unassigned
            emanuelis Emanuelis Norbutas
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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