AllTheAbove Posted August 10, 2005 Posted August 10, 2005 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
WiseWombat Posted August 10, 2005 Posted August 10, 2005 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 <{POST_SNAPBACK}> 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
AllTheAbove Posted August 10, 2005 Author Posted August 10, 2005 Do you have a backup header.phpthis 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>--> <{POST_SNAPBACK}> 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
AllTheAbove Posted August 10, 2005 Author Posted August 10, 2005 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.
gscreations Posted August 10, 2005 Posted August 10, 2005 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
AllTheAbove Posted August 10, 2005 Author Posted August 10, 2005 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 <{POST_SNAPBACK}> 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.
gscreations Posted August 10, 2005 Posted August 10, 2005 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
AllTheAbove Posted August 10, 2005 Author Posted August 10, 2005 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 <{POST_SNAPBACK}> 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.