Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New products won't display


phamau

Recommended Posts

Posted

Hallo everyone,

 

I installed the Contribution, (Product Listing, Enhancements, Thumbnails and Manufacturer Headings) on my site

on my development machine using XAMPP just to test it.

 

It works fine and all products are listed in columns like they should. My only worry now is the New Products Listing

doestnt show, I get the following error

 

Fatal error: Cannot redeclare thumbnail_new() (previously declared in

C:\xampp\htdocs\catalog\includes\modules\new_products.php:17)

in C:\xampp\htdocs\catalog\includes\modules\new_products.php on line 72

 

Thats not all, when I log in as a customer and click on new Products after getting the following Message:

 

Welcome back Customer! Would you like to see which new products are available to purchase?

 

I get the following error:

 

Parse error: syntax error, unexpected ';', expecting ',' or ')' in C:\xampp\htdocs\catalog\products_new.php on line 14

 

I would be so glad is someone knows how to fix this.

 

Thanks

Posted

Look in C:\xampp\htdocs\catalog\includes\modules\new_products.php and see if you have 2 functions in there, around line 17 and 72 would be my guess. One needs to be deleted/removed.

 

Then look in C:\xampp\htdocs\catalog\products_new.php and check you have not messed up on line 14 or maybe 13.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Cheers Geoffrey for jogging me mind there.

 

With trial and error, I have managed to fix the problem. As far as I can remember I didnt cause the error

because I cant remember changing anything on http://localhost/catalog/products_new.php and this is where the problem was.

Its probably one of those things, you know.

 

Anyway this is what I did to fix the problem

 

I opened http://localhost/catalog/products_new.php? using Dreamweaver

 

Around line 14 you'll find

 

unset($HTTP_GET_VARS['manufacturers_id'];
unset($_GET['manufacturers_id'];

 

I commented the two lines, so this is how it looks

 

//unset($HTTP_GET_VARS['manufacturers_id'];
//unset($_GET['manufacturers_id'];

 

Problem solved

 

Am hoping this might be helpful to someone else. I cant believe how I've progressed from being a total newbie

to at least getting the jist of things.

 

Thanks Community Members

Archived

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

×
×
  • Create New...