protection
French 
CrawlTrack, webmaster dashboard.
Web analytic, SEO and protection

CrawlProtect, your website safety.
Reinforced protection

Two php/MySQL scripts, free and easy to install
The tools you need to manage and keep control of your site.





diable

CrawlTrack and CrawlProtect support forum

You are not logged in.


#1 28-05-2013 01:38:08

tora0515
Nouveau membre
Registered: 27-05-2013
Posts: 5

Undefined index errors after install

Hi all,

I need some help dealing with errors.

I am using opencart v1.5.5.1 and am getting repeated undefined index errors after installing crawltrack and crawlprotect:

2013-05-27 12:01:14 - PHP Notice:  Undefined index:  HTTP_USER_AGENT in /.../.../public_html/crawl/crawltrack.php on line 281
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  q in /.../.../public_html/crawl/crawltrack.php on line 559
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_q in /.../.../public_html/crawl/crawltrack.php on line 562
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_epq in /.../.../public_html/crawl/crawltrack.php on line 565
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_oq in /.../.../public_html/crawl/crawltrack.php on line 568
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_eq in /.../.../public_html/crawl/crawltrack.php on line 571
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_occt in /.../.../public_html/crawl/crawltrack.php on line 574

Have any of you had this issue before? What mistake could I have made that caused the issue?

Thanks

Offline

 

#2 28-05-2013 07:25:41

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2920

Re: Undefined index errors after install

Hi,

There is nothing really wrong, just apparently your server don't know the variable $_SERVER['HTTP_USER_AGENT'] and some visitors are coming from Google without keyword in the url.

I will see for the future release to avoid to have these notices in such case.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#3 28-05-2013 15:39:10

tora0515
Nouveau membre
Registered: 27-05-2013
Posts: 5

Re: Undefined index errors after install

Hi Jean-Denis,

Thanks for looking into it. The q, as_q, as_epq, as_oq, and  as_occt - are they similar errors? 2 or three times a day they repeat like this:

2013-05-27 13:51:22 - PHP Notice:  Undefined index:  q in /.../.../public_html/crawl/crawltrack.php on line 559
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_q in /.../.../public_html/crawl/crawltrack.php on line 562
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_epq in /.../.../public_html/crawl/crawltrack.php on line 565
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_oq in /.../.../public_html/crawl/crawltrack.php on line 568
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_eq in /.../.../public_html/crawl/crawltrack.php on line 571
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_occt in /.../.../public_html/crawl/crawltrack.php on line 574
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  q in /.../.../public_html/crawl/crawltrack.php on line 559
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_q in /.../.../public_html/crawl/crawltrack.php on line 562
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_epq in /.../.../public_html/crawl/crawltrack.php on line 565
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_oq in /.../.../public_html/crawl/crawltrack.php on line 568
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_eq in /.../.../public_html/crawl/crawltrack.php on line 571
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_occt in /.../.../public_html/crawl/crawltrack.php on line 574
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  q in /.../.../public_html/crawl/crawltrack.php on line 559
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_q in /.../.../public_html/crawl/crawltrack.php on line 562
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_epq in /.../.../public_html/crawl/crawltrack.php on line 565
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_oq in /.../.../public_html/crawl/crawltrack.php on line 568
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_eq in /.../.../public_html/crawl/crawltrack.php on line 571
2013-05-27 13:51:22 - PHP Notice:  Undefined index:  as_occt in /.../.../public_html/crawl/crawltrack.php on line 574

Are these similar to the http_user_agent error or a different problem?

Thank you

Offline

 

#4 28-05-2013 20:43:12

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2920

Re: Undefined index errors after install

Hi,

It's similar issue, the script is parsing the referrer url to find the keyword use when the visitor is coming from Google.
After parsing the script is looking for different variable name (q, as_q, .....) used by Google for the keyword.
In your case for some visitors it's look like there is no keyword in the url.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#5 29-05-2013 02:20:31

tora0515
Nouveau membre
Registered: 27-05-2013
Posts: 5

Re: Undefined index errors after install

Thanks for the explanation.

To get rid of the errors can I comment out lines 554 through 583 in crawltrack.php? Or will this cause other problems?

Offline

 

#6 29-05-2013 06:56:10

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2920

Re: Undefined index errors after install

Hi,

If you do that nothing will work anymore. These errors are only "notice", no problem to keep it as it is.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB