WS6Store Posted August 5, 2004 Posted August 5, 2004 Getting this error... Parse error: parse error, unexpected T_STRING in /home/ws6proje/public_html/user_stor/catalog/includes/languages/english/index.php on line 66 Here is the file: <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<table width="507" border="0" cellspacing="2" cellpadding="3" height="321"> <tr> <td colspan="2" valign="top" height="179"> <table width="461" border="0" cellspacing="2" cellpadding="0"> <tr> <td> <table width="122" border="0" cellspacing="0" cellpadding="0"> <tr height="185"> <td width="210" height="185"><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=38_154"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_01.jpg" alt="" width="210" height="185" border="0"></a></td> <td width="300" height="185"> <table width="64" border="0" cellspacing="0" cellpadding="0"> <tr height="41"> <td width="300" height="41"><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=38_154"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_02.gif" alt="" width="300" height="41" border="0"></a></td> </tr> <tr height="80"> <td valign="middle" width="300" height="80"><p class="boxtext"><font size="2">WS6store offers a host of tires at the lowest prices to help you put the Horse on the pavement and save money!</p></td> </tr> <tr height="64"> <td width="300" height="64"><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=38_154"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_04.jpg" alt="" width="300" height="64" border="0"></a></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <table width="359" border="0" cellspacing="0" cellpadding="0"> <tr height="171"> <td width="259" height="171"> <table width="64" border="0" cellspacing="0" cellpadding="0"> <tr height="42"> <td width="259" height="42"><a href="mailto:[email protected]"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_05.gif" alt="" width="259" height="42" border="0"></a></td> </tr> <tr height="129"> <td width="259" height="129"> <table width="210" border="0" cellspacing="0" cellpadding="0"> <tr height="129"> <td width="178" height="129"><p class="boxtext"><font size="2">If you can't find what you're looking for email us the part you need. We sell parts for all generations of F-bodys Most likely we have the part you need.</p></td> <td height="129"><a href="mailto:[email protected]"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_08.gif" alt="" width="81" height="129" border="0"></a></td> </tr> </table> </td> </tr> </table> </td> <td width="100" height="171"> <table width="64" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="251"><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=89"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_06.gif" alt="" width="251" height="42" border="0"></a></td> </tr> <tr height="129"> <td width="251" height="129"> <table width="210" border="0" cellspacing="0" cellpadding="0"> <tr height="129"> <td width="121" height="129"><p class="boxtext"><font size="2">When it comes to induction WS6store is your F-body source. We carry all major brands.</p></td> <td height="129"><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=89"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_10.jpg" alt="" width="130" height="129" border="0"></a></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <table width="188" border="0" cellspacing="0" cellpadding="0" height="154"> <tr> <td><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=83"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_11.jpg" alt="" width="126" height="154" border="0"></a></td> <td><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=87"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_12.jpg" alt="" width="133" height="154" border="0"></a></td> <td><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=235_89_46"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_13.jpg" alt="" width="121" height="154" border="0"></a></td> <td><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=84_129"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_14.jpg" alt="" width="130" height="154" border="0"></a></td> </tr> </table> </td> </tr> </table> <hr> </td> </tr> </table>'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'welcome'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'categories'); } ?> All help appreciated!! Thx.
Jan Zonjee Posted August 5, 2004 Posted August 5, 2004 Parse error: parse error, unexpected T_STRING in /home/ws6proje/public_html/user_stor/catalog/includes/languages/english/index.php on line 66 Here is the file: The mistake is in the PHP-code (specifically on line 66 of the file ..../english/index.php). What you show is the output (HTML). Very hard for anyone to figure out what went wrong (something very small probably, like a missing " or an extra ; ).
Guest Posted August 5, 2004 Posted August 5, 2004 What you show is the output (HTML). Actually, he posted the actual PHP file, not the HTML source. ;) Find: If you can't find what you're looking for email us the part you need. We sell parts for all generations of F-bodys Most likely we have the part you need. Replace with: If you can\'t find what you\'re looking for email us the part you need. We sell parts for all generations of F-bodys Most likely we have the part you need. While you're in there, you should remove all those extra linebreaks between the define and all the extra lines at the bottom of the file. :)
WS6Store Posted August 5, 2004 Author Posted August 5, 2004 Thanks for the tips...all appreciated. I did find it after skimming through the defines. (bolded in the code below - too many single quotes) <?php /* ?$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ ?osCommerce, Open Source E-Commerce Solutions ?http://www.oscommerce.com ?Copyright © 2003 osCommerce ?Released under the GNU General Public License */ define('TEXT_MAIN', '<table width="507" border="0" cellspacing="2" cellpadding="3" height="321"> ? <tr> ? ?<td colspan="2" valign="top" height="179"> ? ?<table width="461" border="0" cellspacing="2" cellpadding="0"> ? <tr> ? ?<td> ? ? <table width="122" border="0" cellspacing="0" cellpadding="0"> ? ? ?<tr height="185"> ? ? ? <td width="210" height="185"><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=38_154"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_01.jpg" alt="" width="210" height="185" border="0"></a></td> ? ? ? <td width="300" height="185"> ? ? ? ?<table width="64" border="0" cellspacing="0" cellpadding="0"> ? ? ? ? <tr height="41"> ? ? ? ? ?<td width="300" height="41"><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=38_154"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_02.gif" alt="" width="300" height="41" border="0"></a></td> ? ? ? ? </tr> ? ? ? ? <tr height="80"> ? ? ? ? ?<td valign="middle" width="300" height="80"><p class="boxtext"><font size="2">WS6store offers a host of tires at the lowest prices to help you put the Horse on the pavement and save money!</p></td> ? ? ? ? </tr> ? ? ? ? <tr height="64"> ? ? ? ? ?<td width="300" height="64"><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=38_154"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_04.jpg" alt="" width="300" height="64" border="0"></a></td> ? ? ? ? </tr> ? ? ? ?</table> ? ? ? </td> ? ? ?</tr> ? ? </table> ? ?</td> ? </tr> ? <tr> ? ?<td> ? ? <table width="359" border="0" cellspacing="0" cellpadding="0"> ? ? ?<tr height="171"> ? ? ? <td width="259" height="171"> ? ? ? ?<table width="64" border="0" cellspacing="0" cellpadding="0"> ? ? ? ? <tr height="42"> ? ? ? ? ?<td width="259" height="42"><a href="mailto:[email protected]"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_05.gif" alt="" width="259" height="42" border="0"></a></td> ? ? ? ? </tr> ? ? ? ? <tr height="129"> ? ? ? ? ?<td width="259" height="129"> ? ? ? ? ? <table width="210" border="0" cellspacing="0" cellpadding="0"> ? ? ? ? ? ?<tr height="129"> ? ? ? ? ? ? <td width="178" height="129"><p class="boxtext"><font size="2">If you can\'t find what you\'re looking for email us the part you need. We sell parts for all generations of F-bodys. We most likely we have the part you need.</p></td> ? ? ? ? ? ? <td height="129"><a href="mailto:[email protected]"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_08.gif" alt="" width="81" height="129" border="0"></a></td> ? ? ? ? ? ?</tr> ? ? ? ? ? </table> ? ? ? ? ?</td> ? ? ? ? </tr> ? ? ? ?</table> ? ? ? </td> ? ? ? <td width="100" height="171"> ? ? ? ?<table width="64" border="0" cellspacing="0" cellpadding="0"> ? ? ? ? <tr> ? ? ? ? ?<td width="251"><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=89"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_06.gif" alt="" width="251" height="42" border="0"></a></td> ? ? ? ? </tr> ? ? ? ? <tr height="129"> ? ? ? ? ?<td width="251" height="129"> ? ? ? ? ? <table width="210" border="0" cellspacing="0" cellpadding="0"> ? ? ? ? ? ?<tr height="129"> ? ? ? ? ? ? <td width="121" height="129"><p class="boxtext"><font size="2">When it comes to induction WS6store is your F-body source. We carry all major brands.</p></td> ? ? ? ? ? ? <td height="129"><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=89"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_10.jpg" alt="" width="130" height="129" border="0"></a></td> ? ? ? ? ? ?</tr> ? ? ? ? ? </table> ? ? ? ? ?</td> ? ? ? ? </tr> ? ? ? ?</table> ? ? ? </td> ? ? ?</tr> ? ? </table> ? ?</td> ? </tr> ? <tr> ? ?<td> ? ? <table width="188" border="0" cellspacing="0" cellpadding="0" height="154"> ? ? ?<tr> ? ? ? <td><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=83"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_11.jpg" alt="" width="126" height="154" border="0"></a></td> ? ? ? <td><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=87"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_12.jpg" alt="" width="133" height="154" border="0"></a></td> ? ? ? <td><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=235_89_46"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_13.jpg" alt="" width="121" height="154" border="0"></a></td> ? ? ? <td><a href="http://www.ws6project.com/user_stor/catalog/index.php?cPath=84_129"><img src="http://www.ws6project.com/images/LAYOUT_6_22-04_14.jpg" alt="" width="130" height="154" border="0"></a></td> ? ? ?</tr> ? ? </table> ? ?</td> ? </tr> ?</table> ? ? <hr> ? ?</td> ? </tr> ?</table>'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'welcome'); ?define('TABLE_HEADING_IMAGE', ''); ?define('TABLE_HEADING_MODEL', 'Model'); ?define('TABLE_HEADING_PRODUCTS', 'Product Name'); ?define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); ?define('TABLE_HEADING_QUANTITY', 'Quantity'); ?define('TABLE_HEADING_PRICE', 'Price'); ?define('TABLE_HEADING_WEIGHT', 'Weight'); ?define('TABLE_HEADING_BUY_NOW', 'Buy Now'); ?define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); ?define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); ?define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); ?define('TEXT_SHOW', '<b>Show:</b>'); ?define('TEXT_BUY', 'Buy 1 ''); ?define('TEXT_NOW', '' now'); ?define('TEXT_ALL_CATEGORIES', 'All Categories'); ?define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { } elseif ($category_depth == 'nested') { ?define('HEADING_TITLE', 'Categories'); } ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.