Error Messages for Start/End Filter for CF version 3.6.0

Error Messages for Start/End Filter for CF version 3.6.0

על ידי David Heuring בתאריך
מספר תגובות: 5

Using Moodle 3.5.1 and just upgraded configurable reports to the latest version - 3.6.0 (2019021500) today.  Now getting error messages for any reports using the Start/End filter.  I'm wondering if I need to have Moodle 3.6 installed to use the version.  If so I'll roll it back.  


But first, here are the error messages:


line 808 of /lib/moodlelib.php: coding_exception thrown

line 166 of /blocks/configurable_reports/report.class.php call to clearn_param()

line 80 of /blocks/configurable_reports/viewreports.php: call to report_base-->check_filters_request()


Thanks for any feedback on this.

Dave

ממוצע דרוגים: -
בתגובה ל: David Heuring

Re: Error Messages for Start/End Filter for CF version 3.6.0

על ידי Sara Arjona Téllez בתאריך
תמונה של Core developers תמונה של Moodle HQ תמונה של Particularly helpful Moodlers תמונה של Peer reviewers תמונה של Plugin developers תמונה של Testers

Hi Dave!

Thanks for reporting this (and my apologies for the inconvenience). I've created an issue in the tracker (https://github.com/jleyva/moodle-block_configurablereports/issues/113) and I will try to fix as soon as I could (however, patches are welcomed if somebody can find a solution קריצה ).

Cheers!

Sara

בתגובה ל: Sara Arjona Téllez

Re: Error Messages for Start/End Filter for CF version 3.6.0

על ידי David Heuring בתאריך

Thanks, Sara-

I can't code so will stand by.  Image below is the actual error messages..

Much appreciated.

David

צרופה Untitled.png
בתגובה ל: David Heuring

Re: Error Messages for Start/End Filter for CF version 3.6.0

על ידי Лъчезар Лазаров בתאריך

Change line 166 of /blocks/configurable_reports/report.class.php
from
$val = clean_param($val, PARAM_CLEANHTML);
to
$val = clean_param_array($val, PARAM_CLEANHTML);

בתגובה ל: Лъчезар Лазаров

Re: Error Messages for Start/End Filter for CF version 3.6.0

על ידי Лъчезар Лазаров בתאריך

Change line 166 of /blocks/configurable_reports/report.class.php
from
$val = clean_param($val, PARAM_CLEANHTML);
to

 if (is_array($val) and is_callable('clean_param_array')) {

                                $val = clean_param_array($val, PARAM_CLEANHTML);

                        } else { 

                                $val = clean_param($val, PARAM_CLEANHTML);

                        }