LadyCrystal Posted November 16, 2008 Share Posted November 16, 2008 Hi, everyone. I have just started to customizing my pages and thought i was doing something simlple,I guess i wasnt paying attention cuz this is what I did. Im sure the errors in the main text ...if someone could please help that would be great. Parse error: syntax error, unexpected T_STRING in /home/enchan10/public_html/store/includes/languages/english/index.php on line 13 Here's what the index.php looks like <?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 my magickally enchanted home! I hope you enjoy shopping here. You'll find an enchanting mix of whimsical gifts, mystical treasures and metaphysical supplies. My goal is to offer you an eclectic, & artful array of treasures for home & garden, as well as mind, body and soul. I create many one of a kind items such as unique gourd art, ceramics, sculpture, hand painted signs, boxes, and whimsical garden decor. Purveyor of fine incense, oils & perfumes from India, intoxicating candles, soaps, lotions, & love potions. We carry affordable gemstone & sterling silver jewelry, books, henna kits, tarot decks, runes, wands, & fantasy creatures. All credit card orders are processed securely via <A HREF=http://www.paypal.com TARGET="_new"><u>PayPal</u></a> using 128-bit encryption technology. Please <A HREF="contact_us.php"><u>contact us</u></a> if you have any questions. Happy shopping!'); 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', 'Mystical Gifts and Supplies'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Link to comment Share on other sites More sharing options...
LadyCrystal Posted November 16, 2008 Author Share Posted November 16, 2008 NEVER MIND, I figured it Out , thanks. Link to comment Share on other sites More sharing options...
MinipainterUS Posted November 17, 2008 Share Posted November 17, 2008 Well if you could tell me how you fixed it, I would appreciate it. I came here looking to resolve the same issue. Link to comment Share on other sites More sharing options...
germ Posted November 17, 2008 Share Posted November 17, 2008 Her problem: You'll find an enchanting Should be: You\'ll find an enchanting If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
MinipainterUS Posted November 17, 2008 Share Posted November 17, 2008 I tried that, am still getting this error message: Parse error: syntax error, unexpected T_STRING in /<removed for security reasons>/www/shopping/catalog/includes/languages/english/index.php on line 13 Link to comment Share on other sites More sharing options...
germ Posted November 17, 2008 Share Posted November 17, 2008 If you cant post (or PM me) the code from the file I can't help... I can't fix what I can't see. :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
MinipainterUS Posted November 17, 2008 Share Posted November 17, 2008 Thanks for taking the time with my silly self: <?php/* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Welcome to Goodwin\ 's Painting Service Online Store'); 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'); } ?> Link to comment Share on other sites More sharing options...
germ Posted November 17, 2008 Share Posted November 17, 2008 Use this for the code for the one line: define('TEXT_MAIN', 'Welcome to Goodwin\'s Painting Service Online Store'); Your code has a space in the wrong place.... :blush: And these lines need fixed: define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('HEADING_TITLE', 'What\'s New Here?'); Don't use the osC File Mangler Manager to edit PHP files. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
MinipainterUS Posted November 17, 2008 Share Posted November 17, 2008 You are my new hero! These fixes worked. :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.