Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Invalid Master Category ID

Invalid Master Category ID

Locked

Views: 5,244

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
7 Jun 2006, 5:10 PM
#1
darkwander avatar

darkwander

Zen Follower

Join Date:
May 2005
Location:
Australia
Posts:
321
Plugin Contributions:
0

Invalid Master Category ID

I have made a new Product type, it is called "Product - Dvd" however when ever i goto add a new product on this one Product type i get the yellow box.

I have tried adding a normal product type to that same category and it works without a problem, however when ever i goto add the product type "Product - Dvd" it comes up with the yellow box that say's "Invalid Master Category ID".

I have read a few other topics and cant seem to fix the problem, any ideas ?

7 Jun 2006, 7:42 PM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Invalid Master Category ID

it sounds like the product's master_categories_id isn't being set during the insert process.
When you insert a new product_dvd, check the products_table in the database and see if there has been a value inserted for master_categories_id
If not, you may have a problem in the modules/product_dvd/update_product.php file

8 Jun 2006, 3:05 PM
#3
darkwander avatar

darkwander

Zen Follower

Join Date:
May 2005
Location:
Australia
Posts:
321
Plugin Contributions:
0

Re: Invalid Master Category ID

bunyip:

it sounds like the product's master_categories_id isn't being set during the insert process.
When you insert a new product_dvd, check the products_table in the database and see if there has been a value inserted for master_categories_id
If not, you may have a problem in the modules/product_dvd/update_product.php file

It all looks fine..

10 Jun 2006, 11:45 AM
#5
darkwander avatar

darkwander

Zen Follower

Join Date:
May 2005
Location:
Australia
Posts:
321
Plugin Contributions:
0

Re: Invalid Master Category ID

Could there be a file that i am missing ?

I have it uploaded on the site and it is working fine there, however it dosnt work on my database that is locally run. The only difference between the two stores is the version number.

13 Jun 2006, 1:51 PM
#6
darkwander avatar

darkwander

Zen Follower

Join Date:
May 2005
Location:
Australia
Posts:
321
Plugin Contributions:
0

Re: Invalid Master Category ID

Anyone have any ideas ?

20 Jul 2006, 2:47 PM
#7
l5eoneill avatar

l5eoneill

New Zenner

Join Date:
Jul 2006
Location:
Beautiful Maine
Posts:
7
Plugin Contributions:
0

Re: Invalid Master Category ID

Could you let us know if you ever found the problem? I have a similar situation, only it's on the production server that the Master Category ID claims to be invalid (on the Product edit page). The db shows the product has a valid category (checked the categories table to be sure it's a valid one).

20 Jul 2006, 3:44 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Invalid Master Category ID

What version of Zen Cart are you using?

Clean install or an upgrade?

If an upgrade ... what version did you upgrade from?

How are you adding your products?

If importing, most likely the master_categories_id is not being set ...

If you DO NOT have Linked Products, this is easily fixed ...

If you DO have Linked Products, then this can be a little harder to fix ...

20 Jul 2006, 3:54 PM
#9
l5eoneill avatar

l5eoneill

New Zenner

Join Date:
Jul 2006
Location:
Beautiful Maine
Posts:
7
Plugin Contributions:
0

Re: Invalid Master Category ID

What version of Zen Cart are you using?
Zen Cart 1.3.0.2
Database Patch Level: 1.3.0.2

Clean install or an upgrade?
Fresh installation

How are you adding your products?
Normal way in Admin->Categories/Products

If you DO NOT have Linked Products, this is easily fixed ...
No products are linked (haven't even tried to do that yet).

Did install a Product Type (Book), which may be contributing to the problem. Think I want to uninstall it and install a newer/better version from another source, that I found here in Forums (why isn't it on the downloads page? and why is the old one that's no good still there?). But not sure how to do that, either. Topic for another thread, I guess... (Sure would be nice if creating Product Types weren't so difficult. What we actually need is for cars (year, mileage), so I had to adapt from the Book product type.)

Thanks,
--eon--

20 Jul 2006, 4:05 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Invalid Master Category ID

Does this just happen on the Add but look fine on the Edit?

20 Jul 2006, 5:09 PM
#11
l5eoneill avatar

l5eoneill

New Zenner

Join Date:
Jul 2006
Location:
Beautiful Maine
Posts:
7
Plugin Contributions:
0

Re: Invalid Master Category ID

Interesting! (Good question) In Edit, there is no master category dropdown. As expected, it shows the categories at the top, somewhat breadcrumb-style.

Guess that makes sense, as changing category must be done using the "move" tool. But makes me wonder why that dropdown is there in the New Product entry form in the first place!

--eon--

20 Jul 2006, 7:17 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Invalid Master Category ID

If this only happens on 1 Product type ... sounds like that Product type is not current with the code ...