-
Bug
-
Resolution: Fixed
-
Minor
-
3.10.8, 3.11.4, 4.0
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE
-
MDL-73564-master -
When 3rd party plugins are installed they may include the file webservice/lib.php during the page setup (in admin settings, page headers, not exactly sure where).
In this case the following exception is thrown when a user tries to access "Security keys" in their profile:
PHP Fatal error: Cannot declare class webservice, because the name is already in use in /var/www/webservice/lib.php on line 50, referer https://XYZ/user/preferences.php
|
This happens because the file user/managetoken.php calls require() instead of require_once().
- Testing discovered
-
MDL-73575 PHP undefined property notice when viewing users webservice documentation
- Closed