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

Typo in uninstallinfo_is_allowed_from_ajax() error message

XMLWordPrintable

    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-81298-MOODLE_403_STABLE
    • MDL-81298-main
    • Hide

      Steps to reproduce:

      1. Remove the following line from the file admin/tool/analytics/db/services.php:

      'ajax' => true, 

      2. Add the following function in the file admin/tool/analytics/classes/external.php:

      public static function potential_contexts_is_allowed_from_ajax() {
          return true;
      } 

      3. Run the test case: core_external\external_api_test::test_all_external_info

      Show
      Steps to reproduce: 1. Remove the following line from the file admin/tool/analytics/db/services.php: 'ajax' => true , 2. Add the following function in the file admin/tool/analytics/classes/external.php: public static function potential_contexts_is_allowed_from_ajax() {     return true ; } 3. Run the test case: core_external\external_api_test::test_all_external_info

      I had a unit test fail from `core\externallib_test::test_all_external_info`

      1) core\externallib_test::test_all_external_info with data set "xxx" (stdClass Object (...))
      Unexpected debugging() call detected.
      Debugging: External function uninstallinfo_is_allowed_from_ajax() function is deprecated.Set ajax=>true in db/service.php instead.
      

      The part I believe is the error is a typo in "Set ajax=>true in db/service.php" it should be "Set ajax=>true in db/services.php", note the extra s for services.

        1. 402.png
          402.png
          77 kB
        2. 403.png
          403.png
          77 kB
        3. main.png
          main.png
          79 kB

            vithushau Vithusha Kethiri
            jay-oswald Jay Oswald
            Jay Oswald Jay Oswald
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Safat Shahin Safat Shahin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m

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