ewholesalesunglassesdotcom Posted November 12, 2004 Posted November 12, 2004 :'( omg.. what have I done? I'm a total newbie.. I probably shouldn't even be allowed to touch this program! Anyways, all i wanted was to get rid of the default text on the main page from osommerce. I thought I was carefully deleting just the text stuff... but nooooooooooo, I destroyed everything!!!!! :'( When I open the website this is all I get now: Parse error: parse error, unexpected T_STRING in /home/virtual/site330/fst/var/www/html/includes/languages/english/index.php on line 14 ------------------------------------------------------------------- This is a copy of my index.php 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 © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Welcome to eWholesaleSunglasses.com! If you need assistance please feel free to use our Live Help customer support system. Please note that most of our sunglasses are inspired by the listed manufacturers. All of which are legal and do not violate any copyright laws. <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/warningcone.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>; 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', 'Let\'s See What We Have Here'); 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', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> ::::::::::::::::banging head on keyboard:::::::::::::::: Oh what have I done? Can anyone help me? Please :'(
user99999999 Posted November 12, 2004 Posted November 12, 2004 You need 1 more ' on the end. '</td><td class="main" valign="top"><b>Error Messages</b><br><br>';
gscreations Posted November 12, 2004 Posted November 12, 2004 The error is here: define('TEXT_MAIN', 'Welcome to eWholesaleSunglasses.com! If you need assistance please feel free to use our Live Help customer support system. Please note that most of our sunglasses are inspired by the listed manufacturers. All of which are legal and do not violate any copyright laws. <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/warningcone.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>; change it to: define('TEXT_MAIN', 'Welcome to eWholesaleSunglasses.com! If you need assistance please feel free to use our Live Help customer support system. Please note that most of our sunglasses are inspired by the listed manufacturers. All of which are legal and do not violate any copyright laws.'); and put this bit under where the include TEXT_MAIN bit appears on your index.php <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/warningcone.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>
Guest Posted November 12, 2004 Posted November 12, 2004 OK, open the file in your favourite text editor. Replace: define('TEXT_MAIN', 'Welcome to eWholesaleSunglasses.com! If you need assistance please feel free to use our Live Help customer support system. Please note that most of our sunglasses are inspired by the listed manufacturers. All of which are legal and do not violate any copyright laws. <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/warningcone.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>; ...with... define('TEXT_MAIN', 'Welcome to eWholesaleSunglasses.com! If you need assistance please feel free to use our Live Help customer support system. Please note that most of our sunglasses are inspired by the listed manufacturers. All of which are legal and do not violate any copyright laws.'); ...then re-upload the file. This will get you up and running again quick. If there's more text that you need on your home page, just add it in after the final " laws." and before the '); If you have any apostrophes in your text, then you need to type them as \', otherwise PHP will think that the ' is ending the TEXT_MAIN definition, and you'll get an error. If you're unsure, post what you intend here and I'll have a look for you. Don't edit the file using the admin file manager, it tends to screw files up. And always make a backup!
gscreations Posted November 12, 2004 Posted November 12, 2004 Also these lines: define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); you dont need to do that just delete the extra ' like: define('TEXT_BUY', 'Buy 1 '); define('TEXT_NOW', ' now');
arod Posted November 13, 2004 Posted November 13, 2004 imho, all you miss is a close quotes and parenthesis "')" in the line that looks like: '</td><td class="main" valign="top"><b>Error Messages</b><br><br>; should become '</td><td class="main" valign="top"><b>Error Messages</b><br><br>'); and everyone will be happy.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.