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

Cannot read property 'errorcode' of null if local/mobile/check.php returns null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.2
    • Fix Version/s: 3.9.0
    • Component/s: Authentication
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. Install the app and click to add a site.
      2. Enter the URL in the private comment and click Connect. Check that the following error is NOT displayed: Cannot read property 'errorcode' of null. Please notice it could display other errors like "Database connection failed".
      Show
      This issue only needs to be tested in 1 device. Install the app and click to add a site. Enter the URL in the private comment and click Connect. Check that the following error is NOT displayed:  Cannot read property 'errorcode' of null . Please notice it could display other errors like "Database connection failed".
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Sprint:
      Moodle App 3.9.0

      Description

      When the app accesses a site, it checks if the local_mobile plugin is installed by performing a request to local/mobile/check.php. If this request returns null, the app shows this error and doesn't let the user authenticate:

      Cannot read property 'errorcode' of null

        Balsamiq Wireframes

          Attachments

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Pau Ferrer
              Integrator:
              Juan Leyva
              Tester:
              Pau Ferrer
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                26/Jun/20