[4.2.2 and 4.3] Exception - implode(): Argument #1 ($pieces) must be of type array, string given

[4.2.2 and 4.3] Exception - implode(): Argument #1 ($pieces) must be of type array, string given

by Richard van Iwaarden -
Number of replies: 2
When trying to set up a Questionnaire that has graphical feedback output (like rose) I'm receiving these errors on my production Moodle (4.2.2) and test Moodle (4.3)



The error is not consistent, it's difficult to reproduce and find out what's behind it. Could it be that when you add a rose feedback output and no questions are added to the specific question feedback, this error occurs?

I have also created a tracker for this: https://tracker.moodle.org/browse/CONTRIB-9422
Average of ratings: -
In reply to Richard van Iwaarden

Re: [4.2.2 and 4.3] Exception - implode(): Argument #1 ($pieces) must be of type array, string given

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

"Could it be that when you add a rose feedback output and no questions are added to the specific question feedback, this error occurs?"

Yes! I've been able to reproduce this. But... why would you do this (no questions are added to the specific question feedback)? 

In reply to Joseph Rézeau

Re: [4.2.2 and 4.3] Exception - implode(): Argument #1 ($pieces) must be of type array, string given

by Richard van Iwaarden -
I don't know smile

Leave this option open and students or teacher will find a way to get this error.

But... I also found this error with a very old Questionnaire, I think from 2015 or something. During all the upgrades I think the questions were simply not connected to the rose-feedback anymore. It was in an old course, not used for years, where I am pretty sure it used to work OK. But when I recently tried to open the Questionnaire, this error came.