Results 1 to 2 of 2
  1. #1
    Join Date
    May 2009
    Posts
    1
    Plugin Contributions
    0

    Default Problem with init_add_crumbs.php

    For some reason Google wasn't indexing my site. After doing some investigating, I found the cause was the following code block in the init_add_crumbs.php file:

    if ($categories->RecordCount() > 0) {
    $breadcrumb->add($categories->fields['categories_name'], zen_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1)))));
    } else {
    // if invalid, set the robots noindex/nofollow for this page
    $robotsNoIndex = true;
    break;
    }

    This was only happening for the front page of my store. Can anybody explain why the $robotsNoIndex = true; line is in there? I commented it out to fix the problem but it's obviously there for a reason. I would rather find the root cause of the problem and fix it.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Problem with init_add_crumbs.php

    Right ... It's a bug, reported and fixed here: http://www.zen-cart.com/forum/showth...927#post498927
    .

    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. v155 problem with admin/users.php and admin/profiles.php??
    By carlwhat in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 29 Mar 2016, 08:52 PM
  2. Having problem with order.php and checkout_process.php with OLD Zen Cart v1.2.3
    By wolfbane01 in forum Managing Customers and Orders
    Replies: 0
    Last Post: 28 Jul 2010, 01:56 AM
  3. Replies: 0
    Last Post: 8 Jul 2010, 05:27 PM
  4. Problem with configure.php
    By emilyg in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 26 Oct 2008, 04:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg