-
Bug
-
Resolution: Fixed
-
Minor
-
4.2
-
MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
MDL-76968-master -
When editing the question number an error gets displayed:
Exception - Class "external_api" not found
|
|
Error code: generalexceptionmessage
|
* line 1181 of /mod/quiz/lib.php: Error thrown
|
* line 8059 of /lib/moodlelib.php: call to mod_quiz_inplace_editable()
|
* line 470 of /lib/external/externallib.php: call to component_callback()
|
* line ? of unknownfile: call to core_external::update_inplace_editable()
|
* line 251 of /lib/external/classes/external_api.php: call to call_user_func_array()
|
* line 83 of /lib/ajax/service.php: call to core_external\external_api::call_external_function()
|
This can also be reproduced when running the test_mod_quiz_inplace_editable test case:
1) mod_quiz\lib_test::test_mod_quiz_inplace_editable with data set "slot 1 customised to A1, displayednumber is A1" (1, 'A1')
|
Error: Class "external_api" not found
|
|
/Users/jun/Work/moodles/integration_master/moodle/mod/quiz/lib.php:1181
|
/Users/jun/Work/moodles/integration_master/moodle/mod/quiz/tests/lib_test.php:1255
|
/Users/jun/Work/moodles/integration_master/moodle/lib/phpunit/classes/advanced_testcase.php:80
|
|
2) mod_quiz\lib_test::test_mod_quiz_inplace_editable with data set "slot 2 customised to "A2", displayednumber is A2" (2, 'A2')
|
Error: Class "external_api" not found
|
|
/Users/jun/Work/moodles/integration_master/moodle/mod/quiz/lib.php:1181
|
/Users/jun/Work/moodles/integration_master/moodle/mod/quiz/tests/lib_test.php:1255
|
/Users/jun/Work/moodles/integration_master/moodle/lib/phpunit/classes/advanced_testcase.php:80
|
|
3) mod_quiz\lib_test::test_mod_quiz_inplace_editable with data set "slot 3 is not customised, displayednumber is 3" (3, '3')
|
Error: Class "external_api" not found
|
|
/Users/jun/Work/moodles/integration_master/moodle/mod/quiz/lib.php:1181
|
/Users/jun/Work/moodles/integration_master/moodle/mod/quiz/tests/lib_test.php:1255
|
/Users/jun/Work/moodles/integration_master/moodle/lib/phpunit/classes/advanced_testcase.php:80
|
|
4) mod_quiz\lib_test::test_mod_quiz_inplace_editable with data set "slot 4 customised to "", displayednumber is 4" (4, '')
|
Error: Class "external_api" not found
|
|
/Users/jun/Work/moodles/integration_master/moodle/mod/quiz/lib.php:1181
|
/Users/jun/Work/moodles/integration_master/moodle/mod/quiz/tests/lib_test.php:1255
|
/Users/jun/Work/moodles/integration_master/moodle/lib/phpunit/classes/advanced_testcase.php:80
|
|
ERRORS!
|
Tests: 4, Assertions: 4, Errors: 4.
|
- Discovered while testing
-
MDL-76849 Quiz attempts - Indicate the question that answers belong to
- Closed
- has been marked as being related by
-
MDL-76973 Incorrect external_api class reference causes users tests failure
- Closed
- is a regression caused by
-
MDL-76583 Move lib/externallib.php to namespaced classes and fix coding style, etc.
- Closed