Hi Sir i tried this code & get following errors if you please take a look at them and modify the code.
Notice: Trying to get property of non-object in /home/lyqan/public_html/index.php on line 2219
...
In my index.php code at line 2219
$countryCode = json_decode(file_get_contents('http://freegeoip.net/json/' . getIP()))->country_code;
This is due to Freegeoip being slow today. It does load, but your code probably times out the connection before the webpage returns something causing the error. You can do a check for it with this:
$countryCodeJson = file_get_contents('http://freegeoip.net/json/' . getIP());
if(!$countryCodeJson){
$rewardsMultiplier = 1;
}else{
$countryCode = $countryCodeJson->country_code;
}
It will set the rewards to the default if the Freegeoip fails.
Fatal error: Unsupported operand types in /home/lyqan/public_html/index.php on line 2240
...
& at line 2240
$rW *= $rewardMultiplier;
This one no one is really too sure about. Kazuldur tried to solve it
here but didn't have much of an idea.
Try this instead, just to make sure we're multiplying numbers:
if(ctype_digit($rw)){
$rW *= $rewardMultiplier;
}
Otherwise I don't have much of an idea.