Jump to content


Photo

Can You Help Please? This is driving me nuts, trying to fix this for two days.


  • Please log in to reply
5 replies to this topic

#1 Roselyn

Roselyn
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 October 2006 - 10:34 AM

Hi I'm a newbie and lacking in the knowledge to fix this problem, I've stared at this code for ages and it's driving me nuts as I get the white screen of death each time I attempt to load my webpage with this message:

Parse error: syntax error, unexpected T_STRING in /home/public_html/includes/languages/english/header_tags.php on line 16

<?php
// /catalog/includes/languages/english/header_tags.php
// WebMakers.com Added: Header Tags Generator v2.3
// Add META TAGS and Modify TITLE
//
// DEFINITIONS FOR /includes/languages/english/header_tags.php

// Define your email address to appear on all pages
define('HEAD_REPLY_TAG_ALL', STORE_OWNER_EMAIL_ADDRESS);

// For all pages not defined or left blank, and for products not defined
// These are included unless you set the toggle switch in each section below to OFF
('0')

// The HEAD_TITLE_TAG_ALL is included BEFORE the specific one for the page
DV// The HEAD_DESC_TAG_ALL is included AFTER the specific one for the page
// The HEAD_KEY_TAG_ALL is included BEFORE the specific one for the page
define('HEAD_TITLE_TAG_ALL', STORE_NAME);
define('HEAD_DESC_TAG_ALL','What\'s New Here? - Hardware, Software, DVD Movies, Computer');
define('HEAD_KEY_TAG_ALL','Hardware, Software, DVD Movies, Computer');

// DEFINE TAGS FOR INDIVIDUAL PAGES

