Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PARSE ERROR, UNEXPECTED T_STRING


julielan

Recommended Posts

Help, please help for I'm going insane!!!! This is my first time to build a website on a webserver and I am learning step by step and I am desperately in need of repairing this script.

 

I had edited the The Text Main in languages/englisht/index.php and I receive this error

 

Parse error: parse error, unexpected T_STRING in /home/julielan/public_html/includes/languages/english/index.php on line 18.

 

PLEASE SOMEONE REVIEW THE SCRIPT & PLEASE HELP ME FIX IT.

 

SCRIPTS BELOW:

 

 

<?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_GREETING_GUEST', 'Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

 

 

<br><td align="center" height="100%" width="100%" valign="top"><table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">

<tr bgcolor="#F2F3F4">

<td width="8" height="27"><img src="http://www.julielanhomefurnishings.com/store/images/Mom log.jpg" alt='Formating' width="8" height="27"></td>

<td height="27" background="http://julielanhomefurnishings.com/store/images/Mom log.jpg" alt='Formating' align="center"><h1><b></b></h1></b></td>

<td width="8" height="27"><img src="http://julielanhomefurnishings.com/store/images/Mom log.jpg" alt='Formating' width="8" height="27"></td>

</tr>

<tr width="100%" bgcolor="#FFFFFF">

<td background="http://julielanhomefurnishings.com/store/images/Mom log.jpg" alt='Formating' width="8"> </td>

<td width="100%"><table border="0" width="95%" cellspacing="2" cellpadding="5" align="center">

<tr><td colspan="6" align=center class="title1"><strong>Please select a Catalog to view:</strong></td>

 

<tr align="center"><td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=25"><img src='http://www.julielanhomefurnishings.com/images/4591.jpg' alt='African American Heritage Collection' width='162' height='210' border='0'></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=25">African American Heritage Collection</a></td>

 

<td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=22"><img src='http://www.julielanhomefurnishings.com/images/4301.jpg' alt='Bayberry Lane' width='162' height='210' border='0'></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=22">Bayberry Lane</a></td>

 

<td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=26"><img src='http://www.julielanhomefurnishings.com/images/4940.jpg' alt='Heritage Trails' width='162' height='210' border='0'></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=26">Heritage Trails</a></td>

 

<tr align="center"><td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=24"><img src='http://www.julielanhomefurnishings.com/images/4933.jpg' alt='Wings of Devotion' width='162' height='210' border='0'></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=24">Wings of Devotion</a></td>

 

<td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=23"><img src='http://www.julielanhomefurnishings.com/images/4932.jpg' alt='Summerfield Terrace' width='162' height='210' border='0'></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=23">Summerfield Terrace</a></td>

 

<td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=21"><img src='http://www.julielanhomefurnishings.com/images/4312.jpg' alt='World of Products' width='162' height='210' border='0'></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=21">World of Products</a></td></td></tr></a></td>

 

 

 

</td>

<td></td>

<td></td>

<td></td>

<td></td>

</tr></table><table border="0" width="100%" cellspacing="2" cellpadding="5" align="center">

<tr>

<td align="left"><center><font size="5"><b>No Fee Drop Shipping</b></font></center>

</td>

</tr>

</table>

</td>

<td></td>

</tr>

</br></td>

 

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

Go through all of the html you added. You need to use " not '

for example

alt='Formating'

should be

alt="Formating"

 

You have used ' soooo many times or I would have just corrected it all for you. That should solve your problem.

 

Remember, if you use a word with an apostrophe in it then you need to put a \ in there... like we\'re.

 

Do not use the file manager that comes with osCommerce, there are known issues with it. Download the file to your computer, edit, then reupload.

 

Hope that helps.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

You're welcome. It should fix it, if not just let us know what the error is and post your code.

 

Tsting error is the ' out of place, two many, etc error though so you should be good to go. :)

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Hi Wendy, it is not repaired. I had revised them, triple check them, uploaded and now, not only tne layout is not the same, the images do not show and I receive another error message. I reviewed my file in the webserver control panel. Please kindly review my codes below. Thank you very much in advance for helping me.

 

Parse error: parse error, unexpected '<' in /home/julielan/public_html/includes/languages/english/index.php on line 14

 

