Roselyn Posted October 22, 2006 Share Posted October 22, 2006 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 pagesdefine('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 pageDV// 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 pagedefine('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.phpdefine('HTTA_DEFAULT_ON','1'); // Include HEAD_TITLE_TAG_ALL in Titledefine('HTKA_DEFAULT_ON','1'); // Include HEAD_KEY_TAG_ALL in Keywordsdefine('HTDA_DEFAULT_ON','1'); // Include HEAD_DESC_TAG_ALL in Descriptiondefine('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 useddefine('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_newdefine('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 specialdefine('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 useddefine('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','');?> Quote Link to comment Share on other sites More sharing options...
AndyB Posted October 22, 2006 Share Posted October 22, 2006 [code]<?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 pagesdefine('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 pagedefine('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.phpdefine('HTTA_DEFAULT_ON','1'); // Include HEAD_TITLE_TAG_ALL in Titledefine('HTKA_DEFAULT_ON','1'); // Include HEAD_KEY_TAG_ALL in Keywordsdefine('HTDA_DEFAULT_ON','1'); // Include HEAD_DESC_TAG_ALL in Descriptiondefine('HEAD_TITLE_TAG_DEFAULT','CRE Loaded 6');define('HEAD_DESC_TAG_DEFAULT','osCommerce : What\'s New Here? - Hardware, Software, DVD Movies, Computer'); // <<-editeddefine('HEAD_KEY_TAG_DEFAULT','Hardware, Software, DVD Movies, Computer');// product_info.php - if left blank in products_description table these values will be useddefine('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_newdefine('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 specialdefine('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 useddefine('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','');?>[/code]No errors now. Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted October 22, 2006 Share Posted October 22, 2006 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:[code=php:0]DV// The HEAD_DESC_TAG_ALL is included AFTER the specific one for the page[/code]should be this:[code=php:0]// The HEAD_DESC_TAG_ALL is included AFTER the specific one for the page[/code] Quote Link to comment Share on other sites More sharing options...
AndyB Posted October 22, 2006 Share Posted October 22, 2006 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 Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted October 23, 2006 Share Posted October 23, 2006 oh soz. i didnt see that second one. oh and i didnt see ur <<-edited. :P Quote Link to comment Share on other sites More sharing options...
Roselyn Posted October 23, 2006 Author Share Posted October 23, 2006 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 WishesRoselyn Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.