micahs Posted March 16, 2004 Share Posted March 16, 2004 I am receiving an error on the product info page that I can not figure out. When I click on the small image, it does not enlarge it and Internet Explorer reports an error as follows: Line: 1Char: 1 Error: Object expected Code: 0 URL:http://www.bearcuboutfitters.com/catalog/product_info.php?cPath=23&products_id=76 It happens no matter which product I am viewing. Line 1 of Product Info is simply: <?php Does anyone know what would cause this error? Thanks, Micah Link to comment Share on other sites More sharing options...
micahs Posted March 16, 2004 Author Share Posted March 16, 2004 It appears that there is another error that I overlooked: Line: 212Char: 200 Error: Unterminated string constant Code: 0 URL:http://www.bearcuboutfitters.com/catalog/product_info.php?cPath=23&products_id=76 Line 212 of the source for the page as generated is: <a href="http://www.bearcuboutfitters.com/catalog/images/classic.jpg" target="_blank"><img src="images/classic.jpg" border="0" alt="Denali Classic" title=" Denali Classic " width="95" height="100" hspace="5" vspace="5"><br>Click to enlarge</a></noscript> I don't see anything wrong with that, so I can't figure the problem out. Can anyone help? Link to comment Share on other sites More sharing options...
micahs Posted March 16, 2004 Author Share Posted March 16, 2004 I am still looking for a solution to the original error, but I found a work around by eliminating the following script beginning with Line 108 of the product_info.php file: <script language="javascript"><!--document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> I then removed the <NOSCRIPT> and </NOSCRIPT> tags from around the following code: <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> While this results in the elimination of the error, the popup windows do not automatically resize to the image as they would with the Javascript code. Does anyone have a solution or a better workaround? Link to comment Share on other sites More sharing options...
Gunni-X Posted June 29, 2004 Share Posted June 29, 2004 I have exactly the same problem and can't figure it out. Line: 1Char: 1 Error: Object expected Code: 0 URL:http I searched the forum but i found no answer. I also tried to instal the original oscommerce popup_image.php file and nothing happend. :( .::Gunni-X::. Link to comment Share on other sites More sharing options...
Gunni-X Posted July 3, 2004 Share Posted July 3, 2004 I think i have got something here but i'm not shure. // STS: ADD // Capture text between application_top.php and header.php require(STS_START_CAPTURE); // STS: EOADD When i remove this code from the bottom of the application_top.php the pop up window seems to work. But something strange happens. When i got the orriginal script uploaded the page has an extra header navigation bar with the same breadcumps as in my website. (its a copy) Also there is the oscommerce logo on top of the page. It seems like my page is captured in a other template?? Also the orriginal page is not in the center anymore?? maybe some one knows an answer becouse i still have no idea how to solve this problem!! .::Gunni-X::. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.