osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Can't create categories / products

This is a discussion on Can't create categories / products within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; p.vendors_product_price is not in the osCMax distribution in any file, so somebody on your end had to add it. I ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #11  
Old 03-20-2007, 12:57 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,432
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Can't create categories / products

p.vendors_product_price is not in the osCMax distribution in any file, so somebody on your end had to add it. I already told you what you need to do though, add the column to the table...

These are the files with the query that is causing your error, directly from the osCMax distro, and none of them have the field that is causing your problem.

Code:
----------------------------------------
Find 'select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price,' in '\catalog\admin\categories.php' :
\catalog\admin\categories.php(1183):      $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p2c.categories_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and (pd.products_name like '%" . tep_db_input($search) . "%' or p.products_model like '%" . tep_db_input($search) . "%') order by pd.products_name");
\catalog\admin\categories.php(1186):      $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by pd.products_name");
Found 'select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price,' 2 time(s).
----------------------------------------
----------------------------------------
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to michael_s For This Useful Post:
ming (12-13-2007)
Sponsored Links
Advertisement
  #12  
Old 10-05-2007, 05:13 AM
Lurker
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dr.exo is on a distinguished road
Default Re: Can't create categories / products

Hi Guys, I too am experiencing this issue. It's a fresh install and yet when clicking on categories/products link (http://192.168.0.1/admin/categories....ed_box=catalog)

I get a blank page, auto-increment is definately running also on teh categories_id table so the problem may be elsewhere.

Please help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #13  
Old 10-10-2007, 12:38 AM
New Member
 
Join Date: Oct 2007
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Annakay is on a distinguished road
Default Re: Can't create categories / products

I also had problems inserting categories, they were added to the database but they didn't show up on the screen in the Categories list. I had changed language to Swedish and deleted the default english language files, and when I deleted the english admin language files it refused to show the swedish language in the admin section.
I searched the database for the word "english" and found a post in the "session" table. I deleted it and suddenly it all worked just fine.

Just thought I should let you know how I solved it. For me it had nothing to do with the auto-increment mentioned earlier. Perhaps this could help someone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Annakay For This Useful Post:
ming (12-15-2007)
  #14  
Old 12-13-2007, 09:14 PM
Lurker
 
Join Date: Dec 2007
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
ming is on a distinguished road
Default Re: Can't create categories / products

hi all,
i have the same problem but i can fix, please help.....

1054 - Unknown column 'p.products_id' in 'on clause'

select count(p.products_id) as total from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials_retail_prices s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '1'

[TEP STOP]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 12-17-2007, 08:26 PM
Lurker
 
Join Date: Dec 2007
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
ming is on a distinguished road
Default Re: Can't create categories / products

please help for the problem , did anyone fix the same problem that i have?

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16  
Old 05-28-2008, 11:03 PM
Lurker
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
valherru
Default Re: Can't create categories / products

hello!
i have just installed v 2.0 and it works fine until i add a category ... after that the frontend shows a blank page...
the categories id field is auto_increment ...
please help?

MySQL version 5.0.45-community-
log

PHP version 5.2.5

Last edited by valherru; 05-28-2008 at 11:06 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17  
Old 05-29-2008, 12:25 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 461
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 7
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: Can't create categories / products

a blank page generally means a PHP error. Please check your HTTP error log file and see if you are getting a PHP error in the loading of the front page.

It may look something like:
PHP Parse error: parse error, unexpected T_STRING in /vhosts/store.com/httpdocs/includes/modules/default_manufacturers.php on line 18

(your filename may vary as this was a debug error I was chasing down for a new module I added tonight and most people won't have default_manufacturers.php in their /includes/modules directory - but the message like that will show where the PHP error is in the code)
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18  
Old 06-16-2008, 02:36 AM
Lurker
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
caryne444 is on a distinguished road
Default Re: Can't create categories / products

I am also experiencing this problem with this error message when trying to add a category:
Warning: reset() [function.reset]: Passed variable is not an array or object in /home/xxx/public_html/oscmax/admin/includes/classes/object_info.php on line 17
Warning: Variable passed to each() is not an array or object in /home/xxx/public_html/oscmax/admin/includes/classes/object_info.php on line 18

I am running PHP version 5.2.6 and MySQL version 5.0.45
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
No Products in Categories box kenlyle osCMax v2 Features Discussion 11 11-08-2005 07:21 PM
No Products in Categories box kenlyle osCMax v1.7 Discussion 2 11-06-2005 06:31 AM
Directory of categories-products damnedpig osCMax v1.7 Discussion 7 06-28-2005 06:46 PM
Categories box. How can I create a new one (or two...)?? Csc osCommerce 2.2 Modification Help 1 01-15-2005 02:20 PM
uploading categories and products from ms1 to ms2-max 1.5 jloyzaga osCMax v1.7 Discussion 0 09-14-2003 07:56 PM


All times are GMT -8. The time now is 03:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax