Referral url and ip address not working in affiliate_cliks

Description

In place of an IP address is 1.
Referral url did not show

Environment

None

Steps to reproduce

None

Activity

Show:
greg
November 28, 2013, 4:01 PM

fix

in affiliate_aplication_top.php

$affiliate_clientdate = (date ("Y-m-d H:i:s"));
$affiliate_clientbrowser = isset($_SERVER["HTTP_USER_AGENT"]);
$affiliate_clientip = isset($_SERVER["REMOTE_ADDR"]);
$affiliate_clientreferer = isset($_SERVER["HTTP_REFERER"]);

change to:

$affiliate_clientdate = (date ("Y-m-d H:i:s"));
$affiliate_clientbrowser = isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : null;
$affiliate_clientip = isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : null;
$affiliate_clientreferer = isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : null;

Giles Marshall
July 28, 2012, 6:23 PM

Can you post a screenshot of the page with the error? Thanks.

greg
July 21, 2012, 1:12 AM

in heading title is Affiliate/IP Address
And below is dusplayed name of the partner and instead of ip address is 1
the next column is Date/Refering URL
The date is displayed, but refering url not.
I'm not running on localhost. My shop is running more than a year.

Giles Marshall
July 20, 2012, 9:01 PM

More detail needed! - How do we repeat? Are you developing locally? What are your setting?

Assignee

Unassigned

Reporter

greg

Severity

Minor