cwelch Posted January 20, 2009 Share Posted January 20, 2009 As a novice, I'm having trouble locating the issue. I took out the standard wording between the(), replaced it with my wording and didn't move anything else... or so I thought! What should I be looking for as the error? ??? Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/ Share on other sites More sharing options...
Maq Posted January 20, 2009 Share Posted January 20, 2009 A missing bracket, code please. Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/#findComment-741370 Share on other sites More sharing options...
kenrbnsn Posted January 20, 2009 Share Posted January 20, 2009 Please post the code you're having problems with between tags. Ken Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/#findComment-741371 Share on other sites More sharing options...
cwelch Posted January 20, 2009 Author Share Posted January 20, 2009 define('TEXT_MAIN', 'The LoveBazaar is a place for Couples to explore and enjoy their sexuality. We will ALWAYS respect your privacy, and it is our goal that you are 100% satisfied, both with us and within yourself. <b>Any products that you want but do not see can be requested by emailing us at requests@thelovebazaar.net</b>.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Shipping</b><br><br>Most of our products ship within 24 hours provided that you get your order to us before 1PM EST. Orders placed after 1PM EST will be included in the following day's shipments.<br><br></td></tr> <td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Paying for Your Order</b><br><br>We accept MasterCard, VISA, American Express, Discover, PayPal, checks and money orders. Your order will be processed for shipment as soon as your payment clears. As soon as that occurs, we will contact you by email to let you know when you should expect your shipment.<br><br>br><br><tr><td class="main" valign="top">') 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'); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/#findComment-741392 Share on other sites More sharing options...
Maq Posted January 20, 2009 Share Posted January 20, 2009 Are you serious? Could you maybe... format it? And this? thx Please post the code you're having problems with between tags. Ken Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/#findComment-741395 Share on other sites More sharing options...
kenrbnsn Posted January 20, 2009 Share Posted January 20, 2009 You can not have a function call in the middle of defining a constant. You also forgot the ";" at the end of that line. Just assign that string to a variable instead: <?php $'TEXT_MAIN = 'The LoveBazaar is a place for Couples to explore and enjoy their sexuality. We will ALWAYS respect your privacy, and it is our goal that you are 100% satisfied, both with us and within yourself. <b>Any products that you want but do not see can be requested by emailing us at requests@thelovebazaar.net</b>.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Shipping</b><br><br>Most of our products ship within 24 hours provided that you get your order to us before 1PM EST. Orders placed after 1PM EST will be included in the following day's shipments.<br><br></td></tr> <td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Paying for Your Order</b><br><br>We accept MasterCard, VISA, American Express, Discover, PayPal, checks and money orders. Your order will be processed for shipment as soon as your payment clears. As soon as that occurs, we will contact you by email to let you know when you should expect your shipment.<br><br>br><br><tr><td class="main" valign="top">'; ?> Ken Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/#findComment-741460 Share on other sites More sharing options...
cwelch Posted January 21, 2009 Author Share Posted January 21, 2009 When the '=' is added, I get: Parse error: syntax error, unexpected '=' in /misc/42/000/153/504/4/user/web/thelovebazaar.net/catalog/includes/languages/english/index.php on line 13 Thanks for your patience... when I said novice... I'm speaking 3 to 4 hours into php.... Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/#findComment-742221 Share on other sites More sharing options...
Maq Posted January 21, 2009 Share Posted January 21, 2009 Yeah, because you have an extra single quote after the $. $'TEXT_MAIN = ' You need to change it to: $TEXT_MAIN = ' Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/#findComment-742227 Share on other sites More sharing options...
MadTechie Posted January 21, 2009 Share Posted January 21, 2009 $TEXT_MAIN = 'The LoveBazaar is a place for Couples to explore and enjoy their sexuality. We will ALWAYS respect your privacy, and it is our goal that you are 100% satisfied, both with us and within yourself. <b>Any products that you want but do not see can be requested by emailing us at requests@thelovebazaar.net</b>.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Shipping</b><br><br>Most of our products ship within 24 hours provided that you get your order to us before 1PM EST. Orders placed after 1PM EST will be included in the following day\'s shipments.<br><br></td></tr> <td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Paying for Your Order</b><br><br>We accept MasterCard, VISA, American Express, Discover, PayPal, checks and money orders. Your order will be processed for shipment as soon as your payment clears. As soon as that occurs, we will contact you by email to let you know when you should expect your shipment.<br><br>br><br><tr><td class="main" valign="top">'; you also needed to escape the single quote and i assume tep_image is a function ! Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/#findComment-742228 Share on other sites More sharing options...
cwelch Posted January 21, 2009 Author Share Posted January 21, 2009 Okay... looks like it's worse... I've got -> Fatal error: Call to a member function add_current_page() on a non-object in /misc/42/000/153/504/4/user/web/thelovebazaar.net/catalog/includes/application_top.php on line 312 I'm going to restore my backup & try this again. I'll let you know how this turned out. Thank you for your time... Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/#findComment-742247 Share on other sites More sharing options...
Maq Posted January 21, 2009 Share Posted January 21, 2009 Okay... looks like it's worse... I've got -> Fatal error: Call to a member function add_current_page() on a non-object in /misc/42/000/153/504/4/user/web/thelovebazaar.net/catalog/includes/application_top.php on line 312 I'm going to restore my backup & try this again. I'll let you know how this turned out. Thank you for your time... Don't give up! Why don't you rollback the backup on the live/production server and test it out on a local web server (unless that's what you're on)? Anyway, at least you got past the first part (line 13), now you're all the way down to 312! Side note, please use [.code] tags. Quote Link to comment https://forums.phpfreaks.com/topic/141633-parse-error-syntax-error-unexpected-t_string/#findComment-742251 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.