Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error in html_output


pwatson04

Recommended Posts

Hi

 

im getting a:

Parse error: syntax error, unexpected $end in /home/pwatson/public_html/includes/functions/html_output.php on line 302

 

does anyone know what it could be?

 

thanks

Have you recently changed anything? Did you install a contrib or modify the code at all? Post line 302 from html_output.php and I'll see if I can spot anything wrong about it.

Link to comment
Share on other sites

hi,

 

i recently installed onthefly gd thumbnails bt removed it and replaced back the original code. there is no code on line 302 bt here is the code which i re-entered where im guessing the problem is:

 

///
// The HTML image wrapper function
 function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
  return false;
}

 

can you see anything wrong in here?

 

thanks

Link to comment
Share on other sites

hi,

 

i recently installed onthefly gd thumbnails bt removed it and replaced back the original code. there is no code on line 302 bt here is the code which i re-entered where im guessing the problem is:

 

///
// The HTML image wrapper function
 function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
  return false;
}

 

can you see anything wrong in here?

 

thanks

That code looks fine. It might be some other code that for have mistakenly not reverted back properly. Go through the instructions for on the fly thumbnails once more and check that each step has been resolved correctly. If you don't have other modifications to that file you might try making a copy of it and replacing it with the original file from the oscommerce distribution.

Link to comment
Share on other sites

i can't see anything else that it could be. i wull just install oscommerce somewhere else on my server so that i can use originals.

 

thanks

You could just replace that file and see if it works again. That is, if you haven't made other modifications to the file since installation. I would suggest getting a file comparison program so you can easily see the differences between the original and newer files. Beyond compare 2 is good if you are on windows.

Link to comment
Share on other sites

i have replaced the file and it works again. yeah that sounds like a good program

 

thanks for your help

Glad you got it working again.

Link to comment
Share on other sites

  • 9 months later...

I have this error, don't know where line 70 is - lol

 

Parse error: parse error, unexpected '<' in /home/dogtails/public_html/osCommerce/catalog/includes/functions/html_output.php on line 70

 

 

Can anybody help?

Link to comment
Share on other sites

FIXED, figured out how to download an original version and upload it. Thanks

Have you guys been using the filemanager in your web hosts control panel to do your edits. If so, it it is not a good idea.

Link to comment
Share on other sites

  • 3 months later...

Archived

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

×
×
  • Create New...