Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem adding products and categories with admin utility


TheFinnisher

Recommended Posts

Hello,

I am having a problem adding new categories and new products using the admin utility. I am able to add products in my MySQL database and they wil properly show up on the shopping cart.

 

When I try to use the osCommerce admin utility I can't get any products, nor categories added. Can anyone help me?

 

When I am trying to add a product I get the following error code:

 

Warning: Variable passed to reset() is not an array or object in /home/sticky/catalog/admin/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /home/sticky/catalog/admin/includes/classes/object_info.php on line 18

Link to comment
Share on other sites

:?: :?: :?:

I'm back again. Numerous hours of research and I still haven't got any further!

 

I wanted to ad that when I try to sign up another user it does so perfectly. All the proper information is added to the MySQL database.

 

And this is even more strange: When I add a product category group or a product the administration utility sends information in the BLANK!! form to the database. Why is this?

 

I am new to PHP and am not quit capable right now to troubleshoot such a problem. Please help me!!!

 

Thanks so much in advance!

Link to comment
Share on other sites

I wonder if this problem is just impossible to overcome?? I am still working on it and thought I'd keep this post fresh by returning and keeping everyone up to date.

 

I found this similar topic posted by another member on December 8 2002. He never got a reply either so I am hoping for better luck. I sent him an e-mail as well to see if he solved the problem...

 

http://www.oscommerce.com/forums/viewtopic.php...ot+20an+20array

 

If you have a solution please let me know...Thank you again!

Link to comment
Share on other sites

Thanks for your reply!

 

I assume that the first few steps are about configuring the php and apache on the server. I use a hosting company and therefore can't install them myself. I have contacted them though to see if they can make sure all the settins are right.

 

I did change that /catalog/admin/categories.php file but it still wouldn't help. I even tried to fill in all the required items and made sure to include an image.

 

My server uses: Apache/1.3.23 (Unix) (Red-Hat/Linux)

 

and has PHP 4.1.2 (Zend: 1.1.1) installed.

 

I did search the top of the forum for similar problems and that is how I found that post from Dec. For some reason I didn't spot your post until you pointed it out to me. I will keep you posted and continue my work...

Link to comment
Share on other sites

Thanks everyone who have helped! I finally got it to work!!! I followed Cisco's and Henrik's advice and got everything to work.

 

Basically I needed to ask my hosting company to change the php.ini file so that the uppload was set to "ON" and not "OFF". Another thing that also might have made a difference...(which I don't know, since I am by no means a programmer) is that I set my database as "localhost" instead of a url??

 

By the way, if anyone needs a very cooperative and great hosting company I recommend http://www.drw.net with all my heart. Their technical support personel helped me solve this problem on-on-one on a Saturday late afternoon. My experience with this hosting company is superb. Their hosting prices are also very competitive. The best money can get. Please check them out if you are in the need of hosting for your osCommerce site.[/url]

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...

includes/configure.php in both catalog and admin. Note: what this resolves is the problem when the user info is wrong. I.e. if you have a database where oscommerce@localhost has all permissions on database oscommerce, but you are using [email protected] to try to connect it won't work. You will get the exact same error message if the username or database is listed incorrectly. Or if the user does not have proper permissions on the database.

 

Hth,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...