brandonhuston Posted January 4, 2005 Posted January 4, 2005 I have not done anything to my site since I last visited it, but today I get this error. Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/hustonb/public_html/catalog/includes/languages/english/index.php on line 93 Here is a copy of my index.php <?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', '<html> <head> <title>Fire poi</title> <meta http-equiv="Content-Type" content="fire, poi, twirling, kevlar wick"> </head> <body> <table width="75%" border="0" cellpadding="4" align="center"> <tr> <td> <h1 align="center"><font color="#ff6600">The Spinsterz</font></h1> </td> </tr> </table> <p> </p> <table width="75%" border="0" cellpadding="4" align="center"> <tr> <td> <div align="center"> <h3>Home of fire performance equipment and supplies. Fire twirling, Fire Poi, kevlar wick, Kevlar Rope, Ballchain and lots of Hardware .</h3> </div> </td> </tr> </table> <p> </p> <table width="75%" border="0" cellpadding="4" align="center"> <tr> <td> <p>Check back frequently as I get more of my products listed and more of my equipment and performance tools updated. There are always new "toys" and projects in the works. </p> <p>Have fun "twirling" and be safe.</p> </td> </tr> </table> <p></p> <br> <br> <center><a target="_top" href="http://www.homeofpoi.com/ring.htm"><img src="http://www.homeofpoi.com/images/poi/ring.gif" border=0></a> <br> | <a target="_top" href="http://www.homeofpoi.com/ring.htm"><font color="#33FF00">Swinging & Twirling Sites</font></a> | <a target="_top" href="http://www.ringsurf.com/netring?ring=Fireart;id=353;action=list"><font color="#33FF00">List</font></a> | <a target="_top" href="http://www.ringsurf.com/netring?ring=Fireart;id=353;action=rand"><font color="#33FF00">Random</font></a> | <a target="_top" href="http://www.ringsurf.com/netring?ring=Fireart;id=353;action=next"><font color="#33FF00">Next</font></a> | <a target="_top" href="http://www.ringsurf.com/netring?ring=Fireart;action=addform"><font color="#33FF00">Join</font></a> ] </center> <p></p> <center><img src="/cgi-sys/Count.cgi?df=hustonb.dat|display=Counter|ft=6|md=5|frgb=100;139;216|dd=A"></center> <p> </p> <p> </p><h1> </h1> </body> </html>'); 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', ucwords(strtolower($categories['categories_name']))); 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') { define('HEADING_TITLE', 'Welcome to The Spinsterz'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', ucwords(strtolower($categories['categories_name']))); } ?> does anybody see anything strange or can anyone help me to fix this error? thanks, Brandon
Guest Posted January 4, 2005 Posted January 4, 2005 when you post things like this, it is easier to post the 5 lines before and after the error, (unless you post what line 93 is)
Guest Posted January 4, 2005 Posted January 4, 2005 now that i downloaded it, put it into an editor to find the line numbers, define('TEXT_NOW', '' now'); define('TEXT_NOW', ' now');
brandonhuston Posted January 4, 2005 Author Posted January 4, 2005 now that i downloaded it, put it into an editor to find the line numbers, define('TEXT_NOW', '' now'); define('TEXT_NOW', ' now'); <{POST_SNAPBACK}> Is the bottom one what I should change it to?
Guest Posted January 4, 2005 Posted January 4, 2005 use the bottom one. also this: define('TEXT_BUY', 'Buy 1 ''); to: define('TEXT_BUY', 'Buy 1 ');
brandonhuston Posted January 4, 2005 Author Posted January 4, 2005 use the bottom one. also this: define('TEXT_BUY', 'Buy 1 ''); to: define('TEXT_BUY', 'Buy 1 '); <{POST_SNAPBACK}> thanks so much for the help, it all works fine now. But how do these things happen? how did they get change if I didn't mess with it? Brandon
Guest Posted January 4, 2005 Posted January 4, 2005 the 'puter goblin . ..ummm, someone did, as they dont change on their own
Recommended Posts
Archived
This topic is now archived and is closed to further replies.