Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Click Enlarge Image error


Guest

Recommended Posts

Posted

When you click the link to enlarge the image I get the following error

 

Parse error: parse error, unexpected ';' in /catalog/popup_image.php on line 36

 

I really appreciate anyone who knows how to fix.

 

Maybe its something linked with the database, I have recently emptied the products tables and reimported my products and all is well.

I have replaced the file popup_image.php, still same error

 

Thanks in advance.

Posted

post lines 30 thru 40 here so we can see what may be the error, from popup_image.php

Posted
post lines 30 thru 40 here so we can see what may be the error, from popup_image.php

 

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo $products['products_name']; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<script language="javascript"><!--

var i=0;

function resize() {

if (navigator.appName == 'Netscape') i=40;

if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);

self.focus();

}

//--></script>

</head>

<body onload="resize();">

<?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], ?>

</body>

</html>

<?php require('includes/application_bottom.php'); ?>

 

 

look forward to hearing from you, will be great to sort this out

Posted

This:

<?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], ?>

...should be this:

<?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']); ?>

Posted

I thank you so much, all it was was a "," instead of a ";"

 

A second pair of eyes is so useful,

Posted

No problem...in the future always keep a backup copy of the stock osC code. For files like that just upload the stock versions.

Archived

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

×
×
  • Create New...