Errors on Moodle 4.3 and 4.4 with php8.2

Errors on Moodle 4.3 and 4.4 with php8.2

by Martin Meadows -
Number of replies: 3

I am getting the following errors in Moodle versions 4.3 and 4.4, both running php8.2. I have so-far confirmed that the error occurs when I attempt to download results, and when I try to edit an already-existing questionnaire. Is this a problem at my end, or is this plugin not yet compatible with configurations noted above? If the latter, is there a roadmap towards compatibility? I love this plugin and use it a lot, as do others in my institution. 

Thanks. 

errors-questionnaire

Average of ratings: -
In reply to Martin Meadows

Re: Errors on Moodle 4.3 and 4.4 with php8.2

by Martin Meadows -
Apologies. The error I posted above does not occur on Moodle v4.3, but only v4.4. It seems that /moodle/lib/dataformatlib.php no longer exists in v4.4. I've resolved the issue, in a rather clumsy way I must say, by slashing out the offending lines (95 & 488) in /questionnaire/report.php. Hopefully, a more lasting and elegant solution will be forthcoming in the near future.  
Average of ratings: Useful (1)
In reply to Martin Meadows

Re: Errors on Moodle 4.3 and 4.4 with php8.2

by Victor Bonny -

Hi, we tried your solution but it didn't work. Do you have a public repository where we can see your full corrected code? 

In reply to Martin Meadows

Re: Errors on Moodle 4.3 and 4.4 with php8.2

by Dave P -
I had the exact same issue with the questionnaire in moodle 4.4.1+ and found some other posts that suggested I run php 8.3 instead of 8.2.

I only found a reference to the dataformatlib.php file on line 488 of /questionnaire/report.php - which i commented out. I also installed php 8.3

I'm now able to download the user responses without issue.
Average of ratings: Useful (2)