• Hi, I’m using Wp-postratings plugin for many sites and it works pretty nice. Homewever, I’ve one site where is failing in a weird way: Admin can vote without issues but if you’re a registered user member logged or just a guest any action over voting is forcing a redirect.

    You can check here: http://www.parloting.com/. As guest, when user click to vote it show login page in-site (like incrustated in an iframe); as member, people will vote and it redirect to profile page (logged index); finally, as admin, I can vote and it doesn’t show any error. In all cases I mentioned vote is counting, so mainly issue is just that redirection related to role users. Also, highest post rated listing is working fine.

    I guess could be related to permissions of users. My settings for allow to vote is all (Guests and Users).

    Thanks for your help,
    Best regards.

    http://wordpress.org/extend/plugins/wp-postratings/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Thread Starter OlivierRodriguez

    (@olivierrodriguez)

    Hi, thanks for your quick reply.

    Unfortunately that didn’t work. I follow that URL and I’d that change ssl did over php file before I open this thread. Also I tried to disable Postviews too during testing process.

    Anything else to consider?

    Regards.

    Plugin Author Lester Chan

    (@gamerz)

    I don’t think I can help you on this, it looks to me you are using some plugin or it is a config issue. When I access to http://http://www.parloting.com/wp-admin/admin-ajax.php it should not redirect me.

    It is not a plugin problem per say. If you are going to use any AJAX plugin, it will be a problem.

    Thread Starter OlivierRodriguez

    (@olivierrodriguez)

    You’re right, you save my day with that clue. This is a symptom of some configuration and I need to investigate in-depth. I saw admin-ajax returns 0 only as admin.

    Regards.

    hello Lester Chan
    it is impossible to use the plugins when access to the dashboard is limited only to administrators?

    I tried these variants and I get these errors

    1) You are not allowed to access this part of the site

    function wpse_11244_restrict_admin() {
        if ( ! current_user_can( 'manage_options' ) ) {
            wp_die( __('You are not allowed to access this part of the site') );
        }
    }
    add_action( 'admin_init', 'wpse_11244_restrict_admin', 1 );

    2) equal to the first: You are not allowed to access this part of the site

    function wpse_11244_restrict_admin() {
        if (!current_user_can('update_core')) {
            wp_die(__('You are not allowed to access this part of the site'));
        }
    }
    
    add_action('admin_init', 'wpse_11244_restrict_admin', 1);

    3) here instead, redirects to blank screen:

    function wpse_11244_restrict_admin() {
        if ( ! current_user_can( 'manage_options' )  && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php' ) {
            wp_redirect( home_url() );
        }
    }
    add_action( 'admin_init', 'wpse_11244_restrict_admin', 1 );

    is an error in the plugin?
    kindly can you tell me what can be the problem?
    sorry but I’m not Italian I hope at least to make me understand.
    I thank you in advance
    Frank

    -Os: mac ML 10.8.2
    -broswer:
    chrome 24.0.1312.52
    safari 6.0.2 (8536.26.17)
    -wordpress 3.5
    -theme atahualpa 3.7.10
    -php 5.2
    -phpMyAdmin – 2.11.11.3

    [Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wp-postratings trying to force a redirect due to some user privileges’ is closed to new replies.