Error in P202 Redirect page

by 7 replies
8
I got the following error in my offer.php page(Redrect). I am not sure if it is because of my host.

Code:
Notice: Undefined index: tracking202pci in offer.php on line 15

Warning: Cannot modify header information - headers already sent by (output started at offer.php:15) in offer.php on line 18
Plase help me to fix this issue.

The LP Code:

Code:
<!DOCTYPE html>
<html>
<head>
	<title>CPA Offer</title>
</head>
<body>
<p><a href="offer.php">Grab Your Free Stuff!</a></p>
<script language="JavaScript" type="text/javascript"> cbr202=Math.random()*10000000000000000;document.write('<scr'+'ipt language="JavaScript" src="http://www.domain.com/tracking202/static/landing.php?lpip=641&202cb='+cbr202+'" type="text/javascript"></scr' + 'ipt>'); </script>
</body>
</html>

My Offer.php code:

Code:
<?php
  
  // ------------------------------------------------------------------- 
  //
  // Tracking202 PHP Redirection, created on Sun Oct, 2013
  //
  // This PHP code is to be used for the following landing page.
  // http://www.domain.com/index.html
  //                       
  // -------------------------------------------------------------------
  
  if (isset($_COOKIE['tracking202outbound'])) {
	$tracking202outbound = $_COOKIE['tracking202outbound'];     
  } else {
	$tracking202outbound = 'http://www.domain.com/tracking202/redirect/lp.php?lpip=641&pci='.$_COOKIE['tracking202pci'];
  }
  
  header('location: '.$tracking202outbound);
  
?>
There is no white space after the closing php tag. I have also no idea what that notice is all about.

Thanks!
#ad networks (cpm/cpl, display) #error #p202 #page #redirect
  • Please help to find a way to fix this problem
    • [1] reply
    • Sounds like a hosting issue, this on a shared host?
      • [1] reply
  • [Resolved]. Just contacted my hosting provider and within an hour they fixed the issue. The problem was that I needed output buffering enabled in your php.ini file.
  • Ok, the error is gone now but P202 only records direct linking clicks. No clicks are being logged for landing pages.
  • Great, I could be able to find a fix for this issue. For those who are having the same issue, here is the work around:

    Open
    Code:
    /tracking202/static/landing.php
    Replace: (Line:4)
    Code:
    //$strProtocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
    With:
    Code:
    if ( isset( $_SERVER["HTTPS"] ) && strtolower( $_SERVER["HTTPS"] ) == "on" ) {
        $strProtocol = 'https';
    } else {
        $strProtocol = 'http';
    }
    Credit goes to:
    Undefined index error using $_SERVER['HTTPS']
  • You might be better off visiting the prosper202 website (Free PPC Affiliate Tracking Software | Tracking202) and seek assistance there, there are videos and tutorials to help and I believe they have a support section too

Next Topics on Trending Feed

  • 8

    I got the following error in my offer.php page(Redrect). I am not sure if it is because of my host. Code: Notice: Undefined index: tracking202pci in offer.php on line 15 Warning: Cannot modify header information - headers already sent by (output started at offer.php:15) in offer.php on line 18 Plase help me to fix this issue.