New Zenner
- Join Date:
- Aug 2009
- Location:
- Greeneville, TN USA
- Posts:
- 55
- Plugin Contributions:
- 0
[bug in addon template] noindex, nofollow on all pages
I've found an error in html_header.php in multiple installations.
I have ZC installed on three sites. Since they are all v1.3.8a, with the security patch, I'm not sure exactly when this would have come in. They are all recent installs from separate hosting company's "fantastico" script installers. The oldest was installed around June, the latest a few days ago, and it was described as v1.3.8a on the install screen.
The problem is NOT in the zen-cart-v1.3.8a-full-fileset-12112007.zip file I recently downloaded for reference, so I guess this would count as "fixed", but I suspect I'm not the only one with this issue.
Portions of the code controlling ROBOTS_PAGES_TO_SKIP have been commented out, it looks like a debugging thing. It should read...
<?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance') { ?>
<meta name="robots" content="noindex, nofollow" />
<?php } ?>
Instead it reads...
<?php //if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance') { ?>
<meta name="robots" content="noindex, nofollow" />
<?php //} ?>
This, of course, would have the effect of putting noindex, nofollow on all your pages.