Calendar issue, already tracked?

إعادة: Calendar issue, already tracked?

by D.ALI ALAMRI -
Number of replies: 2

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
In reply to D.ALI ALAMRI

Re: إعادة: Calendar issue, already tracked?

by John Web -

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);


In reply to John Web

Re: إعادة: Calendar issue, already tracked?

by Diana Gonzaga -

have you configured which tab these parameters?