WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. nordicmike
    Member
    Posted 1 year 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.

    http://wordpress.org/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 1 year 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.

    Regards,

    YOP Team

  3. nordicmike
    Member
    Posted 1 year 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.

    mytrainedbody.com/blog

    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
    Member
    Plugin Author

    Posted 1 year 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:

    http://wordpress.org/support/topic/theme-redirects-ajax-requests-for-users-that-are-not-logged-in?replies=8

    Best wishes,

    YOP Team

  5. nordicmike
    Member
    Posted 1 year 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
    Member
    Posted 9 months 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

Tags

No tags yet.