Jump to content

Archived

This topic is now archived and is closed to further replies.

Roselyn

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

Recommended Posts

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','');

?>

Share this post


Link to post
Share on other sites
[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 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','');

?>[/code]

No errors now.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
oh soz. i didnt see that second one. oh and i didnt see ur <<-edited. :P

Share this post


Link to post
Share on other sites
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
 

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.