Zen Cart Logo
Forums / Bug Reports / [Not a bug] php notice: $spider_flag, $robotsNoIndex undefined

[Not a bug] php notice: $spider_flag, $robotsNoIndex undefined

Locked

Views: 1,254

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
5 May 2010, 6:13 PM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

[Not a bug] php notice: $spider_flag, $robotsNoIndex undefined

While upgrading I have been using error_reporting(-1) which has been useful in showing up quite a few errors on my part which would otherwise gone unnoticed.

There are also lots of notices of evidently minor importance but as always I am interested to know more.

For example:

[05-May-2010 21:22:58] PHP Notice:  Undefined variable: robotsNoIndex in ..\includes\templates\template_default\common\html_header.php on line 31

But $robotsNoIndex IS defined in init_add_crumbs.php

This debug error is generated by a refresh of the front page, stock 139b.

Thanks
Steve

ps. $spider_flag comes up with the same error on my front page but I posted before changing the title.

5 May 2010, 6:18 PM
#2
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: [Not a bug] php notice: $spider_flag, $robotsNoIndex undefined

Is it that is being used before it has been defined?

5 May 2010, 8:58 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Not a bug] php notice: $spider_flag, $robotsNoIndex undefined

That's a trivial matter that's got no negative side-effects.
It is fixed in v2.0 by virtue of reconstruction.