Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error in header.php


FrancineNJ

Recommended Posts

Hi,

Trying to get my store up and running. Ran into this error when I tried to checkout.

Parse error: parse error, unexpected T_STRING in /hsphere/local/home/francine/foreveratpeace.com/includes/header.php on line 12

I did change the links in the header of my template but I thought I made sure I just changed the text and left all brackest and other symbols alone. Can someone show me where this error is?

Here is my header.php Lines 1 -59

 

 

<?php
/*
 $Id: header.php,v 1.1.1.1 2004/03/04 23:42:24 ccwjr Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
define('DIR_WS_TEMPLATE_IMAGES', 'templates/8541/images/');

// WebMakers.com Added: Down for Maintenance
// Hide header if not to show
if (DOWN_FOR_MAINTENANCE_HEADER_OFF =='false') {

if (SITE_WIDTH!='100%') {
?>
<table width="<?php echo SITE_WIDTH;?>" align="center" cellpadding="0" cellspacing="0" border="0">
  <td>
<?php
}
?>
<table width="780" height="273" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
 <tr>
<td colspan="4"><img src="templates/8541/images/header_top.jpg" width="780" height="20" alt=""></td>
 </tr>
 <tr>
<td width="17" rowspan="4"><img src="templates/8541/images/header_left.jpg" width="17" height="243" alt=""></td>
<td colspan="2"><table id="Table_02" width="746" height="41" border="0" cellpadding="0" cellspacing="0">
  <tr>
	<td width="78"><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"
						onMouseOver="changeImages('header_home', 'templates/8541/images/header_home-over.jpg'); return true;"
						onMouseOut="changeImages('header_home', 'templates/8541/images/header_home.jpg'); return true;"
						onMouseDown="changeImages('header_home', 'templates/8541/images/header_home-over.jpg'); return true;"
						onMouseUp="changeImages('header_home', 'templates/8541/images/header_home-over.jpg'); return true;"> <img name="header_home" src="templates/8541/images/header_home.jpg" width="78" height="41" border="0" alt="Home Page"></a></td>
	<td width="85"><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'NONSSL'); ?>"
						onMouseOver="changeImages('header_account', 'templates/8541/images/header_account-over.jpg'); return true;"
						onMouseOut="changeImages('header_account', 'templates/8541/images/header_account.jpg'); return true;"
						onMouseDown="changeImages('header_account', 'templates/8541/images/header_account-over.jpg'); return true;"
						onMouseUp="changeImages('header_account', 'templates/8541/images/header_account-over.jpg'); return true;"> <img name="header_account" src="templates/8541/images/header_account.jpg" width="85" height="41" border="0" alt="My Account"></a></td>
	<td width="82"><a href="<?php echo tep_href_link(FILENAME_FEATURED_PRODUCTS, '', 'NONSSL'); ?>"
						onMouseOver="changeImages('header_featured', 'templates/8541/images/header_featured-over.jpg'); return true;"
						onMouseOut="changeImages('header_featured', 'templates/8541/images/header_featured.jpg'); return true;"
						onMouseDown="changeImages('header_featured', 'templates/8541/images/header_featured-over.jpg'); return true;"
						onMouseUp="changeImages('header_featured', 'templates/8541/images/header_featured-over.jpg'); return true;"> <img name="header_featured" src="templates/8541/images/header_featured.jpg" width="82" height="41" border="0" alt="Featured Products"></a></td>
	<td width="75"><a href="<?php echo tep_href_link(FILENAME_FAQ, '', 'NONSSL'); ?>"
						onMouseOver="changeImages('header_faq', 'templates/8541/images/header_faq-over.jpg'); return true;"
						onMouseOut="changeImages('header_faq', 'templates/8541/images/header_faq.jpg'); return true;"
						onMouseDown="changeImages('header_faq', 'templates/8541/images/header_faq-over.jpg'); return true;"
						onMouseUp="changeImages('header_faq', 'templates/8541/images/header_faq-over.jpg'); return true;"> <img name="header_faq" src="templates/8541/images/header_faq.jpg" width="75" height="41" border="0" alt="F.A.Q"></a></td>
	<td width="104"><a href="<?php echo tep_href_link('index.php', 'cPath=43', '', 'NONSSL'); ?>"
						onMouseOver="changeImages('header_gift_shop', 'templates/8541/images/header_gift_shop-over.jpg'); return true;"
						onMouseOut="changeImages('header_gift_shop', 'templates/8541/images/header_gift_shop.jpg'); return true;"
						onMouseDown="changeImages('header_gift_shop', 'templates/8541/images/header_gift_shop-over.jpg'); return true;"
						onMouseUp="changeImages('header_gift_shop', 'templates/8541/images/header_gift_shop-over.jpg'); return true;"> <img name="header_gift_shop" src="templates/8541/images/header_gift_shop.jpg" width="104" height="41" border="0" alt="Gift Shop"></a></td>
	<td width="322" align="left" valign="top" background="templates/8541/images/header_search.jpg"><div style="padding-left: 80px; padding-top: 8px;"><?php require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/boxes/' . 'search_header.php'); ?></div></td>
  </tr>

 

Thank you for your help. :)

Link to comment
Share on other sites

  Released under the GNU General Public License
*/
define('DIR_WS_TEMPLATE_IMAGES', 'templates/8541/images/');

// WebMakers.com Added: Down for Maintenance

 

That fixed it on my test run...

BACKUP your current files before editing. Did I mention to BACKUP your current files, first?

 

"I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!"

 

Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password

Link to comment
Share on other sites

  Released under the GNU General Public License
*/
define('DIR_WS_TEMPLATE_IMAGES', 'templates/8541/images/');

// WebMakers.com Added: Down for Maintenance

 

That fixed it on my test run...

 

 

Your saying take out everything prior to Released under the GNU General Public License???

Link to comment
Share on other sites

Your saying take out everything prior to Released under the GNU General Public License???

 

no he was showing you where the error is at:

 

define('DIR_WS_TEMPLATE_IMAGES', 'templates/8541/images/');

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

no he was showing you where the error is at:

 

define('DIR_WS_TEMPLATE_IMAGES', 'templates/8541/images/');

 

 

 

I'm sorry, I've been at this all day.

They both look the same to me. My line and his. no?

But for argument sake, I'll cut and past his line in place of mine.

I'll let you know.

Link to comment
Share on other sites

I'm sorry, I've been at this all day.

They both look the same to me. My line and his. no?

But for argument sake, I'll cut and past his line in place of mine.

I'll let you know.

 

 

 

It did not work. :(

Link to comment
Share on other sites

*shrugs*

worked for me...

BACKUP your current files before editing. Did I mention to BACKUP your current files, first?

 

"I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!"

 

Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password

Link to comment
Share on other sites

It's just a wild guess but as far as I've seen you don't need the define statement as the images are referenced anyway. Try uncommenting like this:

// define('DIR_WS_TEMPLATE_IMAGES', 'templates/8541/images/');

and see if that gets rid of the error and keeps the template working. As for the define statement, just check your documentation about how to install the template to make sure the header is the place to go for it. Can't really help you there as I have never installed a template.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

It's just a wild guess but as far as I've seen you don't need the define statement as the images are referenced anyway. Try uncommenting like this:

// define('DIR_WS_TEMPLATE_IMAGES', 'templates/8541/images/');

and see if that gets rid of the error and keeps the template working. As for the define statement, just check your documentation about how to install the template to make sure the header is the place to go for it. Can't really help you there as I have never installed a template.

 

abra

 

 

That did not work either but Thank you for all your help.

I will go to the people who installed my template and all that came with it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...