V2.0.0 – Critical Error!
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!
Update: It actually serves a critical error on my entire website, so I have needed to deactivate the plugin. Please advise.
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.
In the meantime, you can install any previous version of HD Quiz here:
The previous version was 1.8.15
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.
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.
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.
Thank you so much, Dylan! Rolling back to that version eliminated the critical error.
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!
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!
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!
You’re welcome! FYI, my site is running on PHP version 8.1.30.
Thanks again!
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!
Dylan, it worked! Thank you so much 🙂
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