Skip to content Skip to main navigation Skip to footer

User dashboard php error

Welcome to QSM Support Forum. Forums QSM Pro Support User dashboard php error

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #1898
    Romneya RobertsonRomneya Robertson
    Participant

    Hi,

    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.
    #1903
    Kriti SharmaKriti Sharma
    Keymaster

    Hi 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,
    Kriti

    #2154
    Romneya RobertsonRomneya Robertson
    Participant

    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?

    Thanks?

    Romneya

    #2155
    Romneya RobertsonRomneya Robertson
    Participant

    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’.

    #2158
    Kriti SharmaKriti Sharma
    Keymaster
    This reply has been marked as private.
    #2178
    Kriti SharmaKriti Sharma
    Keymaster

    Hi,

    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,
    Kriti

    #2227
    Romneya RobertsonRomneya Robertson
    Participant

    Hi 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

    #2232
    Kriti SharmaKriti Sharma
    Keymaster

    Hi,

    I am glad that your doubt is clear now.

    Regards,
    Varun

    #2502
    Romneya RobertsonRomneya Robertson
    Participant
    This reply has been marked as private.
    #2520
    Kriti SharmaKriti Sharma
    Keymaster

    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.

    Regards,
    Kriti

    #2529
    Romneya RobertsonRomneya Robertson
    Participant

    Hi Kriti,

    Thank you for your advice. I’ve set the WordPress address and site address to http and I’m still getting the error …

    Your quiz results

    Romneya

    #2534
    Kriti SharmaKriti Sharma
    Keymaster

    Hi 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,
    Kriti

    #2539
    Romneya RobertsonRomneya Robertson
    Participant
    This reply has been marked as private.
    #2550
    Kriti SharmaKriti Sharma
    Keymaster

    Hi Romneya,

    I have forwarded your issue to the development team. Please give us some time to rectify the issue.

    Regards,
    Kriti

    #2560
    Romneya RobertsonRomneya Robertson
    Participant

    Thank you for your help. I will wait for advice.

Viewing 15 posts - 1 through 15 (of 23 total)
  • You must be logged in to reply to this topic.