YOP Poll
[resolved] Error when logged out (6 posts)

  1. nordicmike
    Posted 2 years ago #

    I have it set so that guests and registered users can vote (and view results).

    When logged in, all works fine.

    When logged out, the View Results text link appears on the left, directly beneath the Vote Button and the link doesn't work. You cannot vote also. It is like it doesn't allow you to vote/view results as a guest.... but the guest user is left thinking there is an error because there is no message to say that 'You must be registered user to engage in our poll'. In any case, I have it set for both guests and registered users.


  2. YOP
    Plugin Author

    Posted 2 years ago #

    Hey nordicmike,

    Edit you poll and in the "Other Options" section, "Vote Permissions :" should be set to "Guest & Registered Users".

    If you still have problems, please send us a link so we can assist.


    YOP Team

  3. nordicmike
    Posted 2 years ago #

    Hi. Yes, I have that setting ticked. It works fine when logged in but not when logged out. It seems to be an error in relation to that setting though.


    You can see the View Results doesn't work when logged out.... despite having the permissions set for both guests and registered users.

  4. YOP
    Plugin Author

    Posted 2 years ago #

    Hi nordicmike,

    The problem is with admin-ajax.php

    When a user is not logged in and wants to vote http://www.mytrainedbody.com/wp-admin/admin-ajax.php is accessed.

    However, something goes wrong. It can be a problem with the theme or it can be caused by a security plugin.

    Please take a look at this thread:


    Best wishes,

    YOP Team

  5. nordicmike
    Posted 2 years ago #

    Hi again. Thank you for the info. It's all over my head but I'll try with the theme developer to see if they can shed some light. Thanks once again.

  6. searchsaurabhverma
    Posted 2 years ago #

    Just Remove

    add_action( 'admin_init', 'restrict_admin', 1 )

    from function.php and all will work fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.