• Hi,

    i using last version (1.9.6) of this plugin. Rating work’s before, but now, when i want to rate some content i get this error message:

    Cannot redeclare get_gdsr_wpload_path() (previously declared in [path]/wp-content/plugins/gd-star-rating/config.php:49) in <b>[path]/wp-content/plugins/gd-star-rating/config.php</b> on line <b>55</b>

    I dont know what to do or how fix this problem. I try previous version, which working before (1.9.5) and get same error message.

    Thank you for Response.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • You ever manage to get this solved?

    To fix it, I simply added a function_exists check to config.php

    if (!function_exists('get_gdsr_wpload_path'))
    {
    	function get_gdsr_wpload_path() {
    			if (STARRATING_WPLOAD == '') {
    					$d = 0;
    					while (!file_exists(str_repeat('../', $d).'wp-load.php'))
    							if (++$d > 16) exit;
    					return str_repeat('../', $d).'wp-load.php';
    			} else return STARRATING_WPLOAD;
    	}
    }

    Hope it helps someone!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: GD Star Rating] Problem with function get_gdsr_wpload_path()’ is closed to new replies.