Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

First I would like to thank the members of this forum. When troubleshooting my OSc store i have looked here and found many answers. I am having some trouble with this addon. When I click a category in my site www.midnightplatoon.com, the left column which contains the categories drops to the bottom of the page. if i click on a shirt on the home page, the column stay in its original location. Only happened after installing this addon. Any help guys. Thank you very much.

That happens when one of the changes, probably the social bookmarks in your case, doesn't fit the code design of your shop. You need to determine the code causing the problem and then figure out how to change it so the format doesn't change.

Share this post


Link to post
Share on other sites

Hi Jack,

 

This is in reference to the posts which I did earlier in this thread..

 

http://forums.oscommerce.com/topic/298099-header-tags-seo/page__st__5620__p__1588495#entry1588495

http://forums.oscommerce.com/topic/298099-header-tags-seo/page__st__5640__p__1588936#entry1588936

 

As you mentioned, I upgraded the version to HeaderTags_SEO_V_3.2.6 on the Test subdomain at http://test.sexmedicinonline.com

 

The problem is that the title tags still do not appear on the pages for the different languages. All the Title Tags and Meta Tags are dumped into the Database (in products_description > products_head_title_tag), which I checked, but they only display for the english version on the pages.

 

http://test.sexmedicinonline.com/cialis-tabs-p-1.html?language=en (This one shows Cialis English as the Title) but if you check the other language pages, they come up empty.

 

Please help, I dont understand why the titles are not visible on the pages, but they are in the DB.

 

Thanks

Share this post


Link to post
Share on other sites

As you mentioned, I upgraded the version to HeaderTags_SEO_V_3.2.6 on the Test subdomain at http://test.sexmedicinonline.com

 

The problem is that the title tags still do not appear on the pages for the different languages. All the Title Tags and Meta Tags are dumped into the Database (in products_description > products_head_title_tag), which I checked, but they only display for the english version on the pages.

 

 

Please help, I dont understand why the titles are not visible on the pages, but they are in the DB.

 

Thanks

If you used the manual database script, the languages were probably not setup correctly. If you can't uninstall/install the database now using those files, then try running the test routine and see if it offers a way to correct it.

Share this post


Link to post
Share on other sites

Hi Jack,

I am PHP/Oscommerce beginner, so please excuse me in advance for any trivial question.

 

I had installed OScommerce 2.31 and I am actually installing Header Tags SEO v3.2.6.

 

 

I did step zero (used headertags_seo_install.php) without problem but when I go to modify the includes/template_top.php file, I cant find the lines as these are in the instructions.

 

My template_top.php file has the following:

 

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />

<title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title>

 

But the install instructions suppose I have to find:

 

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

 

Can you please explain why it happens and what can I do?

 

Thanks a lot.

 

Edo.

Share this post


Link to post
Share on other sites

That happens when one of the changes, probably the social bookmarks in your case, doesn't fit the code design of your shop. You need to determine the code causing the problem and then figure out how to change it so the format doesn't change.

hmmmm i kinda new at this. should i check/edit/delete the social bookmark php that was with the file? I also disabled the display social book mark option. Dont understand why it still messes up even when its disabled

Share this post


Link to post
Share on other sites

Hi Jack,

I am PHP/Oscommerce beginner, so please excuse me in advance for any trivial question.

 

I had installed OScommerce 2.31 and I am actually installing Header Tags SEO v3.2.6.

 

 

I did step zero (used headertags_seo_install.php) without problem but when I go to modify the includes/template_top.php file, I cant find the lines as these are in the instructions.

 

My template_top.php file has the following:

 

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />

<title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title>

 

But the install instructions suppose I have to find:

 

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

 

Can you please explain why it happens and what can I do?

 

Thanks a lot.

 

Edo.

Thank you for mentioning the versions - it saves us both time and trouble. The instructions are incorrect for that change (they will be corrected in the next version) so you can replace the two lines in your file with the new code.

Share this post


Link to post
Share on other sites

hmmmm i kinda new at this. should i check/edit/delete the social bookmark php that was with the file? I also disabled the display social book mark option. Dont understand why it still messes up even when its disabled

I was just guessing that that was the problem. it may not be. The best thing to do is to replace the file causing the problem with the original one and then make changes to it one at a time until you see the problem. You could also use the included file to be sure you are in the right file and to ensure it works.

Share this post


Link to post
Share on other sites
If you used the manual database script, the languages were probably not setup correctly. If you can't uninstall/install the database now using those files, then try running the test routine and see if it offers a way to correct it.
Hi Jack, I tried to uninstall it using headertags_seo_uninstall.php file but I got the following error:

<div>

Warning: require(includes/column_left.php) [function.require]: failed to open stream: No such file or directory in /home/sexmedic/public_html/test/headertags_seo_uninstall.php on line 66

 

Warning: require(includes/column_left.php) [function.require]: failed to open stream: No such file or directory in /home/sexmedic/public_html/test/headertags_seo_uninstall.php on line 66

 

Fatal error: require() [function.require]: Failed opening required 'includes/column_left.php'

(include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sexmedic/public_html/test/headertags_seo_uninstall.php on line 66

</div> Edited by rosiee007

Share this post


Link to post
Share on other sites

Jack!! Its working now.. Although it gave me an error when I uninstalled the plugin, I reinstalled it using headertags_seo_install.php and edited the Title tags for the products, and its working now for all the languages smile.png

 

http://test.sexmedic...tml?language=no

 

Thank you so much for your help!

You're welcome. For others that may have the same problem and see that error, it is just because the file it mentions can't be found due to the uninstall file using an older oscommerce layout and isn't anything to worry about.

Share this post


Link to post
Share on other sites

Hi Jack, first of all, thanks for you last answer.

 

I went a head and just I completed the instalation without problems, but now when I go to admin->Header Tags SEO->Fill Tags

 

(http://www.ippartner.cl/sd/admin/header_tags_fill_tags.php)

 

and when I run it, after some minutes I receive the following error message and no tags are filled:

 

 

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@ippartner.cl and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

I had installed and working fine SEO Url 5.0 PRO before to install Header Tags SEO. It is in standar mode.

 

Please tell me, what would be good things to review for a troubleshooting?

 

Thanks a lot.

Edo.

Share this post


Link to post
Share on other sites

Hi Jack, first of all, thanks for you last answer.

 

I went a head and just I completed the instalation without problems, but now when I go to admin->Header Tags SEO->Fill Tags

 

(http://www.ippartner...s_fill_tags.php)

 

and when I run it, after some minutes I receive the following error message and no tags are filled:

 

 

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@ippartner.cl and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

I had installed and working fine SEO Url 5.0 PRO before to install Header Tags SEO. It is in standar mode.

 

Please tell me, what would be good things to review for a troubleshooting?

 

Thanks a lot.

Edo.

That can happen if you have a large number of products. Try running fill tags but with just once section at a time, like categories.

Share this post


Link to post
Share on other sites

Hi Jack, after a lot of work and solved the problem:-), I really never knew where those were because I did the instalation for header tags fill tags.php and categories.php completelly new. Anyway, actually my instalation of HTSEO is better but I have a new error message :-(.

 

Failed to load page from shop: http://www.ippartner.cl/sd/product_info.php?products_id=177&language=es

 

Any idea?

Thanks.

Share this post


Link to post
Share on other sites

Hello! Pretty neat contribution, I have been enjoying it :D

 

The other day, I tried adding some sitemap contributions and backed out of them. Well, I messed something up.

 

Just entering admin->header tags seo->page control makes my site crash and display:

Parse error: syntax error, unexpected T_CLASS in /home3/awesomev/public_html/includes/header_tags.php on line 394

 

Any help would be appreciated. I copy an old file /includes/header_tags.php to keep store up and running for now. I dunno what to do.

 

Weirdest thing, it seems to replace header_tags.php when you enter header tags seo.

 

I included the file, use your search feature (f3? ctrl-f? and look for line 394)

 

Again, any help is great. :D

 

Thx,

NetEffect (Jack, too!)

 

 

 

<?php

/*

$Id: header_tags_seo.php,v 3.0 2008/01/10 by Jack_mcs - http://www.oscommerce-solution.com

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

Portions Copyright 2009 oscommerce-solution.com

 

Released under the GNU General Public License

*/

 

require_once(DIR_WS_FUNCTIONS . 'header_tags.php');

require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); // Clean out HTML comments from ALT tags etc.

 

$cache_output = '';

$canonical_url = '';

$header_tags_array = array();

$sortOrder = array();

$tmpTags = array();

 

$defaultTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS_DEFAULT . " where language_id = '" . (int)$languages_id . "'");

$defaultTags = tep_db_fetch_array($defaultTags_query);

$tmpTags['def_title'] = (tep_not_null($defaultTags['default_title'])) ? $defaultTags['default_title'] : '';

$tmpTags['def_desc'] = (tep_not_null($defaultTags['default_description'])) ? $defaultTags['default_description'] : '';

$tmpTags['def_keywords'] = (tep_not_null($defaultTags['default_keywords'])) ? $defaultTags['default_keywords'] : '';

$tmpTags['def_logo_text'] = (tep_not_null($defaultTags['default_logo_text'])) ? $defaultTags['default_logo_text'] : '';

 

// Define specific settings per page:

switch (true) {

// INDEX.PHP

case (basename($_SERVER['PHP_SELF']) === FILENAME_DEFAULT):

$id = ($current_category_id ? 'c_' . (int)$current_category_id : (($_GET['manufacturers_id'] ? 'm_' . (int)$_GET['manufacturers_id'] : '')));

 

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, $id))

{

$pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . FILENAME_DEFAULT . "' and language_id = '" . (int)$languages_id . "'");

$pageTags = tep_db_fetch_array($pageTags_query);

 

$catStr = "select categories_htc_title_tag as htc_title_tag, categories_htc_desc_tag as htc_desc_tag, categories_htc_keywords_tag as htc_keywords_tag from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' and language_id = '" . (int)$languages_id . "' limit 1";

$manStr = '';

if (isset($_GET['manufacturers_id']) && $category_depth == 'top')

$manStr = "select mi.manufacturers_htc_title_tag as htc_title_tag, mi.manufacturers_htc_desc_tag as htc_desc_tag, mi.manufacturers_htc_keywords_tag as htc_keywords_tag from " . TABLE_MANUFACTURERS . " m LEFT JOIN " . TABLE_MANUFACTURERS_INFO . " mi on m.manufacturers_id = mi.manufacturers_id where m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' and mi.languages_id = '" . (int)$languages_id . "' limit 1";

 

if ($pageTags['append_root'] || $category_depth == 'top' && ! isset($_GET['manufacturers_id']) )

{

$sortOrder['title'][$pageTags['sortorder_root']] = $pageTags['page_title'];

$sortOrder['description'][$pageTags['sortorder_root']] = $pageTags['page_description'];

$sortOrder['keywords'][$pageTags['sortorder_root']] = $pageTags['page_keywords'];

$sortOrder['logo'][$pageTags['sortorder_root']] = $pageTags['page_logo'];

$sortOrder['logo_1'][$pageTags['sortorder_root_1']] = $pageTags['page_logo_1'];

$sortOrder['logo_2'][$pageTags['sortorder_root_2']] = $pageTags['page_logo_2'];

$sortOrder['logo_3'][$pageTags['sortorder_root_3']] = $pageTags['page_logo_3'];

$sortOrder['logo_4'][$pageTags['sortorder_root_4']] = $pageTags['page_logo_4'];

}

 

$sortOrder = GetCategoryAndManufacturer($sortOrder, $pageTags, $defaultTags, $catStr, $manStr);

 

if ($pageTags['append_default_title'] && tep_not_null($tmpTags['def_title'])) $sortOrder['title'][$pageTags['sortorder_title']] = $tmpTags['def_title'];

if ($pageTags['append_default_description'] && tep_not_null($tmpTags['def_desc'])) $sortOrder['description'][$pageTags['sortorder_description']] = $tmpTags['def_desc'];

if ($pageTags['append_default_keywords'] && tep_not_null($tmpTags['def_keywords'])) $sortOrder['keywords'][$pageTags['sortorder_keywords']] = $tmpTags['def_keywords'];

if ($pageTags['append_default_logo'] && tep_not_null($tmpTags['def_logo_text'])) $sortOrder['logo'][$pageTags['sortorder_logo']] = $tmpTags['def_logo_text'];

 

FillHeaderTagsArray($header_tags_array, $sortOrder);

 

// Canonical URL add-on

if (tep_not_null($cPath) || (isset($_GET['manufacturers_id']) && $category_depth == 'top'))

{

$args = tep_get_all_get_params(array('action','currency', tep_session_name(),'sort','page'));

$canonical_url = StripSID(tep_href_link(FILENAME_DEFAULT, $args, 'NONSSL', false) );

}

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, $id);

}

break;

 

// PRODUCT_INFO.PHP

// PRODUCT_REVIEWS.PHP

// PRODUCT_REVIEWS_INFO.PHP

// PRODUCT_REVIEWS_WRITE.PHP

case (basename($_SERVER['PHP_SELF']) === FILENAME_PRODUCT_INFO):

case (basename($_SERVER['PHP_SELF']) === FILENAME_PRODUCT_REVIEWS):

case (basename($_SERVER['PHP_SELF']) === FILENAME_PRODUCT_REVIEWS_INFO):

case (basename($_SERVER['PHP_SELF']) === FILENAME_PRODUCT_REVIEWS_WRITE):

 

switch (true)

{

case (basename($_SERVER['PHP_SELF']) === FILENAME_PRODUCT_INFO): $filename = FILENAME_PRODUCT_INFO; break;

case (basename($_SERVER['PHP_SELF']) === FILENAME_PRODUCT_REVIEWS): $filename = FILENAME_PRODUCT_REVIEWS; break;

case (basename($_SERVER['PHP_SELF']) === FILENAME_PRODUCT_REVIEWS_INFO): $filename = FILENAME_PRODUCT_REVIEWS_INFO; break;

case (basename($_SERVER['PHP_SELF']) === FILENAME_PRODUCT_REVIEWS_WRITE): $filename = FILENAME_PRODUCT_REVIEWS_WRITE; break;

default: $filename = FILENAME_PRODUCT_INFO;

}

 

$id = ($_GET['products_id'] ? 'p_' . (int)$_GET['products_id'] : '');

 

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, $id))

{

$pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . $filename . "' and language_id = '" . (int)$languages_id . "'");

$pageTags = tep_db_fetch_array($pageTags_query);

 

$the_product_info_query = tep_db_query("select p.products_id, pd.products_head_title_tag, pd.products_head_keywords_tag, pd.products_head_desc_tag, p.manufacturers_id, p.products_model from " . TABLE_PRODUCTS . " p inner join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_id = '" . (int)$_GET['products_id'] . "' and pd.language_id ='" . (int)$languages_id . "' limit 1");

$the_product_info = tep_db_fetch_array($the_product_info_query);

$header_tags_array['product'] = $the_product_info['products_head_title_tag']; //save for use on the logo

$tmpTags['prod_title'] = (tep_not_null($the_product_info['products_head_title_tag'])) ? $the_product_info['products_head_title_tag'] : '';

$tmpTags['prod_desc'] = (tep_not_null($the_product_info['products_head_desc_tag'])) ? $the_product_info['products_head_desc_tag'] : '';

$tmpTags['prod_keywords'] = (tep_not_null($the_product_info['products_head_keywords_tag'])) ? $the_product_info['products_head_keywords_tag'] : '';

$tmpTags['prod_model'] = (tep_not_null($the_product_info['products_model'])) ? $the_product_info['products_model'] : '';

 

$catStr = "select c.categories_htc_title_tag as htc_title_tag, c.categories_htc_desc_tag as htc_desc_tag, c.categories_htc_keywords_tag as htc_keywords_tag from " . TABLE_CATEGORIES_DESCRIPTION . " c, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where c.categories_id = p2c.categories_id and p2c.products_id = '" . (int)$the_product_info['products_id'] . "' and language_id = '" . (int)$languages_id . "'";

$manStr = "select mi.manufacturers_htc_title_tag as htc_title_tag, mi.manufacturers_htc_desc_tag as htc_desc_tag, mi.manufacturers_htc_keywords_tag as htc_keywords_tag from " . TABLE_MANUFACTURERS . " m LEFT JOIN " . TABLE_MANUFACTURERS_INFO . " mi on m.manufacturers_id = mi.manufacturers_id where m.manufacturers_id = '" . (int)$the_product_info['manufacturers_id'] . "' and mi.languages_id = '" . (int)$languages_id . "' LIMIT 1";

 

if ($pageTags['append_root'])

{

$sortOrder['title'][$pageTags['sortorder_root']] = $pageTags['page_title'];

$sortOrder['description'][$pageTags['sortorder_root']] = $pageTags['page_description'];

$sortOrder['keywords'][$pageTags['sortorder_root']] = $pageTags['page_keywords'];

$sortOrder['logo'][$pageTags['sortorder_root']] = $pageTags['page_logo'];

$sortOrder['logo_1'][$pageTags['sortorder_root_1']] = $pageTags['page_logo_1'];

$sortOrder['logo_2'][$pageTags['sortorder_root_2']] = $pageTags['page_logo_2'];

$sortOrder['logo_3'][$pageTags['sortorder_root_3']] = $pageTags['page_logo_3'];

$sortOrder['logo_4'][$pageTags['sortorder_root_4']] = $pageTags['page_logo_4'];

}

 

if ($pageTags['append_product'])

{

$sortOrder['title'][$pageTags['sortorder_product']] = $tmpTags['prod_title']; //places the product title at the end of the list

$sortOrder['description'][$pageTags['sortorder_product']] = $tmpTags['prod_desc'];

$sortOrder['keywords'][$pageTags['sortorder_product']] = $tmpTags['prod_keywords'];

$sortOrder['logo'][$pageTags['sortorder_product']] = $tmpTags['prod_title'];

}

 

if ($pageTags['append_model'])

{

$sortOrder['title'][$pageTags['sortorder_model']] = $tmpTags['prod_model']; //places the product title at the end of the list

$sortOrder['description'][$pageTags['sortorder_model']] = $tmpTags['prod_model'];

$sortOrder['keywords'][$pageTags['sortorder_model']] = $tmpTags['prod_model'];

$sortOrder['logo'][$pageTags['sortorder_model']] = $tmpTags['prod_model'];

}

 

$sortOrder = GetCategoryAndManufacturer($sortOrder, $pageTags, $defaultTags, $catStr, $manStr, true);

 

if ($pageTags['append_default_title'] && tep_not_null($tmpTags['def_title'])) $sortOrder['title'][$pageTags['sortorder_title']] = $tmpTags['def_title'];

if ($pageTags['append_default_description'] && tep_not_null($tmpTags['def_desc'])) $sortOrder['description'][$pageTags['sortorder_description']] = $tmpTags['def_desc'];

if ($pageTags['append_default_keywords'] && tep_not_null($tmpTags['def_keywords'])) $sortOrder['keywords'][$pageTags['sortorder_keywords']] = $tmpTags['def_keywords'];

if ($pageTags['append_default_logo'] && tep_not_null($tmpTags['def_logo_text'])) $sortOrder['logo'][$pageTags['sortorder_logo']] = $tmpTags['def_logo_text'];

 

FillHeaderTagsArray($header_tags_array, $sortOrder);

 

// Canonical URL add-on

if ($_GET['products_id'] != '') {

$canonical_url = StripSID(tep_href_link(basename($_SERVER['PHP_SELF']), 'products_id='.(int)$_GET['products_id']));

}

 

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, $id);

}

break;

 

// SPECIALS.PHP

case (basename($_SERVER['PHP_SELF']) === FILENAME_SPECIALS):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, ''))

{

$pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . FILENAME_SPECIALS . "' and language_id = '" . (int)$languages_id . "'");

$pageTags = tep_db_fetch_array($pageTags_query);

 

// Build a list of ALL specials product names to put in keywords

$new = tep_db_query("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and s.status = '1' order by s.specials_date_added DESC ");

$row = 0;

$the_specials='';

while ($new_values = tep_db_fetch_array($new)) {

$the_specials .= clean_html_comments($new_values['products_name']) . ', ';

}

 

if (strlen($the_specials) > 30000) //arbitrary number - may vary with server setting

$the_specials = substr($the_specials, 0, 30000); //adjust as needed

 

if ($pageTags['append_root'])

{

$sortOrder['title'][$pageTags['sortorder_root']] = $pageTags['page_title'];

$sortOrder['description'][$pageTags['sortorder_root']] = $pageTags['page_description'];

$sortOrder['keywords'][$pageTags['sortorder_root']] = $pageTags['page_keywords'];

$sortOrder['logo'][$pageTags['sortorder_root']] = $pageTags['page_logo'];

$sortOrder['logo_1'][$pageTags['sortorder_root']] = $pageTags['page_logo_1'];

$sortOrder['logo_2'][$pageTags['sortorder_root']] = $pageTags['page_logo_2'];

$sortOrder['logo_3'][$pageTags['sortorder_root']] = $pageTags['page_logo_3'];

$sortOrder['logo_4'][$pageTags['sortorder_root']] = $pageTags['page_logo_4'];

}

 

$sortOrder['keywords'][10] = $the_specials;;

 

if ($pageTags['append_default_title'] && tep_not_null($tmpTags['def_title'])) $sortOrder['title'][$pageTags['sortorder_title']] = $tmpTags['def_title'];

if ($pageTags['append_default_description'] && tep_not_null($tmpTags['def_desc'])) $sortOrder['description'][$pageTags['sortorder_description']] = $tmpTags['def_desc'];

if ($pageTags['append_default_keywords'] && tep_not_null($tmpTags['def_keywords'])) $sortOrder['keywords'][$pageTags['sortorder_keywords']] = $tmpTags['def_keywords'];

if ($pageTags['append_default_logo'] && tep_not_null($tmpTags['def_logo_text'])) $sortOrder['logo'][$pageTags['sortorder_logo']] = $tmpTags['def_logo_text'];

 

