Title: Error when logged out
Last modified: August 21, 2016

---

# Error when logged out

 *  Resolved [nordicmike](https://wordpress.org/support/users/nordicmike/)
 * (@nordicmike)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-when-logged-out/)
 * 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/](http://wordpress.org/plugins/yop-poll/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-when-logged-out/#post-3994915)
 * 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
 *  Thread Starter [nordicmike](https://wordpress.org/support/users/nordicmike/)
 * (@nordicmike)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-when-logged-out/#post-3994916)
 * 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.
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-when-logged-out/#post-3994917)
 * 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](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](http://wordpress.org/support/topic/theme-redirects-ajax-requests-for-users-that-are-not-logged-in?replies=8)
 * Best wishes,
 * YOP Team
 *  Thread Starter [nordicmike](https://wordpress.org/support/users/nordicmike/)
 * (@nordicmike)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-when-logged-out/#post-3994918)
 * 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.
 *  [searchsaurabhverma](https://wordpress.org/support/users/searchsaurabhverma/)
 * (@searchsaurabhverma)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-logged-out/#post-3994976)
 * Just Remove
 * add_action( ‘admin_init’, ‘restrict_admin’, 1 )
 * from function.php and all will work fine.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error when logged out’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [searchsaurabhverma](https://wordpress.org/support/users/searchsaurabhverma/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-logged-out/#post-3994976)
 * Status: resolved