<?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_GREETING_GUEST', "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

<td align="center" height="100%" width="100%" valign="top"><table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">

<tr bgcolor="#F2F3F4">

<td width="8" height="27"><img src="http://www.julielanhomefurnishings.com/store/images/Mom log.jpg" alt="Formating" width="8" height="27"></td>

<td height="27" background="http://julielanhomefurnishings.com/store/images/Mom log.jpg" alt="Formating" align="center"><h1><b>DECORATE FOR LESS</b></h1></b></td>

<td width="8" height="27"><img src="http://julielanhomefurnishings.com/store/images/Mom log.jpg" alt="Formating" width="8" height="27"></td>

</tr>

<tr width="100%" bgcolor="#FFFFFF">

<td background="http://julielanhomefurnishings.com/store/images/Mom log.jpg" alt="Formating" width="8"> </td>

<td width="100%"><table border="0" width="95%" cellspacing="2" cellpadding="5" align="center">

<tr><td colspan="6" align=center class="title1"><strong>Please select a Catalog to view:</strong></td><tr align="center"><td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=25"><img src=?http://www.julielanhomefurnishings.com/images/4591.jpg? alt=?African American Heritage Collection? width=?162? height=?210? border=?0?></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=25">African American Heritage Collection</a></td>

 

<td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=22"><img src=?http://www.julielanhomefurnishings.com/images/4301.jpg? alt=?Bayberry Lane? width=?162? height=?210? border=?0?></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=22">Bayberry Lane</a></td>

 

<td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=26"><img src=?http://www.julielanhomefurnishings.com/images/4940.jpg? alt=?Heritage Trails? width=?162? height=?210? border=?0?></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=26">Heritage Trails</a></td>

 

<tr align="center"><td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=24"><img src=?http://www.julielanhomefurnishings.com/images/4933.jpg? alt='Wings of Devotion' width=?162? height=?210? border=?0?></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=24">Wings of Devotion</a></td>

 

<td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=23"><img src=?http://www.julielanhomefurnishings.com/images/4932.jpg? alt=?Summerfield Terrace? width=?162? height=?210? border=?0?></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=23">Summerfield Terrace</a></td>

 

<td align="center" width="%" valign="bottom"><a href="http://julielanhomefurnishings.com/index.php?cPath=21"><img src=?http://www.julielanhomefurnishings.com/images/4312.jpg? alt=?World of Products? width=?162? height=?210? border=?0?></a><br><a href="http://julielanhomefurnishings.com/index.php?cPath=21">World of Products</a></td></td></tr></a></td>

 

 

 

</td>

<td></td>

<td></td>

<td></td>

<td></td>

</tr></table><table border="0" width="100%" cellspacing="2" cellpadding="5" align="center">

<tr>

<td align="left"><center><font size="5"><b>No Fee Drop Shipping</b></font></center>

</td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>'

 

 

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');

}

?>

 

 

 

<p> </p>

Link to comment
Share on other sites

Wendy, I had fixed it, thus it appears weird on my home page. Pls. take a look at it and listed below is the script. What have I done wrong. Please help me. Thank you.

 

http://www.julielanhomefurnishings.com

 

<?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

*/?>

 

<html>

<head></head>

 

<!-- whats_new //-->

<tr>

<td>

<table border='0' width='100%' cellspacing='0' cellpadding='0'>

<tr>

<td width='100%' height='14' class='infoBoxHeading'></td>

 

 

</tr>

</table>

</td>

 

<!-- body_text //-->

<td align='center' height='100%' width='100%' valign='top'><table width='100%' border='0' align='center' cellspacing='0' cellpadding='0'>

<tr bgcolor="#F2F3F4">

<td height='27' background='http://julielanhomefurnishings.com/images/Mom%20logo.jpg'></td> <td align='center' <h1><b>DECORATE FOR LESS</b></h1></b></td> <tr width='100%' bgcolor='#FFFFFF'>

<td background='http://julielanhomefurnishings.com/store/images/Mom log.jpg' alt='Formating' width='8'> </td>

<td width='100%'><table border='0' width='95%' cellspacing='2' cellpadding='5' align='center'>

<tr><td colspan='6' align=center class='title1'><strong>Please select a Catalog to view:</strong></td>

 

