Jump to content



Photo
* * * * * 14 votes

Header Tags SEO


  • Please log in to reply
7632 replies to this topic

#6661   Jack_mcs

Jack_mcs
  • Members
  • 26,421 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 14 June 2012 - 15:41

Hi Jack;
define('TEXT_VIEWING', 'Currently viewing:');

define('BOX_HEADING_HEADERTAGS_TAGCLOUD', 'Popular Searches');
define('TEXT_SEE_MORE', 'See More');

Warning: require(includes/column_right.php) [function.require]: failed to open stream: No such file or directory in /home/www/arthandpainted.com/headertags_seo_uninstall.php on line 108

The errors with capital letters, as shown above, means there is a mistake in the installation because those definitions are missing.

The error in the install/uninstall scripts just means you don't have a column_right file and can be ignored. As long as you get a successful message when runing those, they are OK.

#6662   Cheloki

Cheloki
  • Members
  • 39 posts
  • Real Name:Chelo
  • Gender:Male
  • Location:España

Posted 15 June 2012 - 05:52

9) In includes/languages/english/product_info.php, add the following before the last ?>

/*** Begin Header Tags SEO ***/
define('TEXT_VIEWING', 'Currently viewing:');
/*** End Header Tags SEO ***/

I apologize for not speaking their language well. I have not explained well. My problem is that to get the code;

9) In includes/languages/english/product_info.php,
/*** Begin Header Tags SEO ***/
define('TEXT_VIEWING', 'Currently viewing:');
/*** End Header Tags SEO ***/


The page is broken, you can see on this link;
http://arthandpainte..._61?language=fr
If you click on "see more" = "voir plus", you will see the result
It happens in other languages ​​as well, only good in English and Spanish, incidentally, the admin I have it in Spanish and English.

Thanks for your help
Cheloki

#6663   Jack_mcs

Jack_mcs
  • Members
  • 26,421 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 15 June 2012 - 11:20

The link you provided is invalid so I can't check it. But that piece of code is just a standard language file change. If it doesn't work, you've made a mistake in the change or something is wrong with your basic shop.

#6664   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 16 June 2012 - 23:51

Hi Jim,

I am updating Header Tags SEO installed in a OSC 2.31from_V_3.2.6_to_V_3.2.7, but I was unable to find the line you mention in the update procedure, step 5th.


5) In includes/header.php,

FIND:

if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
?>

Please help. Thanks

#6665   Jack_mcs

Jack_mcs
  • Members
  • 26,421 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 17 June 2012 - 00:35

5) In includes/header.php,

FIND:

if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
?>

Please help. Thanks

In 2.3 the line is a little different:
echo '<div class="grid_24">' . $messageStack->output('header') . '</div>';


#6666   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 17 June 2012 - 03:10

.

Edited by elara, 17 June 2012 - 03:13.


#6667   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 17 June 2012 - 03:11

Hi JIm

I found lines you said for step 5 but now I cant find lines for step 16.


16) In admin/categories.php,

******************** BELOW IS FOR 2.3 SHOPS *********************

FIND:


} elseif ($action == &#39;new_product_preview&#39;) {
if (tep_not_null($HTTP_POST_VARS)) {
$pInfo = new objectInfo($HTTP_POST_VARS);
$products_name = $HTTP_POST_VARS[&#39;products_name&#39;];
$products_description = $HTTP_POST_VARS[&#39;products_description&#39;];
$products_head_title_tag = $HTTP_POST_VARS[&#39;products_head_title_tag&#39;];
$products_head_desc_tag = $HTTP_POST_VARS[&#39;products_head_desc_tag&#39;];
$products_head_keywords_tag = $HTTP_POST_VARS[&#39;products_head_keywords_tag&#39;];
$products_url = $HTTP_POST_VARS[&#39;products_url&#39;];
/*** End Header Tags SEO ***/

Thanks a lot.

#6668   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 17 June 2012 - 03:44

Hi JIm,

I know I have not completed the instalation yet, nevertheless at this moment my site is not working and showing the following message:

Warning: require(includes/template_top.php) [function.require]: failed to open stream: No such file or directory in /home/ipexpres/public_html/pyme/index.php on line 36

Fatal error: require() [function.require]: Failed opening required 'includes/template_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ipexpres/public_html/pyme/index.php on line 36

Some idea?

Thanks a lot.

#6669   Jack_mcs

Jack_mcs
  • Members
  • 26,421 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 17 June 2012 - 14:32

Warning: require(includes/template_top.php) [function.require]: failed to open stream: No such file or directory in /home/ipexpres/public_html/pyme/index.php on line 36

The error is saying it can't find the includes/template_top.php file. That is a standard file in 2.3. So you either deleted it or you don't have a 2.3 shop.

#6670   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 17 June 2012 - 14:55

Hi Jim,

You are right, my includes/template_top.php file had a little error in its name.

thanks
Edo.

#6671   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 17 June 2012 - 14:57

Hi JIm

I found lines you said for step 5 but now I cant find lines for step 16.


16) In admin/categories.php,

******************** BELOW IS FOR 2.3 SHOPS *********************

FIND:


} elseif ($action == &#39;new_product_preview&#39;) {
if (tep_not_null($HTTP_POST_VARS)) {
$pInfo = new objectInfo($HTTP_POST_VARS);
$products_name = $HTTP_POST_VARS[&#39;products_name&#39;];
$products_description = $HTTP_POST_VARS[&#39;products_description&#39;];
$products_head_title_tag = $HTTP_POST_VARS[&#39;products_head_title_tag&#39;];
$products_head_desc_tag = $HTTP_POST_VARS[&#39;products_head_desc_tag&#39;];
$products_head_keywords_tag = $HTTP_POST_VARS[&#39;products_head_keywords_tag&#39;];
$products_url = $HTTP_POST_VARS[&#39;products_url&#39;];
/*** End Header Tags SEO ***/

Thanks a lot.


Now, I am at this point again. Please let me know why I could not find this lines.

Thanks a lot for you great support.
Edo.

#6672   Jack_mcs

Jack_mcs
  • Members
  • 26,421 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 17 June 2012 - 16:05

I found lines you said for step 5 but now I cant find lines for step 16.

16) In admin/categories.php,

There was a mistake or two in the update instructions for 3.2.7, that being one of them. You can either compare your file with the included one in 3.2.8 or look at the install file from 3.2.8 to get the correct code.

#6673   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 18 June 2012 - 02:56

Hi Jim,

as you tell me, I reviewed the new install instructions file and I found the same instruction for code you mention in step 16, within 3.2.6 to 3.2.7 update file instructions, nevertherless neither the admin/categories.php for new shop files included in 3.2.8 full version nor my admin/categories.php files have that code.

Step 16 says:

******************** BELOW IS FOR 2.3 SHOPS *********************

FIND:

<?php /*** Begin Header Tags SEO ***/ ?>
<?php
} elseif ($action == 'new_product_preview') {
if (tep_not_null($HTTP_POST_VARS)) {
$pInfo = new objectInfo($HTTP_POST_VARS);
$products_name = $HTTP_POST_VARS['products_name'];
$products_description = $HTTP_POST_VARS['products_description'];
$products_head_title_tag = $HTTP_POST_VARS['products_head_title_tag'];
$products_head_desc_tag = $HTTP_POST_VARS['products_head_desc_tag'];
$products_head_keywords_tag = $HTTP_POST_VARS['products_head_keywords_tag'];
$products_url = $HTTP_POST_VARS['products_url'];
/*** End Header Tags SEO ***/

REPLACE WITH:

<?php /*** Begin Header Tags SEO ***/ ?>
<?php
} elseif ($action == 'new_product_preview') {
if (tep_not_null($HTTP_POST_VARS)) {
$pInfo = new objectInfo($HTTP_POST_VARS);
$products_name = $HTTP_POST_VARS['products_name'];
$products_description = $HTTP_POST_VARS['products_description'];
$products_head_title_tag = $HTTP_POST_VARS['products_head_title_tag'];
$products_head_desc_tag = $HTTP_POST_VARS['products_head_desc_tag'];
$products_head_keywords_tag = $HTTP_POST_VARS['products_head_keywords_tag'];
$products_head_listing_text = $HTTP_POST_VARS['products_head_listing_text'];
$products_head_sub_text = $HTTP_POST_VARS['products_head_sub_text'];
$products_url = $HTTP_POST_VARS['products_url'];

******************** ABOVE IS FOR 2.3 SHOPS *********************


Could you please review that and explain what could be happening?

Do you have some 3.2.6 to 3.2.7 update instruction with fixed instructions?
Please your help
Thanks

#6674   Jack_mcs

Jack_mcs
  • Members
  • 26,421 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 18 June 2012 - 03:11

Could you please review that and explain what could be happening?

Do you have some 3.2.6 to 3.2.7 update instruction with fixed instructions?

The instructions and files for 3.2.8 are correct, as far as I know.

#6675   Cheloki

Cheloki
  • Members
  • 39 posts
  • Real Name:Chelo
  • Gender:Male
  • Location:España

Posted 20 June 2012 - 09:16

I have resolved the issue of the right column disappears with header tags, it is because files are missing in some language packs, climbing corrected the English version, then the language that fails, above
Thank you,

#6676   ianhaney

ianhaney
  • Members
  • 859 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 20 June 2012 - 19:38

Hi

I have just installed http://addons.oscomm....com/info/5851/ and the version V 3.2.8 dated 29 Jan 2012

The admin side works perfect but on the front end I get the following error

Parse error: syntax error, unexpected T_CLASS in /customers/1/0/7/irhtoys.co.uk/httpd.www/includes/header_tags.php on line 299

My url is www.irhtoys.co.uk

The coding below is from 299 onwards where it says the error is

case (basename($_SERVER['PHP_SELF']) === FILENAME_SITEMAP.CLASS):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_SITEMAP.CLASS);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// bm_information.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_BM_INFORMATION):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_BM_INFORMATION);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// cookie_usage.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_COOKIE_USAGE):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_COOKIE_USAGE);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// categories.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_CATEGORIES):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_CATEGORIES);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// feedback.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_FEEDBACK):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_FEEDBACK);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// asnf_reply.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_ASNF_REPLY):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_ASNF_REPLY);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// index_modifications.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_INDEX_MODIFICATIONS):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_INDEX_MODIFICATIONS);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// privacy.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_PRIVACY):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_PRIVACY);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// testimonials.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_TESTIMONIALS):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_TESTIMONIALS);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// whos_online.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_WHOS_ONLINE):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_WHOS_ONLINE);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// contact_us.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_CONTACT_US):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_CONTACT_US);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// opensearch.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_OPENSEARCH):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_OPENSEARCH);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// shipping.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_SHIPPING):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_SHIPPING);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// livehelp.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_LIVEHELP):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_LIVEHELP);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// product_listing.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_PRODUCT_LISTING):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_PRODUCT_LISTING);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// asnf_addtopic.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_ASNF_ADDTOPIC):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_ASNF_ADDTOPIC);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// banner.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_BANNER):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_BANNER);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// conditions.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_CONDITIONS):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_CONDITIONS);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// asnf_viewtopic.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_ASNF_VIEWTOPIC):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_ASNF_VIEWTOPIC);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// bridge.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_BRIDGE):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_BRIDGE);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// size_chart.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_SIZE_CHART):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_SIZE_CHART);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// facebookenquiry.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_FACEBOOKENQUIRY):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_FACEBOOKENQUIRY);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// asnf_index.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_ASNF_INDEX):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_ASNF_INDEX);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// download.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_DOWNLOAD):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_DOWNLOAD);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// redirect.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_REDIRECT):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_REDIRECT);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// supertracker_setup_db.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_SUPERTRACKER_SETUP_DB):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_SUPERTRACKER_SETUP_DB);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// shopping_cart.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_SHOPPING_CART):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_SHOPPING_CART);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// advanced_search_result.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_ADVANCED_SEARCH_RESULT):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_ADVANCED_SEARCH_RESULT);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// advanced_search.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_ADVANCED_SEARCH):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_ADVANCED_SEARCH);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// customer_testimonials.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_CUSTOMER_TESTIMONIALS):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_CUSTOMER_TESTIMONIALS);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// popup_image.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_POPUP_IMAGE):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_POPUP_IMAGE);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// tell_a_friend.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_TELL_A_FRIEND):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_TELL_A_FRIEND);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// oscpm1_upload.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_OSCPM1_UPLOAD):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_OSCPM1_UPLOAD);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// asnf_newtopic.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_ASNF_NEWTOPIC):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_ASNF_NEWTOPIC);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// popup_about_us.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_POPUP_ABOUT_US):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_POPUP_ABOUT_US);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]
[color=#000000]// shop_by_price.php
  case (basename($_SERVER['PHP_SELF']) === FILENAME_SHOP_BY_PRICE):
    if (! ReadCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '')) {
	  $header_tags_array = tep_header_tag_page(FILENAME_SHOP_BY_PRICE);
	  WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), '');
    }
  break;[/color]

[color=#000000]// 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;
  }[/color]
[color=#000000]

Can some one help please as it has caused my site to go down and am losing sales

Please help me

Thank you

Ian

#6677   Jack_mcs

Jack_mcs
  • Members
  • 26,421 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 20 June 2012 - 23:28

Hi

I have just installed http://addons.oscomm....com/info/5851/ and the version V 3.2.8 dated 29 Jan 2012

The admin side works perfect but on the front end I get the following error

Parse error: syntax error, unexpected T_CLASS in /customers/1/0/7/irhtoys.co.uk/httpd.www/includes/header_tags.php on line 299

My url is www.irhtoys.co.uk

The coding below is from 299 onwards where it says the error is

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

It's because you have files in your root directory that shouldn't be there and the Header Tags is trying to make sense of them. In the above case, you have a file named sitemap.class.php but there's no such entry of FILENAME_SITEMAP.CLASS in your filenames file so it is failing. You need to remove such files from your root directory and replace the includes/header_tags.php file.

#6678   ianhaney

ianhaney
  • Members
  • 859 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 21 June 2012 - 06:46

Hi Jack

Thank you for the reply

I followed your advice and took the sitemap.class.php file out of the root and replaced the includes/header_tags.php file and it got the site working again sort of

I got this error now

When I click on a product for example http://irhtoys.co.uk...ags-p-1104.html, I get the following error

1054 - Unknown column 'pd.products_head_sub_text' in 'field list'
select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, pd.products_head_sub_text from products p, products_description pd where p.products_status = '1' and p.products_id = '1104' and pd.products_id = p.products_id and pd.language_id = '1'
[TEP STOP]

Also just spotted this error as well in the admin side, when I click on a product and click the edit button, I get this error

1054 - Unknown column 'pd.products_head_listing_text' in 'field list'

select pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_desc_tag, pd.products_head_keywords_tag, pd.products_head_listing_text, pd.products_head_sub_text, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from products p, products_description pd where p.products_id = '1032' and p.products_id = pd.products_id and pd.language_id = '1'

[TEP STOP]


What would I need to do to fix both of them errors, sorry its first time I have used this add on

#6679   ianhaney

ianhaney
  • Members
  • 859 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 21 June 2012 - 10:37

I am not using version 3 2 8 now, I am doing a fresh install using 3 2 6

but got this error when trying to load the url http://www.irhtoys.c...seo_install.php

1048 - Column 'set_function' cannot be null

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added, use_function) VALUES (NULL,'Keyword Density Range', 'HEADER_TAGS_KEYWORD_DENSITY_RANGE', '0.02,0.06', 'Set the limits for the keyword density use to dynamically select the keywords. Enter two figures, separated by a comma', '543', '54', NULL, now(), NULL)

[TEP STOP]


Any ideas

Sorry about this

#6680   Jack_mcs

Jack_mcs
  • Members
  • 26,421 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 21 June 2012 - 14:12

What would I need to do to fix both of them errors, sorry its first time I have used this add on

Both are saying there is a missing field in the database. If this is a new install, use the uninstall and install files. If this is an update, you will need to find the command to add that manually in the update docs.