Error in P202 Redirect page

by jcss
7 replies
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!
#error #p202 #page #redirect
  • Profile picture of the author jcss
    Please help to find a way to fix this problem
    {{ DiscussionBoard.errors[8603036].message }}
    • Profile picture of the author Cram
      Sounds like a hosting issue, this on a shared host?
      {{ DiscussionBoard.errors[8604000].message }}
      • Profile picture of the author jcss
        No it is on a dedicated server.
        {{ DiscussionBoard.errors[8604592].message }}
  • Profile picture of the author jcss
    [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.
    {{ DiscussionBoard.errors[8604779].message }}
  • Profile picture of the author jcss
    Ok, the error is gone now but P202 only records direct linking clicks. No clicks are being logged for landing pages.
    {{ DiscussionBoard.errors[8604908].message }}
  • Profile picture of the author jcss
    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']
    {{ DiscussionBoard.errors[8605248].message }}
  • Profile picture of the author ChrisBa
    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
    {{ DiscussionBoard.errors[8606003].message }}

Trending Topics