Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header tags controller V2


Guest

Recommended Posts

Contribution mostly working fine with header tags :? except I get the following error

 

Fatal Error: Call to undefined function: tep_get_header_tags_products_desc() in

~PATH~ catalogincludesheader_tags.php on line 169

 

This line being in the following block:

 

// PRODUCTS_REVIEWS_INFO.PHP and PRODUCTS_REVIEWS.PHP

case ( strstr($_SERVER['PHP_SELF'],'product_reviews_info.php') or strstr($_SERVER['PHP_SELF'],'product_reviews.php') or strstr($PHP_SELF,'product_reviews_info.php') or strstr($PHP_SELF,'product_reviews.php') ):

if ( HEAD_DESC_TAG_PRODUCT_REVIEWS_INFO=='' ) {

if ( HTDA_PRODUCT_REVIEWS_INFO_ON=='1' ) {

**(LINE 169) ** $the_desc= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_DESC_TAG_ALL;

} else {

$the_desc= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']);

}

 

 

BUT! only when the following files

 

catalogproduct_reviews.php

catalogproduct_reviews_info.php

catalogproduct_reviews_write.php

 

have the TITLE; replaced as described in the Header tag controller V2 install doc's.

 

So if I replace:

?>

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

<?php

 

with the block of code as suggested in the installation notes:

 

<?php

// BOF: WebMakers.com Changed: Header Tag Controller v1.0

// Replaced by header_tags.php

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

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

<?php

}

// EOF: WebMakers.com Changed: Header Tag Controller v1.0

?>

 

OK the answers, :?: do not modify the code and leave well alone!

 

Not a problem provided the functionality of the contribution has not been limited.

AND

It is a stanalone issue related to these files only, and no hidden issue is waiting to happen.

 

Answers anyone?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...