WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
Failed To Verify Referrer (19 posts)

  1. isolog
    Member
    Posted 1 year ago #

    Since 1.63, the plugin stopped working for me.

    After a user votes, he gets a warning 'Failed To Verify Referrer' instead of seeing the votes.

    Such a shame, used to be a great plugin until last week.

    The creator's recommendation (http://forums.lesterchan.net/index.php?topic=5247.0) does not help.

    I'm willing to pay $10 via PayPal to the person who knows how to fix this.

    Cheers

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

  2. villagora
    Member
    Posted 1 year ago #

    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

  3. isolog
    Member
    Posted 1 year ago #

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

  4. villagora
    Member
    Posted 1 year ago #

    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

  5. maxmint
    Member
    Posted 1 year ago #

    Can anyone link me to a download of version 1.62?

  6. villagora
    Member
    Posted 1 year ago #

    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

  7. lisster
    Member
    Posted 1 year ago #

    I have the same problem :/

  8. Grant Kimball
    Member
    Posted 1 year ago #

    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!

  9. Grant Kimball
    Member
    Posted 1 year ago #

    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 :)

  10. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

  11. Monika
    Member
    Posted 1 year ago #

    @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!

  12. Grant Kimball
    Member
    Posted 1 year ago #

    @Monika,Your welcome.
    &
    @Lester, thank you for an awesome plugin!

  13. villagora
    Member
    Posted 1 year ago #

    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

  14. devang.solanki
    Member
    Posted 1 year ago #

    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

  15. Grant Kimball
    Member
    Posted 1 year ago #

    @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.

  16. DanielGSanz
    Member
    Posted 12 months ago #

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

    Thank you!

  17. Grant Kimball
    Member
    Posted 12 months ago #

    @DanielG Sanz
    I'm not too sure that made much sense. What are you trying to accomplish? Styling the plugin? Or translating the plugin to your own language? Further more, by language do you mean programming? Or dialectal language?

  18. DanielGSanz
    Member
    Posted 12 months ago #

    I want to translate that sentence until we can solve this problem.

    I'm styling the plugin but I'm having some problems with the different texts. I don't know how to style it easily, I'm new in WP.

  19. Grant Kimball
    Member
    Posted 12 months ago #

    Download Firebug for Firefox, or any browser console reporting tool. Find out what the class/id/elements are, and style accordingly. You can even display:none !important; the error I'm sure..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.