silentprincess
Member
Posted 9 months ago #
Hi! When I tried to answer the quiz I created, I got this error whether my answer is correct or wrong:
Fatal Error: Call to a member function get_results() on a non-object in /home/content/39/8045639/html/wp-content/plugins/wp-survey-and-quiz-tool/lib/Wpsqt/Mail.php on line 62
http://wordpress.org/extend/plugins/wp-survey-and-quiz-tool/
For some reason it seems like the global isn't declared. Add this below line 19 on the referenced file global $wpdb;. Not sure how that slipped though and it usually works for me.
silentprincess
Member
Posted 9 months ago #
hi..thank you, but I'm not sure what will I add..
silentprincess
Member
Posted 9 months ago #
Sure, if you replace your lib/Wpsqt/Mail.php with this one.
jflahiff
Member
Posted 4 months ago #
I have a similar problem but it say
swp-survey-and-quiz-tool/lib/Wpsqt/Mail.php on line 100
I updated with the mail.php file listed here and it still does it.
HELP !!!
jflahiff
Member
Posted 4 months ago #
This is line 100
foreach( $emailList as $emailAddress ){
mail($emailAddress,$emailSubject,$emailMessage,$headers);