HD Quiz

Big problem after updating 2.0

Published: December 11, 2024
Support status: closed

After update the plugin to 2.0 i cannot see anymore the text based questions.
I have got this error: ” render function for question type text_based_answers not found ”
Can yuo help me?
Thanks

thread author: Beniamino

Hi Beniamino,
I see you are using some caching plugin “perfmatters”. Please try clearing the cache.

11 December 2024 — 10:45 support admin - Dylan

I have disabled Perfmatters (it is my staging site). But the problem is still there 🙁

11 December 2024 — 10:49 thread author - Beniamino

Great thanks. It’s always useful to see the uncached version for debugging.

Just to be clear, your quiz does have that question type in it, right? Are you able to edit that question?

11 December 2024 — 10:54 support admin - Dylan

The questions in backend plugin are all fine. I can see al options fine. And if i put back the 1.8 version of the plugin the problem vanish.
I do not know how fix the problem.

11 December 2024 — 11:02 thread author - Beniamino

What I think is happening on your site is that the mapping function that translates data from the old version to the new is not working correctly for that question type.

I’m investing how this is happening and will get back to you with a solution asap.

Before I get into it though, when you edit one of those questions in the backend, what does it say the question type is? Is it correctly saying that the question is Text Based Answers, or is it defaulting the multiple choice?

11 December 2024 — 11:12 support admin - Dylan

You are right. All the questions are back to the “multiple-choice” type. How is this possible?

11 December 2024 — 13:36 thread author - Beniamino

Thanks for the response.

I have two solutions for you.

First, you can keep your same version and simply re-save the questions. Just make sure you change the needed ones to Text Based.

If you don’t want to do that, then the better news is that I think I found the bug causing this and have already pushed the fix to the repository. I didn’t increase the version number, though, since it’s not a good idea to force everyone to update to fix a bug that (hopefully) is only affecting you. So you’ll need to first deactivate and delete HD Quiz, then install fresh again to get the fixed version.

11 December 2024 — 15:26 support admin - Dylan

Thansk. I cannot change manually all questions. I have 300 questions 🙂
I will wait your plugin update next days and than i will update it again. On my live site i have 1.8 version so i’m not in a rush.
Many thanks!

11 December 2024 — 15:30 thread author - Beniamino

I updated the plugin and now I see “text_based” questions. There is another problem, though. In all questions I have a shortcode inserted in the “right answer” and “wrong answer” fields. Now the shortcodes do not solve anything anymore.
Also all questions have lost the “share_results” setting which was set to NO. Now all questions are on YES.
Thanks!

IMAGE LINK:

View post on imgur.com

12 December 2024 — 09:30 thread author - Beniamino

@Beniamino
Enable “Replace the_content filter for quizzes” found on the Settings page for HD Quiz.

As for the text_based, this has already been fixed. Just reinstall HD Quiz to get the patch.

12 December 2024 — 09:49 support admin - Dylan

Everything seems to be OK! Thank you! Very good help 🙂

12 December 2024 — 10:12 thread author - Beniamino

Sorry Dylan, but there is another big problem. The plugin show always the WRONG TEXT even if the quiz is correct.

Here you can see the problem:
https://env-enigmapnet-stagingenig.kinsta.cloud/en/online-escape-room/the-the-disappearance-of-ettore-majorana-proton/

Thanks for your help

14 December 2024 — 02:34 Beniamino

@Beniamino,
I see you have your pass percentage set to 100%. Please lower it to 99% and let me know if that works. Also, please respond in a new thread, since this is an entirely different issue/request to anything else in this thread.

14 December 2024 — 10:59 support admin - Dylan

If you are enjoying HD Quiz please leave a review here on the official WordPress.org page. HD Quiz is developed by me, just some dude, and is supported and available for free. It may seem dumb, but truly nothing makes me happier than knowing that people are using and loving HD Quiz and my hard work.

This thread has either been marked as complete or has been automatically closed due to inactivity.