Home >
Other Systems (CPVLab, iMobiTrax, P202, Track Revenue, Click, Google Analytics, etc.) >
The STM Mobile Tracker
Notice: Undefined index: tracking202fwdlpip (5)
02-21-2015 09:56 AM
#1
prof (Member)
Notice: Undefined index: tracking202fwdlpip
Hey.
I wanted to give the STM Mobile Tracker another little run-out for something I'm doing at the moment.
Everything's been going good: The redirects seem super-fast direct linking. GeoIP, Model and ISP detection works fine. It definitely was looking like it would be fit for purpose...
... BUT! Whenever I use a landing page - the outgoing click which looks something like this:
Code:
http://domain.com/tracking202/redirect/lp.php?lpip=811&&subid=6&rotateid=0&t202id=2189
Goes to a PHP error like this.
Code:
Notice: Undefined index: tracking202fwdlpip in /srv/public/tracking202/redirect/lp.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /srv/public/tracking202/redirect/lp.php:11) in /srv/public/tracking202/redirect/lp.php on line 209
I haven't changed lp.php at all so I don't know why it's kicking up a stink and I've teste this on both PHP5.4 and PHP5.6 with no luck.
Anyone got any ideas?
02-21-2015 11:06 AM
#2
prof (Member)
Just been doing some reading around with regard to error reporting and from what I can understand these errors are "NOTICES" rather than critical errors that must be resolved.
So in light of that I've just managed to fix this -- or rather hack it so such errors doesn't display.
In php.ini I've set:
Code:
display_errors = no
This stops the error actually preventing any link/redirect from actually working and everything works as expected.
However - in the server php error logs I still see all the "Undefined index" errors.
I can have them ignored completely from the logs by also adding this to php.ini:
Code:
error_reporting = E_ALL & ~E_NOTICE
My understanding of this is that with this setting all errors will still be reported to my logs apart from NOTICES.
So yeah - I'm up and running it seems - although it would be useful if anyone with a sound knowledge of PHP could chime in and just advise as to whether I'm ok to truly just ignore the reasoning behind why I was seeing these errors in the first place and am ok to 'cover them up' so to speak without meeting future difficulties!
02-21-2015 11:10 AM
#3
craigm (Veteran Member)
try add ob_start(); to the start of lp.php
02-21-2015 11:57 AM
#4
bbrock32 (Administrator)
It's just a warning, nothing to be worried about.
Remove error reporting and you are good to go.
02-22-2015 07:19 AM
#5
prof (Member)
Will pretend I never saw it. 
Home >
Other Systems (CPVLab, iMobiTrax, P202, Track Revenue, Click, Google Analytics, etc.) >
The STM Mobile Tracker