Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

My Page is broken :-(


AllTheAbove

Recommended Posts

Posted

Ok, I am totally lost. I installed this contrib and it was working perfectly. I took out the default osc cartoonish icons at the top and now my page is broke.

 

Error:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /www/a/alltheabovew/htdocs/catalog/includes/header.php on line 67

 

Here is the code

<table border="0" width="100%" cellspacing="0" cellpadding="1">
   <tr>
<?php echo '<td class="headernavigation" background="' . DIR_WS_IMAGES . 'slice_sets/' .  INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?>
<?php echo $breadcrumb->trail(' » '); ?></td>
<?php echo '<td class="headernavigation" align="right" background="' . DIR_WS_IMAGES . 'slice_sets/' . INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?>
<?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '',  'SSL'); ?>" class="headerNavigation"><?php echo Logout; ?></a>    <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation">
<?php echo My Account; ?></a>   <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo What/'s in my cart; ?></a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo Checkout; ?></a>   </td>
 </tr>
</table>

 

Any help would be greatly appreciated!

Lori

Posted
Ok, I am totally lost.  I installed this contrib and it was working perfectly.  I took out the default osc cartoonish icons at the top and now my page is broke.

 

Error:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /www/a/alltheabovew/htdocs/catalog/includes/header.php on line 67

 

Here is the code

<table border="0" width="100%" cellspacing="0" cellpadding="1">
? ?<tr>
<?php echo '<td class="headernavigation" background="' . DIR_WS_IMAGES . 'slice_sets/' . ?INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?>
<?php echo $breadcrumb->trail(' » '); ?></td>
<?php echo '<td class="headernavigation" align="right" background="' . DIR_WS_IMAGES . 'slice_sets/' . INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?>
<?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', ?'SSL'); ?>" class="headerNavigation"><?php echo Logout; ?></a>    <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation">
<?php echo My Account; ?></a>   <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo What/'s in my cart; ?></a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo Checkout; ?></a>   </td>
?</tr>
</table>

 

Any help would be greatly appreciated!

Lori

Do you have a backup header.php

this is what I have to hide my imageson line 67.

Just copy and past

<!--<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>-->

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Posted
Do you have a backup header.php

this is what I have to hide my imageson line 67.

Just copy and past

<!--<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>-->

 

Thats the stuff I just removed to get rid of the images. The lines I pasted start at 62 and go through 79 and the error is saying its on line 68. They all look the same to me. I have probably stared at it 10 times now and not seen it. Single quotes UGH

Posted

Hmm well.. lol I took another php file and tried to emulate the way the code is written and now I have a brand new error! LOL

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /www/a/alltheabovew/htdocs/catalog/includes/header.php on line 75

 

Here are the lines of code I am messing with.

<table border="0" width="100%" cellspacing="0" cellpadding="1">
<tr><td class="headernavigation" background="' . DIR_WS_IMAGES . 'slice_sets/' .  INFOBOX_HEADERNAV_SLICE_SET . 

'/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?><?php echo $breadcrumb->trail(' » '); ?></td><td class="headernavigation" align="right" background="' . DIR_WS_IMAGES . 'slice_sets/' . INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?><?php if (tep_session_is_registered('customer_id')) { ?><?php echo '<a href="' , tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo Logout; ?></a>   <?php } ?><?php echp '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo My Account; ></a>  
<?php echp '<a href="' , tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo What/'s in my cart; ?></a>  <?php echp '<a href="' , tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo Checkout; ?></a>   </td>
 </tr>
</table>

 

One day I'll quit biting off more than I can chew.

Posted

i looked at the original code you posted and changed it to:

<table border="0" width="100%" cellspacing="0" cellpadding="1">
  <tr>
<?php echo '<td class="headernavigation" background="' . DIR_WS_IMAGES . 'slice_sets/' .  INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?>
<?php echo $breadcrumb->trail(' » '); ?></td>
<?php echo '<td class="headernavigation" align="right" background="' . DIR_WS_IMAGES . 'slice_sets/' . INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?>
<?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '',  'SSL'); ?>" class="headerNavigation"><?php echo Logout; ?></a>    <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation">
<?php echo My Account; ?></a>   <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation">What's in my cart;</a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo Checkout; ?></a>   </td>
</tr>
</table>

 

hope that helps

Posted
i looked at the original code you posted and changed it to:

<table border="0" width="100%" cellspacing="0" cellpadding="1">
? <tr>
<?php echo '<td class="headernavigation" background="' . DIR_WS_IMAGES . 'slice_sets/' . ?INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?>
<?php echo $breadcrumb->trail(' » '); ?></td>
<?php echo '<td class="headernavigation" align="right" background="' . DIR_WS_IMAGES . 'slice_sets/' . INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?>
<?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', ?'SSL'); ?>" class="headerNavigation"><?php echo Logout; ?></a>    <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation">
<?php echo My Account; ?></a>   <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation">What's in my cart;</a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo Checkout; ?></a>   </td>
</tr>
</table>

 

hope that helps

 

Well, that didn't work. The php editor thing I have keeps saying its expecting a "," or ";" on line 68 Here is line 68

<?php echo My Account; ?></a>   <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation">Whats in my cart;</a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, ''' , 'SSL'); ?>" class="headerNavigation"><?php echo Checkout; ?></a>   </td>

 

I got this php designer hoping it would not just tell me whats wrong, but fix it. That isn't happening. Anyway, I don't know if it makes much difference, but originally instead of it saying Whats in my cart it said HEADER_TITLE_CART_CONTENTS. It put those exact words in the navbar so I figured it was editable.

 

 

Thanks for trying to help.

Posted

ok there is an extra apostrophe in that code:

<?php echo My Account; ?></a>   <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation">Whats in my cart;</a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, ''' , 'SSL'); ?>" class="headerNavigation"><?php echo Checkout; ?></a>   </td>

 

change to:

<?php echo My Account; ?></a>   <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation">Whats in my cart;</a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '' , 'SSL'); ?>" class="headerNavigation"><?php echo Checkout; ?></a>   </td>

 

:thumbsup:

 

ps

when it refers to text like HEADER_TITLE_CART_CONTENTS in the code

that is linking to the relevant language file where HEADER_TITLE_CART_CONTENTS will be defined and some text will be in there, look in the includes/languages folder at the relevant page and you will see all the text for that page is defined

Posted

ps

when it refers to text like HEADER_TITLE_CART_CONTENTS in the code

that is linking to the relevant language file where HEADER_TITLE_CART_CONTENTS will be defined and some text will be in there, look in the includes/languages folder at the relevant page and you will see all the text for that page is defined

 

 

Thanks for the tip. Turns out editing those is what was causing my problem. I put them back in and now it is loading again. Now, I have to figure out where this other error is coming from.

 

I know I say a posting about this error, so I'm off to search for the answer.

 

Lori

Archived

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

×
×
  • Create New...