Quiz ist not shown in Astra Theme

closed

Hello HD-Team,

first: Thank You very much for your Quiz-Plugin!

Here is my problem: The Quiz dos not appear in my Astra-Theme (free). I waited for some days und tried both Shortcode an Gutenberg-Block, but it will not do. Is it a problem with Astra?

Thank You for Your Help,

Kai Buch (Mehr als Heidi)

April 2, 2024 at 10:20amKai Buch

Hi Kai,
HD Quiz is fully compatible with the Astra theme. Can you please provide a link to a page with a quiz on it? I can take a look and see if there is anything blocking the quiz or stopping it from loading.

02 April 2024 — 10:30support admin Dylan

Hello Dylan, Thank You for your reply.

I just interrupted the Maintenance-Modus to show you a page: https://mehralsheidi.ch/heimweh-zu-raten/

Or Do you need access to my WordPress?

What makes me wonder: I type in the quiz’ name, but later there again is a — instead of the name which I stored.

Thank You,

Kai

Thanks for the link. I see the problem 🙂

Your quiz starts off as hidden because you are using the Limit Attempts addons. This addon hides the quiz by default, then checks to see if it’s OK for the current user to take the quiz or not.

The issue is that your site is showing the error Uncaught SyntaxError: Identifier 'HDQ_A_LIMIT_RESULTS_MODE' has already been declared. This error means that the variable HDQ_A_LIMIT_RESULTS_MODE (this comes from the Limit Attempts addon) has been declared twice — which the addon absolutely does not do.

The error message is coming from a file called wpo-minify-footer-52342282.min.js which is a file created by your page caching plugin. What your cache plugin (I think you are using WP-Optimize?) is doing is grabbing all JavaScript files on the page and combining them into one super file. The problem is that it has made a mistake and corrupted the file.

How To Fix

The first thing to do is to simple clear your page cache within WP-Optimize. This will force the cache to rebuild, hopefully without errors this time.

From your admin menu, select WP-Optimize then Cache. Now select the Purge Cache button.

If the above does not work, then it means that WP-Optimize has a bug. We can try excluding the addon files from being included in the cache.

Go to WP-Optimize > Minify > JavaScript. Scroll to the “Exclude JavaScript from processing” section. Add hdq_a_limit_results.js to it’s own line and save (you may need to clear cache again after).

And if the above STILL doesn’t work, by best recommendation would be to replace WP-Optimize with something else such as WP Fastest Cache. I have no affiliation with that plugin, but I really like it 🙂

02 April 2024 — 10:53support admin Dylan

Thank You Very much, Dylan, I will try immediatelly!

Kai

Hello Dylan,

I did everything what you recommended. It didn’t do with WP Optimize although I made the changes, so I switched to WP Fastes Cache.

Thanks again and if I can help you, please let me know.

Kai

Can you please disable WP Maintenance, so I can take a look?

I’m genuinely surprised this did not fix your issue, as I could literally see the cache issue in the files!

Without being able to see the page again, my next best guess is that you have a minor settings corruption with the Limit Attempts addon. If you go to HD Quiz ⇾ Limit Attempts, did you set up any of the options? If you save the settings there and clear the site cache again, does that work?

02 April 2024 — 12:12support admin Dylan

I disabled Maintenance.

I put the Limit Attempts addon to 30, but that also didn’t fix the problem. So I changed to WP Fastes Cache, which already was on my list als Alternative to WP Optimize.

IT’S WORKING NOW!!!!

I can see the quiz perfectly now 🙂

02 April 2024 — 12:18support admin Dylan

That’s right – Thank you again very much 🙂

Kai

I wish You a successfull New Year 2025!

Unfortunately all my quizzes are not shown any more, maybe because of the update an my cache? I already changed vom IONOS Performance to WP Super Cache, but it won’t run.

Thank You for help & God Bless,

Kai Buch

Hi Kai,
this is a bug with the Limit Attempts addon + use of the timer. I already have the fix ready for the next update.

For now, please either disable the Limit Attempts addon, or disable the timer feature.

04 January 2025 — 14:38support admin Dylan

Thank You 🙂

Kai Buch

This thread has either been marked as complete or has been automatically closed due to inactivity. Please consider opening a new support thread for help.