Post by dantheman50_98 » Fri Mar 30, 2012 3:49 am

Hi there,

Dreameaver (version cs5.5) is telling me there's a syntax error on line 377 of the following file:
catalog\view\theme\default\template\product\product.tpl

This is the line:

Code: Select all

new AjaxUpload('#button-option-<?php echo $option['product_option_id']; ?>', {
I'm using the latest version (1.5.2.1) and I downloaded the up-to-date patch (as of 26-03-2012) and the syntax error is still there.

Dan

Active Member

Posts

Joined
Sat Sep 18, 2010 2:18 am

Post by Etcher » Fri Mar 30, 2012 10:29 pm

I noticed the same error, but I think Dreamweaver is getting confused with the single quotes. If you change the outside quotes and leave the quotes inside the square brackets as single then the error disappears. Of course, once you fix that one the error will move down the page a couple of times until you do the same with those lines too.

Newbie

Posts

Joined
Fri Mar 30, 2012 10:25 pm

Post by timparnell » Mon Apr 02, 2012 5:27 am

Yes, this is quite annoying. The code works fine but it's a pain seeing it flagged up everytime you go in to the file....
Does anyone know if it will function with the outside quotes changed to double quotes....
I'm going to try it and see if it breaks it....
TimP
EDIT :: It's seems to work.... you only need to change about 6 lines... as I said before - no change in function, but Dreamweaver flag is irritating.... :laugh:

tim@pointreddesign.co.uk | http://www.pointreddesign.co.uk


User avatar
New member

Posts

Joined
Wed Feb 01, 2012 11:03 pm
Location - Norwich, Norfolk, UK

Post by dantheman50_98 » Mon Apr 02, 2012 6:14 am

Yeah it is irritating, but as it doesn't seem to affect anything I reckon I'll leave it as it is. Thanks.

Active Member

Posts

Joined
Sat Sep 18, 2010 2:18 am
Who is online

Users browsing this forum: No registered users and 6 guests