// index.php
define('HTTA_DEFAULT_ON','1'); // Include HEAD_TITLE_TAG_ALL in Title
define('HTKA_DEFAULT_ON','1'); // Include HEAD_KEY_TAG_ALL in Keywords
define('HTDA_DEFAULT_ON','1'); // Include HEAD_DESC_TAG_ALL in Description
define('HEAD_TITLE_TAG_DEFAULT','CRE Loaded 6');
define('HEAD_DESC_TAG_DEFAULT','osCommerce : What\'s New Here? - 'Hardware, Software, DVD Movies, Computer');
define('HEAD_KEY_TAG_DEFAULT','Hardware, Software, DVD Movies, Computer');

// product_info.php - if left blank in products_description table these values will be used
define('HTTA_PRODUCT_INFO_ON','1');
define('HTKA_PRODUCT_INFO_ON','1');
define('HTDA_PRODUCT_INFO_ON','1');
define('HEAD_TITLE_TAG_PRODUCT_INFO','');
define('HEAD_DESC_TAG_PRODUCT_INFO','');
define('HEAD_KEY_TAG_PRODUCT_INFO','');

// products_new.php - whats_new
define('HTTA_WHATS_NEW_ON','1');
define('HTKA_WHATS_NEW_ON','1');
define('HTDA_WHATS_NEW_ON','1');
define('HEAD_TITLE_TAG_WHATS_NEW','New Products');
define('HEAD_DESC_TAG_WHATS_NEW','I am ON PRODUCTS_NEW as HEAD_DESC_TAG_WHATS_NEW and over ride the HEAD_DESC_TAG_ALL');
define('HEAD_KEY_TAG_WHATS_NEW','I am on PRODUCTS_NEW as HEAD_KEY_TAG_WHATS_NEW and over ride HEAD_KEY_TAG_ALL');

// specials.php
// If HEAD_KEY_TAG_SPECIALS is left blank, it will build the keywords from the products_names of all products on special
define('HTTA_SPECIALS_ON','1');
define('HTKA_SPECIALS_ON','1');
define('HTDA_SPECIALS_ON','1');
define('HEAD_TITLE_TAG_SPECIALS','Specials');
define('HEAD_DESC_TAG_SPECIALS','');
define('HEAD_KEY_TAG_SPECIALS','');

// product_reviews_info.php and product_reviews.php - if left blank in products_description table these values will be used
define('HTTA_PRODUCT_REVIEWS_INFO_ON','1');
define('HTKA_PRODUCT_REVIEWS_INFO_ON','1');
define('HTDA_PRODUCT_REVIEWS_INFO_ON','1');
define('HEAD_TITLE_TAG_PRODUCT_REVIEWS_INFO','');
define('HEAD_DESC_TAG_PRODUCT_REVIEWS_INFO','');
define('HEAD_KEY_TAG_PRODUCT_REVIEWS_INFO','');

?>


#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 22 October 2006 - 11:35 AM

<?php
// /catalog/includes/languages/english/header_tags.php
// WebMakers.com Added: Header Tags Generator v2.3
// Add META TAGS and Modify TITLE
//
// DEFINITIONS FOR /includes/languages/english/header_tags.php

// Define your email address to appear on all pages
define('HEAD_REPLY_TAG_ALL', STORE_OWNER_EMAIL_ADDRESS);

// For all pages not defined or left blank, and for products not defined
// These are included unless you set the toggle switch in each section below to OFF ('0') <<-edited

// The HEAD_TITLE_TAG_ALL is included BEFORE the specific one for the page DV <<-edited
// The HEAD_DESC_TAG_ALL is included AFTER the specific one for the page
// The HEAD_KEY_TAG_ALL is included BEFORE the specific one for the page
define('HEAD_TITLE_TAG_ALL', STORE_NAME);
define('HEAD_DESC_TAG_ALL','What\'s New Here? - Hardware, Software, DVD Movies, Computer');
define('HEAD_KEY_TAG_ALL','Hardware, Software, DVD Movies, Computer');

// DEFINE TAGS FOR INDIVIDUAL PAGES

// index.php
define('HTTA_DEFAULT_ON','1'); // Include HEAD_TITLE_TAG_ALL in Title
define('HTKA_DEFAULT_ON','1'); // Include HEAD_KEY_TAG_ALL in Keywords
define('HTDA_DEFAULT_ON','1'); // Include HEAD_DESC_TAG_ALL in Description
define('HEAD_TITLE_TAG_DEFAULT','CRE Loaded 6');
define('HEAD_DESC_TAG_DEFAULT','osCommerce : What\'s New Here? - Hardware, Software, DVD Movies, Computer'); // <<-edited
define('HEAD_KEY_TAG_DEFAULT','Hardware, Software, DVD Movies, Computer');

// product_info.php - if left blank in products_description table these values will be used
define('HTTA_PRODUCT_INFO_ON','1');
define('HTKA_PRODUCT_INFO_ON','1');
define('HTDA_PRODUCT_INFO_ON','1');
define('HEAD_TITLE_TAG_PRODUCT_INFO','');
define('HEAD_DESC_TAG_PRODUCT_INFO','');
define('HEAD_KEY_TAG_PRODUCT_INFO','');

// products_new.php - whats_new
define('HTTA_WHATS_NEW_ON','1');
define('HTKA_WHATS_NEW_ON','1');
define('HTDA_WHATS_NEW_ON','1');
define('HEAD_TITLE_TAG_WHATS_NEW','New Products');
define('HEAD_DESC_TAG_WHATS_NEW','I am ON PRODUCTS_NEW as HEAD_DESC_TAG_WHATS_NEW and over ride the HEAD_DESC_TAG_ALL');
define('HEAD_KEY_TAG_WHATS_NEW','I am on PRODUCTS_NEW as HEAD_KEY_TAG_WHATS_NEW and over ride HEAD_KEY_TAG_ALL');

// specials.php
// If HEAD_KEY_TAG_SPECIALS is left blank, it will build the keywords from the products_names of all products on special
define('HTTA_SPECIALS_ON','1');
define('HTKA_SPECIALS_ON','1');
define('HTDA_SPECIALS_ON','1');
define('HEAD_TITLE_TAG_SPECIALS','Specials');
define('HEAD_DESC_TAG_SPECIALS','');
define('HEAD_KEY_TAG_SPECIALS','');

// product_reviews_info.php and product_reviews.php - if left blank in products_description table these values will be used
define('HTTA_PRODUCT_REVIEWS_INFO_ON','1');
define('HTKA_PRODUCT_REVIEWS_INFO_ON','1');
define('HTDA_PRODUCT_REVIEWS_INFO_ON','1');
define('HEAD_TITLE_TAG_PRODUCT_REVIEWS_INFO','');
define('HEAD_DESC_TAG_PRODUCT_REVIEWS_INFO','');
define('HEAD_KEY_TAG_PRODUCT_REVIEWS_INFO','');

?>

No errors now.
Legend has it that reading the manual never killed anyone.
My site

#3 JasonLewis

JasonLewis
  • Members
  • PipPipPip
  • Advanced Member
  • 3,351 posts
  • LocationVictoria, Australia

Posted 22 October 2006 - 11:42 AM

just so he/she knows. one of your comments was incorrect. when you get those errors, you should go to the line and check. here is the error:
DV// The HEAD_DESC_TAG_ALL is included AFTER the specific one for the page

should be this:
// The HEAD_DESC_TAG_ALL is included AFTER the specific one for the page

Good luck with your coding.
Jason / ProjectFear / Jaysonic

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 22 October 2006 - 11:59 AM

Two comments were wrong (line wrap in the wrong place), and the definition of HEAD_DESC_TAG_DEFAULT was wrong as well as it had unmatched string terminators.

The code I posted had 'edited' added to each of the lines I chnaged so the OP can see just what was done  ;D
Legend has it that reading the manual never killed anyone.
My site

#5 JasonLewis

JasonLewis
  • Members
  • PipPipPip
  • Advanced Member
  • 3,351 posts
  • LocationVictoria, Australia

Posted 23 October 2006 - 09:17 AM

oh soz. i didnt see that second one. oh and i didnt see ur <<-edited. :P
Good luck with your coding.
Jason / ProjectFear / Jaysonic

#6 Roselyn

Roselyn
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 23 October 2006 - 07:00 PM

Thank you so much for helping me, I got a good night's sleep last night. My Site loaded straight off after fixing the errors, what a genius you are! I'm really grateful to you, because I felt sick inside not being able to sort the problem out. I was looking at the screen for so long I was going cross-eyed.

Very Glad I joined up.

Best Wishes

Roselyn
 




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users