HD Quiz

V2.0.0 – Critical Error!

Published: December 3, 2024
Support status: closed

Hello,

Since updating to the latest version, I now receive a critical error message on the post with the quiz embedded as well as on the backend in the plugin Settings tab. And the HD Quiz tab doesn’t load. Please advise!

If this can’t be fixed immediately, is there a way to revert back to the previous version?

Thank you for your quick attention to this matter!

thread author: BalletNomad

Update: It actually serves a critical error on my entire website, so I have needed to deactivate the plugin. Please advise.

03 December 2024 — 02:04 thread author - BalletNomad

Hi BalletNomad,
as you can imagine, there shouldn’t be any critical errors with the 2.0, so this is concerning.

If possible, can you enable WP_DEBUG. This will allow WordPress to actually show an error message. If I know what the issue is with your particular site, I can help fix.

WordPress Debug Steps

In the meantime, you can install any previous version of HD Quiz here:

HD Quiz

The previous version was 1.8.15

03 December 2024 — 08:41 support admin - Dylan

Hi Dylan,

I also have this critical error with version 2.0, the theme template is not used and HDquiz validation button is disable.
I had to downgrade to solve this issue as I dont have access for the moment to the FTP server to enable debug mode. I will try to do so and come back with more info.

Thanks.

03 December 2024 — 09:14 Fabi

Hi Dylan,

I do have WP Debug Mode enabled; the message I receive is “There has been been a critical error on this website”.

I cannot seem to locate the V1.8.15 at the page you linked. Where specifically should I be looking?

Thanks again.

03 December 2024 — 10:17 thread author - BalletNomad

Sorry about that! The direct link is here

Also, are you sure that WP_DEBUG is enabled? It should provide a lot more information than the generic Critical Error message. It should tells us what file and function the error originated from.

03 December 2024 — 10:38 support admin - Dylan

Thank you so much, Dylan! Rolling back to that version eliminated the critical error.

03 December 2024 — 10:42 thread author - BalletNomad

Great; glad you got it up!

I know that it’s a long shot, but if you have a staging version of the site, I’d really appreciate it if you could enable WP_DEBUG so I could see the error logs. I’d feel a lot better if I knew what caused this for you!

03 December 2024 — 10:46 support admin - Dylan

Hi Dylan. I don’t have a staging site prepared and I do have WP_DEBUG enabled. The first time the error occurred, I did receive these error details; perhaps they are useful?

An error of type E_ERROR was caused in line 281 of the file /home/thetrbx2/public_html/balletherald/wp-content/plugins/hd-quiz/classes/settings.php. Error message: Uncaught ValueError: openssl_decrypt(): Argument #2 ($cipher_algo) cannot be empty in /home/thetrbx2/public_html/balletherald/wp-content/plugins/hd-quiz/classes/settings.php:281

After the first time, though, I only received the generic “There has been been a critical error on this website”.

Thank you for looking into this!

04 December 2024 — 09:21 thread author - BalletNomad

Amazing; thank you!

So the issue for you is the function openssl_decrypt, which is actually not even an HD Quiz function, but is a default PHP function.

This is almost certainly related to a change to the way the function works with various PHP versions. This is something I should be able to fix, so thanks!

04 December 2024 — 11:48 support admin - Dylan

You’re welcome! FYI, my site is running on PHP version 8.1.30.

Thanks again!

04 December 2024 — 11:56 thread author - BalletNomad

Found the issue and updated the plugin. Unless that function was just a red herring, you should be able to update again.

Please let me know if a different error comes up, or if the update works for you. Thanks again for your help!

04 December 2024 — 12:55 support admin - Dylan

Dylan, it worked! Thank you so much 🙂

04 December 2024 — 13:05 thread author - BalletNomad

Respond to thread

This thread has been closed / marked as resolved.
You can reply to this thread, but it might be better to start a new thread if you need help
.

You can also upload images to imgur and paste the links here. Just make sure that your images don't include any sensitive information.

Submit