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

Viewing templates for database activity when list is empty generates error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.3, 2.5.4, 2.6.1
    • Fix Version/s: STABLE backlog
    • Environment:
      Moodle running on CentOS LAMP server. Testing done on Fedora 13 using Chrome and Firefox.
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1. add new database activity to course
      2. Enter title, description, and use default settings.
      3. Hit Save and Display
      4. Add entry, select URL field, fill in form, click Add
      5. Click Templates tab and get error:
      Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
      More information about this error [link to:
      http://docs.moodle.org/en/error/debug/codingerror]
      6. Go to Add Entry Tab
      7. Add entry for URL field and Save and view
      8. Go to templates, no error anymore

      Also, if I delete the single entry, the error does not come back as I expected.

      Show
      1. add new database activity to course 2. Enter title, description, and use default settings. 3. Hit Save and Display 4. Add entry, select URL field, fill in form, click Add 5. Click Templates tab and get error: Coding error detected, it must be fixed by a programmer: PHP catchable fatal error More information about this error [link to: http://docs.moodle.org/en/error/debug/codingerror ] 6. Go to Add Entry Tab 7. Add entry for URL field and Save and view 8. Go to templates, no error anymore Also, if I delete the single entry, the error does not come back as I expected.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE

      Description

      When viewing the templates tab in the database activity with the database list empty, you get error that says:

      Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
      More information about this error [link to:
      http://docs.moodle.org/en/error/debug/codingerror]

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: