January 13, 2020 at 10:21 am #1898
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?
Attachments:You must be logged in to view attached files.January 14, 2020 at 5:27 am #1903
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.
KritiJanuary 31, 2020 at 2:01 pm #2154
Hi 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?
RomneyaJanuary 31, 2020 at 2:49 pm #2155
I 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 #2158This reply has been marked as private.February 3, 2020 at 4:09 am #2178
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.
KritiFebruary 5, 2020 at 2:26 pm #2227
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.
RomneyaFebruary 6, 2020 at 5:28 am #2232
I am glad that your doubt is clear now.
VarunFebruary 28, 2020 at 8:50 pm #2502This reply has been marked as private.March 2, 2020 at 6:57 am #2520
That 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.
KritiMarch 2, 2020 at 9:42 am #2529
Thank you for your advice. I’ve set the WordPress address and site address to http and I’m still getting the error …
RomneyaMarch 2, 2020 at 2:05 pm #2534
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.
KritiMarch 2, 2020 at 3:56 pm #2539This reply has been marked as private.March 3, 2020 at 6:47 am #2550
I have forwarded your issue to the development team. Please give us some time to rectify the issue.
KritiMarch 3, 2020 at 5:28 pm #2560
Thank you for your help. I will wait for advice.
- You must be logged in to reply to this topic.