Support » Plugin: WP-PostRatings » [Plugin: WP-PostRatings] Failed To Verify Referrer

Viewing 15 replies - 1 through 15 (of 18 total)
  • Hi,

    Agree! The plugin was so great! And now same problem: doesn’t work anymore. I use it on a very customized WordPress/bbPress/BuddyPress installation so I don’t have the original error message.

    But seems to be an error of referrer too.

    Hope the plugin will become as perfect as before very soon!

    Cheers

    For the moment, I simply deleted the ‘check ajax referrer’ part from the wp-postratings.php file.

    Ok! Thanks for the tip! I will try too. For the moment I simply downgraded to v1.62 :-s
    Hope GamerZ will be aware of the pb quickly, if it is really one 🙂
    And thx again

    Can anyone link me to a download of version 1.62?

    Hi,

    Indeed I don’t find a link to this version anymore…
    So I put it on my website where you can download it. But if the developper removed it, perhaps it is because og a vulnerability?

    Anyway, here is a link to the plugin:
    http://www.villagora.fr/espace-de-telechargement/

    But the better solution would be to fix the 1.63 version.

    Cheers

    I have the same problem :/

    Grant Kimball

    (@yourlocalwebmaster)

    Inside:
    wp-content/plugins/wp-postratings/wp-postratings.php

    Replace:

    // Verify Referer
    
    		if(!check_ajax_referer('postratings_'.$post_id.'-nonce', 'postratings_'.$post_id.'_nonce', false))
    
    		{
    
    			_e('Failed To Verify Referrer', 'wp-postratings');
    
    			exit();
    
    		}

    WITH THIS:

    // Verify Referer
    
    		if(!check_ajax_referer('postratings_'.$post_id.'-nonce', 'postratings_'.$post_id.'_nonce', false))
    
    		{
    
    			//_e('Failed To Verify Referrer', 'wp-postratings');
    			_e('', 'wp-postratings');
    
    			//exit();
    
    		}

    This will remove the AJAX bs, as well as the error message. However, your ratings will still be accepted as well as all other functionality . i.e. ‘You already rated etc…’

    Hope this helps!

    Grant Kimball

    (@yourlocalwebmaster)

    Also, if you’d like to get rid of that abnoxious “Post ID” text when you have already voted… in wp-postratings.php replace this:

    printf(__('You Had Already Rated This Post. Post ID #%s.', 'wp-postratings'), $post_id);

    With this:

    printf(__('You Had Already Rated This %s.', 'wp-postratings'), 'Location');

    I happen to be using this for rating las vegas casinos, bars, restaurants etc. So feel free to change ‘Location’ back to ‘Post’ or whatever you may be using it for? Games? Cars? etc 🙂

    Plugin Author Lester Chan

    (@gamerz)

    @grant Kimball
    this day you are my hero 🙂

    I have one domain, I tried all things Lester said we had to do

    nothing, simple nothing,
    Failed to verify => I can’t read this text anymore in my life 😉

    your soluten does the trick

    thanks a lot!

    Grant Kimball

    (@yourlocalwebmaster)

    @monika,Your welcome.
    &
    @lester, thank you for an awesome plugin!

    Hi all
    Come back to say that everything ok again with the v1.63.
    We just had a hack to prevent users to go in the back office, by verifying a token ‘admin’ in the url (rather quick and dirty trick 🙂 ).
    Whatever, with this hack removed, no problem anymore!
    And thanks Gamer’z for all the good work and your answers even if you had not much time!
    Cheers

    Hello Grant Kimball,

    I have used your code and got

    Warning: Cannot modify header information – headers already sent by (output started at /home/devangso/public_html/wp-content/plugins/wp-postratings/wp-postratings.php:2974) in /home/devangso/public_html/wp-content/plugins/wp-postratings/wp-postratings.php on line 1160

    Warning: Cannot modify header information – headers already sent by (output started at /home/devangso/public_html/wp-content/plugins/wp-postratings/wp-postratings.php:2974) in /home/devangso/public_html/wp-content/plugins/wp-postratings/wp-postratings.php on line 1248

    any suggestion do you have it !

    Link to review designing and development portfolio post rating

    Grant Kimball

    (@yourlocalwebmaster)

    @devang.solanki

    Have you resolved this issue?

    Are you positive their are no white spaces in your code outside of the:

    <?php ?> tags?

    That’s what usually causes this error.

    Can I translate this text to my own language? I want to know if I can to give styles to this sentence.

    Thank you!

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Plugin: WP-PostRatings] Failed To Verify Referrer’ is closed to new replies.