Error in calendar after update from 3.2 to 3.7

Error in calendar after update from 3.2 to 3.7

by Iban Moreno -
Number of replies: 2

Hi everyone!!

After upgrading from 3.2 to 3.7 I'm getting this error in every page with the calendar block.

url => Detectado valor de respuesta no válido (Invalid external api response: the value is "http://seaic_dpc.local/calendar/view.php?view=month&time=1572562800" of PHP type "string", the server was expecting "url" type): Invalid external api response: the value is "http://seaic_dpc.local/calendar/view.php?view=month&time=1572562800" of PHP type "string", the server was expecting "url" type
Error code: invalidresponse
* line 442 of /lib/externallib.php: invalid_response_exception thrown
* line 250 of /lib/externallib.php: call to external_api::clean_returnvalue()
* line 60 of /lib/ajax/service.php: call to external_api::call_external_function()

The active theme is Boost, I tested width Foundation, same error ...

Any ideas?

Thanks in advance!!

Average of ratings: -
In reply to Iban Moreno

Re: Error in calendar after update from 3.2 to 3.7

by Paul Holden -
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Iban,

The error stems from the hostname you are using for your site (seaic_dpc.local), which is invalid due to the underscore. Hence, Moodle doesn't recognise it as a valid URL

For context, here's a discussion about the same issue affecting other places in Moodle

Average of ratings: Useful (2)
In reply to Paul Holden

Re: Error in calendar after update from 3.2 to 3.7

by Iban Moreno -
Problem solved, change the hostname to one without the underscore and its working like a charm.
Thank you very much Paul!!