Error Messages for Start/End Filter for CF version 3.6.0

Error Messages for Start/End Filter for CF version 3.6.0

Bởi David Heuring -
Số lượng các câu trả lời: 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

Trung bình điểm đánh giá: -
Để phản hồi tới David Heuring

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

Bởi Sara Arjona Téllez -
Hình của Core developers Hình của Moodle HQ Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của Plugin developers Hình của 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 nháy mắt ).

Cheers!

Sara

Để phản hồi tới Sara Arjona Téllez

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

Bởi David Heuring -

Thanks, Sara-

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

Much appreciated.

David

File đính kém Untitled.png
Để phản hồi tới David Heuring

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

Bởi Лъчезар Лазаров -

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

Để phản hồi tới Лъчезар Лазаров

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

Bởi Лъчезар Лазаров -

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

                        }