gtn / exaport

exabis eportfolio
http://www.exabis.at
13 stars 13 forks source link

External function parameters: invalid OPTIONAL value specified. #29

Open noisyjerm opened 1 year ago

noisyjerm commented 1 year ago
line 729 of /lib/externallib.php: call to debugging()
line 165 of /blocks/exaport/externallib.php: call to external_function_parameters->__construct()
line 122 of /lib/externallib.php: call to block_exaport_external::get_item_parameters()
line 199 of /admin/webservice/forms.php: call to external_api::external_function_info()
line 214 of /lib/formslib.php: call to external_service_functions_form->definition()
line 63 of /admin/webservice/service_functions.php: call to moodleform->__construct()

This error may prevent an admin from configuring a webservice. /admin/webservice/service_functions.php

Replace line 165 of /eternallib.php 'owneruserid' => new external_value(PARAM_INT, 'id of owner of this file (needed for items in shared categories', VALUE_OPTIONAL), with 'owneruserid' => new external_value(PARAM_INT, 'id of owner of this file (needed for items in shared categories', VALUE_DEFAULT),

See: https://moodledev.io/docs/apis/subsystems/external/writing-a-service#required-optional-or-default-value