Warning: Undefined property
Hello, I just activated Results pro plugin and I started to get this error message
Warning: Undefined property: stdClass::$enable_srp in /home/sklzlt/domains/skillz.lt/public_html/wp-content/plugins/hdq-save-results-pro/includes/functions.php on line 10
Also designs was mesed up, picture here https://ibb.co/zVnFmXWV
Hi Dmitrijus,
first – warnings are not errors. You are only seeing that message because you have PHP reporting enabled (which should not be enabled on live sites).
I strongly recommend disabling PHP debugging unless you have a specific reason to keep it enabled. Places to look are the wp-config.php
file located in your WordPress installation folder (look for WP_DEBUG
and make sure it is set to false
), and if not that, then look for a file called php.ini
.
With that said, that warning should not be appearing at all, so I’ll look into what is causing it and push out an update ASAP (later today) and let you know once ready. You can remove the warning by editing your quiz and re-saving the settings.
Thanks for fast reply, Dylan, yes, on wp-config debug is false, no php.ini file here.
define( ‘WP_DEBUG’, false );
Server Current PHP version: 8.3
Right now I revert to light version.
I have addition questions like “How to send full result information to quiz taker like Outcome title and description with the links?”
Thanks alot
editing quiz and re-saving the settings didn’t help.
You have debugging enabled somewhere in your pipeline (those warning messages are impossible without it), so I definitely recommend trying to track that down. In some cases, leaving debugging enabled can leak information about your site and server that a hacker can use.
You’ll need to search your files for some variation of
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
I got the warning fixed now. You can download the latest zip from your account page.
As for your question
How to send full result information to quiz taker like Outcome title and description with the links?
There is an easy way and a “hard” way. If you are only using one quiz, then you can add whatever content to the SRP Settings => Email tab => Email content before (intro content) and Email after before (footer content) fields.
If, however, you want it to be more dynamic where it sends the specific outcome description (it sounds like you are using personalty quizzes?) then this is also possible, but requires adding some custom code to your site. Let me know if this is what you need, and I’ll provide the code for you.
Or actually, just let me know if this is what you want, and I’ll build it directly into the addon. Now that Personalty type quizzes are part of HD Quiz, it makes a lot more sense to have this as a dedicated feature.
Hello, thanks, allright, warning disappeared, thank you, will search for file where debugging mode is enabled
Yes, i’m using the personality test, and in every answer is different description which should person receive by email. Would be great if you build in this feature in the plugin version
Thanks
Give me a couple of days to implement, and I’ll push out an update/notify you here once ready.
great! waiting for any news!
Update sent. You can either wait for the update to show in your admin area, or visit your account page here to download the latest version.
There is now a new setting under the Email tab of the addon to enable this feature.
Hello, thanks, just updated! Is it “Send outcome content” option?
- Name and email start shown but only then I logged in to WordPress. If I logged out it didnt shown the fields to enter name and email (don’t know why, before update ir worked fine)
- If I complete the quiz as administrator and enter the email, it didn’t send the results to me