Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error when trying to access products


Harleypete40

Recommended Posts

Posted

I get this error message when I try t6o access the product page:

 

Parse error: parse error, unexpected '<' in /vetinari/music4/public_html/catalogue/product_info.php on line 77

 

Now I have not got much experience with PhP so can somebody help me out here please?

 

Thanks

 

 

I get this error message when I try t6o access the product page:

 

Parse error: parse error, unexpected '<' in /vetinari/music4/public_html/catalogue/product_info.php on line 77

 

Now I have not got much experience with PhP so can somebody help me out here please?

 

Thanks

 

PS it happens when I click the buy it now button on a product, and then click "continue shopping"

 

In the file on line 77 there is no more than this: <td class="main" align="right">

Posted

This is what is on line 77 of an unedited product_info.php root level file:

 

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {

 

You need to get yourself a good plain text editor like Textpad or Crimson Editor (both free downloads) which will give you line numbers in the actual files. You can't use View Source in your browser because that just shows you the code after it has been parsed.

 

Vger

Posted

I downloaded crimson editor and it says the same on line 77 as it said above <TD.......

 

I normally use dreamweaver 8

 

Now I have noticed that it only happened when I copied some of the products in to 2 different categories. As soon as I deleted the copies it stopped.

 

Thanks for your advice anyway

 

Best Regards

 

Peter

Posted

You have a missing PHP closing tag ?>

 

Look above the line indicated in the error :D

 

Matti

Archived

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

×
×
  • Create New...