User dashboard php error
Welcome to QSM Support Forum. › Forums › QSM Pro Support › User dashboard php error
- This topic has 22 replies, 4 voices, and was last updated 8 months, 2 weeks ago by
yudus Binder.
-
AuthorPosts
-
January 13, 2020 at 10:21 am #1898
Romneya Robertson
ParticipantHi,
I bought the user dashboard add-on, created a page and added the shortcode.
The user dashboard appears but is preceded by a php error:
Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/4/d692303330/htdocs/clickandbuilds/BobbingtonsQuizzes/wp-content/plugins/quiz-master-next/php/template-variables.php on line 272
Please can you help?
Thanks!
Attachments:
You must be logged in to view attached files.January 14, 2020 at 5:27 am #1903Kriti Sharma
KeymasterHi Romneya,
Welcome to QSM support Forum. Hope you are doing well.
As we are not noticing this issue at our end, I request you to please provide the admin credentials of your website. So that we can look into the issue.
Kind Regards,
KritiJanuary 31, 2020 at 2:01 pm #2154Romneya Robertson
ParticipantHi Kriti, Thanks for your reply. I think the problem is that I’ve left the ‘Contact’ tab blank when setting up the quiz.
If I collect the user’s name I don’t get the php error.
Also, if I don’t collect the user’s name, they appear blank on the leaderboard.
However I don’t want to force the user to enter their name before they take a quiz because they are already logged in so I should be able to populate the contact name field with their username. Can I do that?
Thanks?
Romneya
January 31, 2020 at 2:49 pm #2155Romneya Robertson
ParticipantI found this in the options tab:
“If a logged-in user takes the quiz, would you like them to be able to edit contact information? If set to no, the fields will not show up for logged in users; however, the users information will be saved for the fields.”
I’ve set that to ‘No’ and it has resolved the php error. My leaderboard is still showing people’s names as ‘None’. And the variable %USER_NAME% also displays ‘None’.
January 31, 2020 at 4:30 pm #2158Kriti Sharma
KeymasterThis reply has been marked as private.February 3, 2020 at 4:09 am #2178Kriti Sharma
KeymasterHi,
You need set the ‘Disable autofill for contacts’ to ‘no’.
Then, to retrieve the contact information, you will either have to ‘Should we ask for the user’s name? (Only here for older versions. Use Contact tab for this.)’ , ‘ Should we ask for users business? (Only here for older versions. Use Contact tab for this.)’,
‘Should we ask for email? (Only here for older versions. Use Contact tab for this.)’, ‘Should we ask for phone number? (Only here for older versions. Use Contact tab for this.)’ to ‘Yes’.Or you will have to set up the contact info using ‘Contact’ tab for this.
Regards,
KritiFebruary 5, 2020 at 2:26 pm #2227Romneya Robertson
ParticipantHi Kriti,
Oh yes that’s fixed it thank you! I thought ‘Should we ask for the user’s name’ meant that it would require the user to input their name for each quiz. Instead I think it means ‘Should we take the user’s name from their saved account details’.
Thanks again. I’m really happy that it works now.
Romneya
February 6, 2020 at 5:28 am #2232Kriti Sharma
KeymasterHi,
I am glad that your doubt is clear now.
Regards,
VarunFebruary 28, 2020 at 8:50 pm #2502Romneya Robertson
ParticipantThis reply has been marked as private.March 2, 2020 at 6:57 am #2520Kriti Sharma
KeymasterThat may be the reason. If you think that it happened after changing Http to Https, then try restoring the website back to Http version and then let me know whether it resolved the problem or not.
Regards,
KritiMarch 2, 2020 at 9:42 am #2529Romneya Robertson
ParticipantHi Kriti,
Thank you for your advice. I’ve set the WordPress address and site address to http and I’m still getting the error …
Romneya
March 2, 2020 at 2:05 pm #2534Kriti Sharma
KeymasterHi Romneya,
I request you to please share the website’s admin credentials with me so that we can look into the issue. Also make sure to set the message as private before sharing the credentials.
Regards,
KritiMarch 2, 2020 at 3:56 pm #2539Romneya Robertson
ParticipantThis reply has been marked as private.March 3, 2020 at 6:47 am #2550Kriti Sharma
KeymasterHi Romneya,
I have forwarded your issue to the development team. Please give us some time to rectify the issue.
Regards,
KritiMarch 3, 2020 at 5:28 pm #2560Romneya Robertson
ParticipantThank you for your help. I will wait for advice.
-
AuthorPosts
- You must be logged in to reply to this topic.