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
- Make sure you cleared caches. Nothing I did affected forms in any way – only the emails. Also check if you perhaps have the limit results enabled? I’d need to see a link to a quiz in order to provide any more ideas.
- Do you mean it doesn’t send the email to you – the site owner – or to you – the quiz taker? When logged in, I treat the logged in user’s info (name/email) as the “primary source of truth”. I still save whatever info they add to the form, but for user and email purposes, their account is the source. So check the email your admin account is accociated with.
Yeah, I did that, tries different ways
Doest work, u need link with result pro plugin activated or lite version also works?
With the Pro activated, please. I need to be able to see this issue on my end.
Hi, just tested, now everything is working, you can check here https://skillz.lt/registracija -> Sužinok savo stiliu (press the button)
Also have questions how to change button color and make fields/button corners rounded as on the picture? See the pic: https://ibb.co/5W4BqGrB
Another question – user have to press “start the quiz” two times after entering the name and email to see the questions, can we correct that?
One more question, user gets the letter witch is attached to the left and looks unformatted, is it possible to use paragraph or other way to make it look more aligned (move to center)
thanks
image here
https://ibb.co/gMtDZyxS
I don’t know how rounded you want, but this can be done with CSS. Easiest way to add is to log into your site and go to Apperance -> Customize -> Additional CSS.
.hdq_srp_input, #hdq_srp_submit {border-radius: 8px}
Feel free to play with that 8px to find a “roundness” you like.
As for the double start – I think you have Paginate enabled on your first question? If so, disable that.
Okey, great, everything is worked fine, thanks
And how about alignment in email which user gets?
is it possible to fix it somehow to make it look not “attached” the the left
hope I’m not asking too much 🙂
Hello, is it possible to fix?
Hi Dmitrijus,
it’s a bit tricky because different web clients use different renders, but here is something you can try. Let me know if this works for you and I’ll make it an official change.
If you edit ./includes/notifications.php of the addon, you will see <div style = "max-width: 600px"> on line 199.
Update that to:
<div style = "max-width: 600px; padding: 12px"> and see if that helps for you