Post by hfinlay10 » Tue Oct 16, 2012 9:37 pm

Hi, I'm getting a syntax error in ALL .tpl files in the directory admin/view/template/module. The Dreamweaver error is:

"There is a syntax error on line xx. Code hinting may not work until you fix this error."

The offending line is always this one:

Code: Select all

html += '<option value="<?php echo $layout['layout_id']; ?>"><?php echo addslashes($layout['name']); ?></option>';
Can anyone point to why I am getting this error, and where it is coming from?
Thanks.

New member

Posts

Joined
Thu Apr 12, 2012 8:20 am
Location - Australia

Post by kingsley » Tue Oct 16, 2012 10:18 pm

You can't always trust Dreamweaver, it isn't that clever. The code doesn't look wrong to me, quotes are the only thing I'd look at but I can't see anything wrong. Your best bet is to upload it to your web server quickly, check if you have any actual php errors (check the error log if you hide errors) and go from there. Be sure to back up your script(s) first though.

Newbie

Posts

Joined
Wed Dec 07, 2011 1:57 am

Post by hfinlay10 » Tue Oct 16, 2012 10:24 pm

Thx for the suggestion. I'm not getting any php errors related to this showing up the in error log (only a few old unrelated ones).

New member

Posts

Joined
Thu Apr 12, 2012 8:20 am
Location - Australia
Who is online

Users browsing this forum: No registered users and 5 guests