Error Messages for Start/End Filter for CF version 3.6.0

Error Messages for Start/End Filter for CF version 3.6.0

by David Heuring -
Number of replies: 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

Average of ratings: -
In reply to David Heuring

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

by Sara Arjona Téllez -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of 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 wink ).

Cheers!

Sara

In reply to Sara Arjona Téllez

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

by David Heuring -

Thanks, Sara-

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

Much appreciated.

David

Attachment Untitled.png
In reply to David Heuring

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

by Лъчезар Лазаров -

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

In reply to Лъчезар Лазаров

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

by Лъчезар Лазаров -

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

                        }


In reply to Лъчезар Лазаров

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

by diego dubois -
thanks, I had the same problem. And thanks to your help now it works