Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Berrash

    (@berrash)

    I found this two lines in your plugin:
    add_action( ‘wp_ajax_save_rating’, array( ‘mr_rating_form’, ‘save_rating’ ) );
    add_action( ‘wp_ajax_nopriv_save_rating’, array(mr_rating_form’, ‘save_rating’ ) );
    but still not logged users can’t vote 🙁
    Can you please help with this ?

    Plugin Author dpowney

    (@dpowney)

    Hi there,

    The AJAX call is returning Status Code:302 Moved Temporarily

    A few people have experienced this same error where there’s deliberate code in their theme to remove access to the WordPress dashboard by non-admin users. This of course does not allow AJAX calls which go to admin-ajax. Can you check your functions.php file for any code like this which could be causing this issue?

    Thanks,
    Daniel

    Thread Starter Berrash

    (@berrash)

    You were right, it was a very valuable tip.
    Piece of code that shut down admin bar on the frontend in functions.php was blocking votes to non-logged users.

    I am very grateful for your help!
    Thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Voting works only when i'm logged as a admin’ is closed to new replies.