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.



