Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2007
    Gijón, Asturias, Spain
    Plugin Contributions

    Default [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.


    ps. $spider_flag comes up with the same error on my front page but I posted before changing the title.
    Last edited by torvista; 5 May 2010 at 07:19 PM.

  2. #2
    Join Date
    Mar 2010
    Plugin Contributions

    Default Re: php error notice: $spider_flag, $robotsNoIndex undefined

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

  3. #3
    Join Date
    Jan 2004
    Blog Entries
    Plugin Contributions

    Default Re: php error 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.

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.



Similar Threads

  1. Replies: 8
    Last Post: 5 May 2016, 05:54 AM
  2. v155 adding constants - PHP Notice: Use of undefined constant
    By torvista in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 4 May 2016, 07:07 AM
  3. Notice: Use of undefined constant
    By infocom in forum General Questions
    Replies: 2
    Last Post: 22 Apr 2010, 08:35 PM
  4. Undefined Notice: Use of undefined constant
    By TheOracle in forum Bug Reports
    Replies: 0
    Last Post: 6 May 2007, 06:33 PM
  5. Replies: 3
    Last Post: 19 Sep 2006, 05:51 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Zen-Cart, Internet Selling Services, Klamath Falls, OR