Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error


patrickbailey1

Recommended Posts

Posted

I'm trying to just write the path of the three buttons (the sign in...checkout...my cart)...the path is wrong though and i'm getting a parse error...my dreamweaver isn't picking up errors for some reason...

 

<tr>
	 <td><img src="images/a2.jpg"></td>
	 <td><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '"><img src="images/tb1.jpg" border="0"></a>?></td>
	 <td><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><img src="images/tb2.jpg" border="0"></a>?></td>
	 <td><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><img src="images/tb3.jpg" border="0"></a>?></td>
	 </tr>

 

thanks!

 

Patrick

Patrick Bailey

www.DisplayHaven.com

Posted

Here's a fresh one...

 

Parse error: parse error, unexpected T_STRING in /hsphere/local/home/havenbiz/havenelectronics.com/catalog/includes/languages/english.php on line 310

 

define('TEXT_GREETING_GUEST', '<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="3">
 <table border="0" cellpadding="0" cellspacing="0">
 <tr>
	 <td><img src="i/a40.jpg"></td>
	 <td style="background-image: url('i/a41.jpg'); background-repeat: repeat-x;" width="100%" align="right"><img src="i/a44.jpg"></td>
	 <td><img src="i/a45.jpg"></td>
 </tr>
 </table>
</td>
</tr>
<tr>
<td style="background-image: url('i/a50.jpg'); background-repeat: repeat-y;"><img src="i/a50.jpg"></td>
<td width="100%">
 <!-- wincontent start -->
 <table border="0" cellpadding="0" cellspacing="0">
 <tr>
	 <td colspan="3"><img src="i/fa1.jpg"></td>
 </tr>
       <tr> 
         <td align="center" valign="top" width="50%%"><img src="images/2.jpg" ALT="Function"  height="227"></td>
         <td align="center" valign="top" width="50%%"><img src="images/1.jpg" ALT="Style" height="227"></td>
       </tr>
<tr>
	 <td colspan="3"><img src="i/fa5.jpg"></td>
 </tr>
 </table>
 <!-- wincontent end -->
</td>
<td style="background-image: url('i/a52.jpg'); background-repeat: repeat-y;"><img src="i/a52.jpg"></td>
</tr>
<tr>
<td><img src="i/a71.jpg"></td>
<td style="background-image: url('i/a72.jpg'); background-repeat: repeat-x;"><img src="i/a72.jpg"></td>
<td><img src="i/a74.jpg"></td>
</tr>
<tr>
<td colspan="3"><img src="i/spacer.gif" width="1" height="25"></td>
</tr>
</table>');

Patrick Bailey

www.DisplayHaven.com

Posted
Here's a fresh one...

is this related to your first problem, or did you solve it?

 

Here's code from the first one that should work, although I did not upload to test.

 

<tr>
 <td><img src="images/a2.jpg"></td>
 <td><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">'<img src="images/tb1.jpg" border="0">'</a>';?></td>
 <td><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">'<img src="images/tb2.jpg" border="0">'</a>'?></td>
 <td><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">'<img src="images/tb3.jpg" border="0">'</a>'?></td>
 </tr>

 

Dreamweaver is not noted for doing anything php, and doesn't even create very good html.

 

Check out some of the good text editors, here's a free one if you can find any.

 

http://www.htmlbeauty.com/

GEOTEX from Houston, TX

 

(George)

Posted

Yeah, i had more editing to do, so i erased that and reloaded the original, now i have a fresh parse error. See i downloaded a small, non-oscommerce template thing and i'm trying to integrate. I get parse errors all the time and dreamweaver has been sucking for me...So yes, that is a new one..if you could help on that one too that would be great because i dont dare go back and reload the one you fixed YET because i try to just edit one file at a time so i know which file is messed up. I will go back and re-try the one you fixed once this is fixed! I really appreciate your help! ! Thanks soooooo much!

 

Patrick

Patrick Bailey

www.DisplayHaven.com

Posted

Your right on that. Haven't looked for any for Mac :(

GEOTEX from Houston, TX

 

(George)

Posted
Yeah, i had more editing to do, so i erased that and reloaded the original, now i have a fresh parse error. See i downloaded a small, non-oscommerce template thing and i'm trying to integrate

 

In your style functions, there are a lot of ' (single quotes). Since that is what your are using to define your TEXT_GREETING_GUEST, you will have to escape all the single quotes between your opening and closing ' with \.

 

As an example:

 

<td style="background-image: url(\'i/a41.jpg\'); background

 

hth

GEOTEX from Houston, TX

 

(George)

Posted

i just got bbedit...hopefully that will work out better than dreamweaver for editing purposes!

 

And thank you! This has been a frusterating 2 days! Do you just use a "HTML Syntax Error" thing to find that?

Patrick Bailey

www.DisplayHaven.com

Posted

Now i'm getting

 

Warning: sprintf(): Too few arguments in /hsphere/local/home/havenbiz/havenelectronics.com/catalog/includes/functions/general.php on line 939

 

These damn errors...killin me!

Patrick Bailey

www.DisplayHaven.com

Archived

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

×
×
  • Create New...