FillHeaderTagsArray($header_tags_array, $sortOrder);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// conditions.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_CONDITIONS):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_CONDITIONS);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// privacy.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_PRIVACY):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_PRIVACY);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// contact_us.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_CONTACT_US):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_CONTACT_US);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// download.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_DOWNLOAD):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_DOWNLOAD);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// 500.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_500):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_500);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// shipping.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_SHIPPING):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_SHIPPING);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// bridge.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_BRIDGE):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_BRIDGE);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// advanced_search_result.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_ADVANCED_SEARCH_RESULT):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_ADVANCED_SEARCH_RESULT);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// popup_image.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_POPUP_IMAGE):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_POPUP_IMAGE);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// opensearch.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_OPENSEARCH):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_OPENSEARCH);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// shopping_cart.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_SHOPPING_CART):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_SHOPPING_CART);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// cookie_usage.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_COOKIE_USAGE):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_COOKIE_USAGE);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// tell_a_friend.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_TELL_A_FRIEND):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_TELL_A_FRIEND);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// redirect.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_REDIRECT):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_REDIRECT);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// info_shopping_cart.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_INFO_SHOPPING_CART):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_INFO_SHOPPING_CART);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// products_new.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_PRODUCTS_NEW):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_PRODUCTS_NEW);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// reviews.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_REVIEWS):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_REVIEWS);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// advanced_search.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_ADVANCED_SEARCH):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_ADVANCED_SEARCH);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// pm2checkout_process.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_PM2CHECKOUT_PROCESS):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_PM2CHECKOUT_PROCESS);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// phptest.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_PHPTEST):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_PHPTEST);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// googlebase.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_GOOGLEBASE):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_GOOGLEBASE);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// jw_checkout_shipping.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_JW_CHECKOUT_SHIPPING):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_JW_CHECKOUT_SHIPPING);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// popup_shipping.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_POPUP_SHIPPING):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_POPUP_SHIPPING);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// sitemaps.index.php

case (basename($_SERVER['PHP_SELF']) === FILENAME_SITEMAPS.INDEX):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_SITEMAPS.INDEX);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// sitemap.class.php (line 394 is the next line) :)

case (basename($_SERVER['PHP_SELF']) === FILENAME_SITEMAP.CLASS):

if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '')) {

$header_tags_array = tep_header_tag_page(FILENAME_SITEMAP.CLASS);

WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, '');

}

break;

 

// ALL OTHER PAGES NOT DEFINED ABOVE

default:

$header_tags_array['title'] = tep_db_prepare_input($defaultTags['default_title']);

$header_tags_array['desc'] = tep_db_prepare_input($defaultTags['default_description']);

$header_tags_array['keywords'] = tep_db_prepare_input($defaultTags['default_keywords']);

break;

}

 

echo ' <meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '" />'."\n";

if (strrpos( basename($_SERVER['PHP_SELF']), 'review')) {

$header_tags_array['title'] .= ' - Product Review';

$header_tags_array['desc'] .= ' - Product Review';

}

 

 

echo ' <title>' . $header_tags_array['title'] . '</title>' . "\n";

echo ' <meta name="Description" content="' . $header_tags_array['desc'] . '" />' . "\n";

echo ' <meta name="Keywords" content="' . $header_tags_array['keywords'] . '" />' . "\n";

 

if ($defaultTags['meta_language']) { $langName = explode(",", $_SERVER["HTTP_ACCEPT_LANGUAGE"]); echo ' <meta http-equiv="Content-Language" content="' . $langName[0] . '" />'."\n"; }

if ($defaultTags['meta_google']) echo ' <meta name="googlebot" content="all" />' . "\n";

if ($defaultTags['meta_noodp']) echo ' <meta name="robots" content="noodp" />' . "\n";

if ($defaultTags['meta_noydir']) echo ' <meta name="slurp" content="noydir" />' . "\n";

if ($defaultTags['meta_revisit']) echo ' <meta name="revisit-after" content="1 days" />' . "\n";

if ($defaultTags['meta_robots']) echo ' <meta name="robots" content="index, follow" />' . "\n";

if ($defaultTags['meta_unspam']) echo ' <meta name="no-email-collection" value="' . HTTP_SERVER . '" />' . "\n";

if ($defaultTags['meta_replyto']) echo ' <meta name="Reply-to" content="' . STORE_OWNER_EMAIL_ADDRESS . '"/>' . "\n";

