This is a new one, and thanks for both the error message as well as checking for other plugin conflicts!
It seems that the part causing an issue for you is… weird. All that happens is HD Quiz grabs the name of the quiz. That error means that the name does not exist… which should be impossible. I even have a check where if the quiz is not found for whatever reason, instead of crashing, the text “This quiz no longer exists” is printed instead.
The only thing I can think of is that somewhere, you already have a taxonomy called “quiz” or something on your site is stopping custom taxonomies from loading on the front-end of your site.
Can you please:
- Make extra super sure you have the shortcode correct. Making sure that there are no special characters or anything like using a single quote
'instead of a double quote" - You deactivated all other plugins, but what about the theme? Can you switch to another theme and check?
- Do you, or did you ever have another quiz related function on your site? Perhaps another quiz plugin or something built into your theme?
- Lastly, if you edit the plugin at
./includes/template.php, line59will be$quiz_name = get_term($quiz_ID, "quiz");
if you add the following line underneath, we can get some more information that will be usefulprint_r($quiz_name);
I see you updated your original with a screenshot, so here is another reply!
There is 100% something wrong with your site or possbily the way you have added in the shortcode. Your site is loading the shortcode/content multiple times. That’s why “Results” is printed on your page so many times, and why Xdebug is warning about the infinite loop.
The cause of this could be many things outside of HD Quiz’s control, but here are the places I would look if this was happening to me.
A) whatever page builder you are using (if you are using one). Most page builders have a block/element specifically for loading short codes, so make sure to use that if relevant.
B) your theme. It could be that something on your theme is causing your content to load more than once.
I strongly recommend deactivating ALL plugins except HD Quiz including any page builders and ALSO change your theme to test. This will give us a great idea on where to start looking. With all plugins disabled, you can also create a new page/post and add the shortcode in on this fresh new page to test. This will help tell us if the issue is with a specific page
The problem is with my theme.
I use this one –> https://mekshq.com/theme/gridlove/
Thank you for confirming.
That theme is a paid for “premium” theme, so you will need to contact the theme developer for support. From their demo, it looks like they use WordPress’ native page builder Gutenberg – which is fantastic! If so, something you can try as a workaround is to delete the shortcodes and instead use the custom Gutenberg block built into HD Quiz.
The quickest way add this custom block is to add a new paragraph then type in /hdq You will then be able to select the HD Quiz block and select the quiz you want to load. No guarantee this will work of course, but it’s worth a shot!
