Answers results for checkbox questions not being stored on DB
-
Hi!
I’m using WordPress 5.3.2 with Chained Quiz 1.1.8 and we I noted that when I check the details for a quiz result, the Answer column for the checkbox Questions is empty.
After checking the database I noted that the “answer” column in “chained_user_answers” table is empty. On the Apache logs is logged: “PHP Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /srv/www/htdocs/wp5x/wp-includes/wp-db.php on line 1165”.
After digging a bit on the plugin code I noted that in “helpers/htmlhelper.php” on the function “chained_int_array”, if I comment the two lines and just return the function arg ($value) it stores correctly on the db and displays correctly on details in the quiz result.
Can you please check this?
Thank you.
- The topic ‘Answers results for checkbox questions not being stored on DB’ is closed to new replies.