WordPress.org

Support

Support » Plugins and Hacks » WP-PostRatings » [Plugin: WP-PostRatings] 2 Bugs – "Failed To Verify Referrer" & add_action is not defi

[Plugin: WP-PostRatings] 2 Bugs – "Failed To Verify Referrer" & add_action is not defi

  • Latest plugin update is broken. When you try to rate anything you get the following error

    “Failed To Verify Referrer”

    I’ve tried updating the JS file as noted here but get the same error

    http://forums.lesterchan.net/index.php/topic,5247.0.html

    Also note: I have had to add the following block of code to the top of the wp-postratings.php file, otherwise the plugin always says add_action is not defined.

    ### Load WP-Config File If This File Is Called Directly
    if (!function_exists(‘add_action’)) {
    $wp_root = ‘../../..’;
    if (file_exists($wp_root.’/wp-load.php’)) {
    require_once($wp_root.’/wp-load.php’);
    } else {
    require_once($wp_root.’/wp-config.php’);
    }
    }

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

  • The topic ‘[Plugin: WP-PostRatings] 2 Bugs – "Failed To Verify Referrer" & add_action is not defi’ is closed to new replies.
Skip to toolbar