<tr align='center'><td align='center' width='%' valign='bottom'><a href='http://julielanhomefurnishings.com/index.php?cPath=25'><img src='http://www.julielanhomefurnishings.com/images/4591.jpg' alt='African American Heritage Collection' width='162' height='210' border='0'></a><br><a href='http://julielanhomefurnishings.com/index.php?cPath=25'>African American Heritage Collection</a></td>

 

<td align='center' width='%' valign='bottom'><a href='http://julielanhomefurnishings.com/index.php?cPath=22'><img src='http://www.julielanhomefurnishings.com/images/4301.jpg' alt='Bayberry Lane' width='162' height='210' border='0'></a><br><a href='http://julielanhomefurnishings.com/index.php?cPath=22'>Bayberry Lane</a></td>

 

<td align='center' width='%' valign='bottom'><a href='http://julielanhomefurnishings.com/index.php?cPath=26'><img src='http://www.julielanhomefurnishings.com/images/4940.jpg' alt='Heritage Trails' width='162' height='210' border='0'></a><br><a href='http://julielanhomefurnishings.com/index.php?cPath=26'>Heritage Trails</a></td></td></tr>

 

<tr align='center'><td align='center' width='%' valign='bottom'><a href='http://julielanhomefurnishings.com/index.php?cPath=24'><img src='http://www.julielanhomefurnishings.com/images/4933.jpg' alt='Wings of Devotion' width='162' height='210' border='0'></a><br><a href='http://julielanhomefurnishings.com/index.php?cPath=24'>Wings of Devotion</a></td>

 

<td align='center' width='%' valign='bottom'><a href='http://julielanhomefurnishings.com/index.php?cPath=23'><img src='http://www.julielanhomefurnishings.com/images/4932.jpg' alt='Summerfield Terrace' width='162' height='210' border='0'></a><br><a href='http://julielanhomefurnishings.com/index.php?cPath=23'>Summerfield Terrace</a></td>

 

<td align='center' width='%' valign='bottom'><a href='http://julielanhomefurnishings.com/index.php?cPath=21'><img src='http://www.julielanhomefurnishings.com/images/4312.jpg' alt='World of Products' width='162' height='210' border='0'></a><br><a href='http://julielanhomefurnishings.com/index.php?cPath=21'>World of Products</a></td></td></tr></a></td>

 

 

 

</td>

<td></td>

<td></td>

<td></td>

<td></td>

</tr></table><table border='0' width='100%' cellspacing='2' cellpadding='5' align='center'>

<tr>

<td align='left'><center><font size='5'><b>No Fee Drop Shipping</b></font></center>

</td>

</tr>

</table>

</td>

<td></td>

</tr>

</table></body></html>

 

<?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('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

Glad you got it sorted out, too bad you paid someone though. :)

Drats! I'm having a similar problem.

 

Maybe you could help me? I tried to program something so that the secure/unsecure items error wouldn't come up due to a link to an outside hit counter in my footer.php file:

 

}

<?php

if ($request_type != 'SSL') {

<p><center><!--WEBBOT bot="Script" startspan PREVIEW="Site Meter" -->

<script type="text/javascript" language="JavaScript">var site="s19davikwebstore"</script>

<script type="text/javascript" language="JavaScript1.2" src="http://s19.sitemeter.com/js/counter.js?site=s19davikwebstore">

</script>

<noscript>

<a href="http://s19.sitemeter.com/stats.asp?site=s19davikwebstore" target="_top">

<img src="http://s19.sitemeter.com/meter.asp?site=s19davikwebstore" alt="Site Meter" border="0"/></a>

</noscript>

}

?>

<!-- Copyright ©2005 Site Meter -->

<!--WEBBOT bot="Script" Endspan -->

 

The line where the first <?php is, is line 62.

 

and now I get this msg at the bottom of all the pages:

 

Parse error: parse error, unexpected '<' in /home/amerint/public_html/davikwebstore/includes/footer.php on line 62

/end of error msg.

 

Could you please help me straighten out what I did wrong please?

 

I was trying to use a similar php code found in the documentation to do this but apparently it's not quite what I need. Or I did it wrong.

 

Good news is that the annoying secure/non secure items error msg has stopped coming up. :)

 

Thanks!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...