Post
Topic
Board Micro Earnings
Re: FaucetBOX.com Discussion
by
minifrij
on 24/03/2016, 20:32:22 UTC
Hi Sir i tried this code & get following errors if you please take a look at them and modify the code.

Quote
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

Code:
$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:
Code:
$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.

Quote
Fatal error: Unsupported operand types in /home/lyqan/public_html/index.php on line 2240

...

& at line 2240

Code:
$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:
Code:
if(ctype_digit($rw)){
     $rW *= $rewardMultiplier;
}
Otherwise I don't have much of an idea.