• Resolved bbdapereira

    (@bbdapereira)


    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.

    • This topic was modified 5 years, 2 months ago by bbdapereira.
    • This topic was modified 5 years, 2 months ago by bbdapereira. Reason: title optimization
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Answers results for checkbox questions not being stored on DB’ is closed to new replies.