Must provide a timesort to and/or from value

Re: Must provide a timesort to and/or from value (solución)

by Kalinina Fariñas -
Number of replies: 4

Saludos, luego de intentar varias opciones y validar php, bases de datos, hemos logrado restablecer la  vista general de cursos y con ello solucionar el error Must provide a timesort to and/or from value, de la siguiente manera:

I. En cpanel:

   I.1 .Ingresar a PhpMyAdmin 

   I.2 . Restaturar las tablas:  

         2.1. mdlpy_config 

         2-2. mdlpy_config_plugins

II. En Moodle

   II.1. Extensiones-bloques- gestionar bloques

   II.2. Desinstalar el bloque Vista General del Curso, que con la restaturación I.2 reaparece. (Al desinstalar asumir las perdidas)

   II.3. Instalar de nuevo el bloque Vista General del Curso

   II.4  Area personal por defecto, agregar bloque Vista General del Curso

Y ya con eso solucionado, trabajando en equipo con el comapañero elias Castillo


  


In reply to Kalinina Fariñas

Re: Must provide a timesort to and/or from value (solución)

by Matías Villegas -

Hi, I'm having this error to see the dashboard (Area personal) when login as student or teacher. There´s no problem as admin.

I didn't installed moodle on server, the webmaster did it. I'm only the campus admin.


Does anybody know how to fix this problem?

Help is welcome!


Must provide a timesort to and/or from value

error/Must provide a timesort to and/or from value
File: ...endar/classes/local/api.php
Line: 127

Stack trace:

Error code: Must provide a timesort to and/or from value
$a contents: 
* line 127 of /calendar/classes/local/api.php: moodle_exception thrown
* line 376 of /calendar/externallib.php: call to core_calendar\local\api::get_action_events_by_timesort()
* line ? of unknownfile: call to core_calendar_external::get_calendar_action_events_by_timesort()
* line 228 of /lib/externallib.php: call to call_user_func_array()
* line 59 of /lib/ajax/service.php: call to external_api::call_external_function()

Error code: Must provide a timesort to and/or from value
$a contents: 
* line 127 of /calendar/classes/local/api.php: moodle_exception thrown
* line 376 of /calendar/externallib.php: call to core_calendar\local\api::get_action_events_by_timesort()
* line ? of unknownfile: call to core_calendar_external::get_calendar_action_events_by_timesort()
* line 228 of /lib/externallib.php: call to call_user_func_array()
* line 59 of /lib/ajax/service.php: call to external_api::call_external_function()


In reply to Kalinina Fariñas

Re: Must provide a timesort to and/or from value (solución)

by Aqib Team -

Hi, please can you help to solve the following problem with moodle.
Error code: Must provide a timesort to and/or from value
$a contents: 
* line 127 of /calendar/classes/local/api.php: moodle_exception thrown
* line 375 of /calendar/externallib.php: call to core_calendar\local\api::get_action_events_by_timesort()
* line 228 of /lib/externallib.php: call to core_calendar_external::get_calendar_action_events_by_timesort()
* line 59 of /lib/ajax/service.php: call to external_api::call_external_function()

Error code: Must provide a timesort to and/or from value
$a contents: 
* line 127 of /calendar/classes/local/api.php: moodle_exception thrown
Thanks
Attachment dweqd.PNG
In reply to Aqib Team

Re: Must provide a timesort to and/or from value (solución)

by Sandipa Mukherjee -
Picture of Particularly helpful Moodlers

Hi,


I have faced the same issue. But I solved this problem. Please go to Administration > Site administration > Appearance > Default Dashboard page > add calendar block and upcoming event block along with course overview block and browse your student dashboard page. You can see the error is gone.

If this issue occurs for particular user he / she customize his/her dashboard page and add calendar block and upcoming event block along with course overview block. 

Hope this helps you.

Thanks and regards,

Sandipa Mukherjee

In reply to Sandipa Mukherjee

Re: Must provide a timesort to and/or from value (solución)

by Sudeep Nayak -

If you don't want the calendar functionality at all, then just add the following line of code in the given place.

File: \moodle\calendar\classes\local\api.php

Method: get_action_events_by_timesort

Location: After "global $USER;"

New line of code to be added: $timesortfrom = time();$timesortto = time();$limitnum = 20; 

This is just a patch to quickly sort out the issue. (Only if you don't require calendar functionality)


This may help someone.


Thanks & Regards

Sudeep Nayak