Missing required key in single structure: year Error code: invalidparameter * line 315 of /lib/externallib.php: invalid_parameter_exception thrown * line 223 of /lib/externallib.php: call to external_api::validate_parameters() * line 59 of /lib/ajax/service.php: call to external_api::call_external_function()so i have this problem
Was really stuck on this .. it seems only on the Essential theme
in the end I did this in \lib\ajax\service.php
//new if statement to return dummy JSON on false calls
foreach ($requests as $request) {
$response = array();
$methodname = clean_param($request['methodname'], PARAM_ALPHANUMEXT);
$index = clean_param($request['index'], PARAM_INT);
$args = $request['args'];
if(!empty($args)){
$response = external_api::call_external_function($methodname, $args, true);
$responses[$index] = $response;
if ($response['error']) {
// Do not process the remaining requests.
break;
}
echo json_encode($responses);
}else{
$response = '';
$responses[$index] = $response;
echo json_encode($responses);
}
}
#echo json_encode($responses);
have you configured which tab these parameters?