It came to my notice, that the flux Control panel returns 'proxy is not allowed' every time, with anyone. I tried to disable the proxy check(changing it from true to false), but it still didn't work. Afterwards I tried to alter the code, simply commenting the part which does the IP check, that works, but I rather have the IP check .
Same thing happens for the donation thing, when people donate, and return to the website, they get a blank page and the donation is not processed (had to do it manually). Does anyone have experience with this issue? this started about a few weeks ago.
Solved the donation issue
cheers!
jeroen
edit:
Error log, returns the following:
[22-Oct-2012 19:57:56 UTC] PHP Notice: Undefined offset: 0 in /home/notanot1/public_html/addons/Voteforpoints/modules/voteforpoints/index.php on line 44
[22-Oct-2012 19:57:56 UTC] PHP Notice: Trying to get property of non-object in /home/notanot1/public_html/addons/Voteforpoints/modules/voteforpoints/index.php on line 44
if($ip_address!=0)
{
$sql = "SELECT `rtid`,`unblock_time`,`ip_address` FROM {$serverLogDB}.{$vp_logs} WHERE f_site_id=? AND unblock_time>? AND ip_address=? ORDER BY unblock_time ASC LIMIT 1";
Question
Ajjwidjdneidjenw
Hello everyone!
It came to my notice, that the flux Control panel returns 'proxy is not allowed' every time, with anyone. I tried to disable the proxy check(changing it from true to false), but it still didn't work. Afterwards I tried to alter the code, simply commenting the part which does the IP check, that works, but I rather have the IP check
.
Same thing happens for the donation thing, when people donate, and return to the website, they get a blank page and the donation is not processed (had to do it manually). Does anyone have experience with this issue? this started about a few weeks ago.
Solved the donation issue
cheers!
jeroen
edit:
Error log, returns the following:
[22-Oct-2012 19:57:56 UTC] PHP Notice: Undefined offset: 0 in /home/notanot1/public_html/addons/Voteforpoints/modules/voteforpoints/index.php on line 44
[22-Oct-2012 19:57:56 UTC] PHP Notice: Trying to get property of non-object in /home/notanot1/public_html/addons/Voteforpoints/modules/voteforpoints/index.php on line 44
if($ip_address!=0)
{
$sql = "SELECT `rtid`,`unblock_time`,`ip_address` FROM {$serverLogDB}.{$vp_logs} WHERE f_site_id=? AND unblock_time>? AND ip_address=? ORDER BY unblock_time ASC LIMIT 1";
$sth = $serverObj->getStatement($sql);
$sth->execute(array($site_id,$current_time,$ip_address));
$ip_check = $sth->fetchAll();
$diff_time = strtotime($ip_check[0]->unblock_time)-strtotime(date("Y-m-d G:i:s",time())); < Line 44
if(!empty($ip_check))
return strtotime($ip_check[0]->unblock_time);
}
Edited by garet999Link to comment
Share on other sites
5 answers to this question
Recommended Posts