WordPress.org

Forums

WP-PostRatings
[resolved] /rating_over. 404 error on webmaster tools (5 posts)

  1. lpccoder
    Member
    Posted 2 years ago #

    Hi again, I'm getting an 404 error on webmaster tools for /rating_over. page that seems is linked from wp-postratings plugin code.
    How can I avoid this?

    Note: my blog in installed under a folder called /blog not at the main site.

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

  2. lpccoder
    Member
    Posted 2 years ago #

    I think I found a solution, we need to change the following code:

    if($postratings_custom) {
    		for($i = 1; $i <= $postratings_max; $i++) {
    			$postratings_javascript .= 'var ratings_'.$i.'_mouseover_image=new Image();ratings_'.$i.'_mouseover_image.src=ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_'.$i.'_over."+ratingsL10n.image_ext;';
    		}
    	} else {
    		$postratings_javascript = 'var ratings_mouseover_image=new Image();ratings_mouseover_image.src=ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_over."+ratingsL10n.image_ext;';
    }

    by this one:

    if($postratings_custom) {
    		for($i = 1; $i <= $postratings_max; $i++) {
    			$postratings_javascript .= 'var ratings_'.$i.'_mouseover_image=new Image();ratings_'.$i.'_mouseover_image.src="'.plugins_url().'/wp-postratings/images/"+ratingsL10n.image+"/rating_'.$i.'_over."+ratingsL10n.image_ext;';
    		}
    	} else {
    		$postratings_javascript = 'var ratings_mouseover_image=new Image();ratings_mouseover_image.src="'.plugins_url().'/wp-postratings/images/"+ratingsL10n.image+"/rating_over."+ratingsL10n.image_ext;';
    	}
  3. lpccoder
    Member
    Posted 2 years ago #

    Please VERIFY it... and maybe release this on the next version.

  4. ChimpanzeeUK
    Member
    Posted 1 year ago #

    I'm getting the same issue on my site. Did this fix the problem for you?

  5. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic