Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1794

on login, error message 'Cannot find data record in database table course' is displayed.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.2
    • Component/s: Courses
    • Labels:
    • Testing Instructions:
      Hide

      To test this you'll need a site with master branch.

      1. Configure the site to use a courseid different than 1 for Site Home. (Update the course id whose category is equal to 0)
      2. In the app, check that you can see Site Home contents.
      3. Check that a content link pointing to Site Home works too.
      Show
      To test this you'll need a site with master branch. Configure the site to use a courseid different than 1 for Site Home. (Update the course id whose category is equal to 0) In the app, check that you can see Site Home contents. Check that a content link pointing to Site Home works too.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Sprint:
      Moodle Mobile 3.2

      Description

      Since I upgraded our moodle to 3.1.1, any user logging in to Moodle Mobile (version 3.1.2) gets error 'Cannot find data record in database table course'.

      I suspect this may be related to the fact that our siteid is not 1. I tested this with a new install. As installed, ( id of the site course = 1, category =0) and one other test course set up (id=2,category=1),everything was fine. When I swapped the category of course id 2 to 0, and the category of course id 1 to 1, I got the error.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            lawrie34 Barbara Lawrence
            Peer reviewer:
            Pau Ferrer
            Integrator:
            Juan Leyva
            Tester:
            Berta Maroto
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Dec/16