aaspeer Posted May 16, 2009 Posted May 16, 2009 Hello, I am having a problem with a syntax error: Syntax Error product_info.php Line:9 Code: 0 Char:28 URI: http://crowncellular.com/catalog/product_i...?products_id=33 The only problem that I see that this is creating is the inability to click the "Click to Enlarge" link for the photos. How do I fix this? I tried searching within the forums, but the search engine had a cow. The site is at http:\\www.crowncellular.com Thanks, Austin
germ Posted May 16, 2009 Posted May 16, 2009 <script language="javascript"><!-- function popupWindow(url) {[b][color="#FF0000"]<table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="box_body"> <tr> <td style="padding:2px 16px 8px 16px;">Product not found!</td> </tr> </table> </td> </tr> </table>[/color][/b] window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> Get rid of the HTML in the javascript... :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
aaspeer Posted May 19, 2009 Author Posted May 19, 2009 I have searched and cannot find where this HTML is coming from. I am not that great when it comes to coding, can anyone tell me where I am supposed to look to remove this code? Thanks, Austin
germ Posted May 19, 2009 Posted May 19, 2009 /catalog/product_info.php between the <head> </head> tags. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
aaspeer Posted May 19, 2009 Author Posted May 19, 2009 Below is what is currently between the <Head> tags within the product_info.php file <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- function popupWindow(url) {<?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?> window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script>
germ Posted May 19, 2009 Posted May 19, 2009 Then you must be using STS. That's the only way I know of to explain what I'm seeing. I don't know beans about STS so count me out. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted May 19, 2009 Posted May 19, 2009 And I'm a blind IDIOT :huh: function popupWindow(url) {[b][color="#FF0000"]<?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?>[/color][/b] 'The offending code is in RED If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.