Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems adding a new product in Admin.


Guest

Recommended Posts

Hi all.

 

As you can see above I'm having problems adding a new product to any category.

 

In Admin I get the form to add a new product, I add an image as well. It's until I press Preview it then displays this "Fatal error: Cannot instantiate non-existent class: upload in /home/ndonnell/public_html/packages/admin/categories.php on line 492" in the next screen.

 

Ipnpaypal and the script for domain search has been added. This was a fresh install.

 

Any help would be very greatfull.

 

Regards,

 

Neil.

Link to comment
Share on other sites

You should be able to look on line 492 of categories.php to see what class is being used. Then the class should be in the files in the includes/classes or needs to be added there.

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Link to comment
Share on other sites

Hi all.

 

I've checked the categories.php file on line 492. The nearest class I could find was just before the line (on line 491) which was pointing to class 'columnLeft'.

 

This is in the stylesheet, so it does exsit.

 

Is there any thing else that I should checkout???

 

Cheers,

 

Neil.

Link to comment
Share on other sites

I think that's a CSS class. I think the problem is with a PHP class and should be occurring on a line with new in it like this one near the top of categories.php:

  $currencies = new currencies();

Instantiating a class refers to creating a new instance (variable) of that type of class with new.

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Link to comment
Share on other sites

Thankx for your help.

 

But I found it was the aplication_top.php file in admin>includes.

 

What I did was to do a over write and run processes on a fresh installed oscommerce.

 

The only differnce between the old file and the new one was the new one included '// PAYPALIPN'.

 

These where removed and it now works fine. :shock:

 

Again thankyou for your help,

 

Neil. :wink:

Link to comment
Share on other sites

  • 2 months later...
You should be able to look on line 492 of categories.php to see what class is being used. Then the class should be in the files in the includes/classes or needs to be added there.

 

I am having a similar problem with my site as well. I get these error when I click on a link in the categories. Here is the error

 

Fatal error: Cannot instantiate non-existent class: splitpageresults in /home/mrculina/public_html/catalog/includes/modules/product_listing.php on line 16

 

I have gone to line 16 in the product _listing.php file and get this

 

$listing_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $listing_sql, $listing_numrows);

 

I have checked in the includes/classes and uploaded a fresh file of split_page_results.php to that folder, still no go.

 

I did some work adding the calendar script and did not like the look or functionality of it so I backed it out. I had all relative files marked "old" that were effected so I could later delete and restore my originals accordingly. I guess I missed one and now et these errors.

 

My Cart is live and I have spent a considerable amount of money advertising for it. Can someone help me here.

 

Thanks

 

JM

Always remember, we need patience, guidance and most of all understanding.

 

My Contributions

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...