if ($defaultTags['meta_canonical']) echo (tep_not_null($canonical_url) ? ' <link rel="canonical" href="'.$canonical_url.'" />'. "\n" : ' <link rel="canonical" href="'.GetCanonicalURL().'" />'. "\n");

 

echo '<!-- EOF: Header Tags SEO Generated Meta Tags -->' . "\n";

?>

Share this post


Link to post
Share on other sites

Hi Jack, after a lot of work and solved the problem:-), I really never knew where those were because I did the instalation for header tags fill tags.php and categories.php completelly new. Anyway, actually my instalation of HTSEO is better but I have a new error message whistling.gif(.

 

Failed to load page from shop: http://www.ippartner...177&language=es

 

Any idea?

Thanks.

The url you posted is invalid so I can't comment on it other than to say it is for a Spanish page and the contribution doesn't have changes for that language so maybe you missed those steps.

Share this post


Link to post
Share on other sites

Hello! Pretty neat contribution, I have been enjoying it biggrin.png

 

The other day, I tried adding some sitemap contributions and backed out of them. Well, I messed something up.

 

Just entering admin->header tags seo->page control makes my site crash and display:

Parse error: syntax error, unexpected T_CLASS in /home3/awesomev/public_html/includes/header_tags.php on line 394

 

Any help would be appreciated. I copy an old file /includes/header_tags.php to keep store up and running for now. I dunno what to do.

Please don't post code unless it is asked for or if it a few specific lines. It just clutters of the thread and I normally won't look at it anyway. That's because a completed file is included with the contribution so you can easily compare it with a program like WinMerge to find the problem.

Share this post


Link to post
Share on other sites

I am new to osCommerce and to web business. I have tried loading the installation files, and when I go to my Admin page and go to the Header Tags SEO sections, I get the following error

 

Warning: call_user_func(header_tags_reset_cache) [function.call-user-func]: First argument is expected to be a valid callback in /home/content/32/8080232/html/oscommerce/catalog/admin/includes/functions/general.php on line 1277

 

I also do not have any of the links referred to in the troubleshooting section of the documents, i.e. Test.

 

Any help would be appreciated. Thanks

Share this post


Link to post
Share on other sites

I am new to osCommerce and to web business. I have tried loading the installation files, and when I go to my Admin page and go to the Header Tags SEO sections, I get the following error

 

Warning: call_user_func(header_tags_reset_cache) [function.call-user-func]: First argument is expected to be a valid callback in /home/content/32/8080232/html/oscommerce/catalog/admin/includes/functions/general.php on line 1277

 

I also do not have any of the links referred to in the troubleshooting section of the documents, i.e. Test.

 

Any help would be appreciated. Thanks

If you are trying to install it without making any file changes, which means you have an unaltered shop, then there are two directories you have to upload. The error is indicating you didn't do that.

Share this post


Link to post
Share on other sites

That can happen if you have a large number of products. Try running fill tags but with just once section at a time, like categories.

 

Hi Jack, thanks again an sorry for asking help once again. After some troubleshooting I realized about some other symptoms:

 

1) The link I send, "http://www.ippartner.cl/sd/product_info.php/cisco-ws-c2960pd-8tt-p-177?language=es", works fine if I copied it in my browser.

2) The error message: "Failed to load page from shop: ........" Only appears when I use the Override option.

 

On the other hand, something rare happens with tags in product pages. For any product page, these dont display the meta tags as I have configured in correspondig fields in Admin->Categories (these tags always appear as in defaul values). Nevertheless, these tags are correctly modified in the product pages when I use Header Tags SEO->Page Control option and change the defaults values. I need diferents tags for each page. :-(

 

Can you help me please?

 

Thanks a lot!.

Edo.

Share this post


Link to post
Share on other sites

what are the 2 directories? Do I have to upload all the files i am updating to both directories? Thanks

The directories in the contribution. You need to read the instructions for your version of oscommerce. The steps are all there.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×