Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Attribute dropped with Category Change

Attribute dropped with Category Change

Locked

Views: 5,572

Results 1 to 20 of 41
This thread is locked. New replies are disabled.
11 Jan 2007, 4:22 AM
#1
hinterwelt2 avatar

hinterwelt2

New Zenner

Join Date:
Dec 2006
Posts:
94
Plugin Contributions:
0

Attribute dropped with Category Change

Running 1.3.6 (heavily modded)

Hello,
The Admin for our site created a series of subcategories and moved products into them. These products all lost their information to the download file. The Download Attribute was still there but the file information (xxx/filename.zip) was not. It had gone missing out of the DB also.

I assume this is not default behavior. I could not find any other entries on this with a search. Any ideas? We lost 300+ links that must all be redone.:down:

Thanks for any help,
Bill

11 Jan 2007, 4:24 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Attribute dropped with Category Change

If a product is moved all that is done is the categories_id is changed on the products_to_categories table ...

If a product is copied to another category, the download is not copied with it ...

Do you know if it was moved or copied to the new category?

11 Jan 2007, 4:26 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute dropped with Category Change

I assume this is not default behavior. I could not find any other entries on this with a search. Any ideas? We lost 300+ links that must all be redone
Too late for this time but "ALWAYS BACKUP THE SITE FILES AND THE DB" before doing things like this

11 Jan 2007, 4:53 AM
#4
hinterwelt2 avatar

hinterwelt2

New Zenner

Join Date:
Dec 2006
Posts:
94
Plugin Contributions:
0

Re: Attribute dropped with Category Change

kobra:

Too late for this time but "ALWAYS BACKUP THE SITE FILES AND THE DB" before doing things like this

Tried. We need to get better order than we are currently doing. They are very much treating it like a file system. So, I backed up Monday night and the moved Monday during the day. I could go back to a previous version but a lot of products have been added.

Like I said, more chaos than I am happy with currently.

Thanks for the advice. I am going to try for a more rigourous backup schedule, probably nightly, until things settle down.

Bill

11 Jan 2007, 4:56 AM
#5
hinterwelt2 avatar

hinterwelt2

New Zenner

Join Date:
Dec 2006
Posts:
94
Plugin Contributions:
0

Re: Attribute dropped with Category Change

Ajeh:

If a product is moved all that is done is the categories_id is changed on the products_to_categories table ...

If a product is copied to another category, the download is not copied with it ...

Do you know if it was moved or copied to the new category?

Not sure. I will query and let you know. This is definitely within the realm of possibility.

Thanks,
Bill

11 Jan 2007, 5:10 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute dropped with Category Change

Bill,

Place the shop in maintenance mode and take a backup "right" before you do something like this.

If you have cPanel, plesk, or another featured manager, this only takes 5 min

11 Jan 2007, 5:21 AM
#7
hinterwelt2 avatar

hinterwelt2

New Zenner

Join Date:
Dec 2006
Posts:
94
Plugin Contributions:
0

Re: Attribute dropped with Category Change

Ajeh:

If a product is moved all that is done is the categories_id is changed on the products_to_categories table ...

If a product is copied to another category, the download is not copied with it ...

Do you know if it was moved or copied to the new category?

The used Move. This begins to worry me more and more.

Bill

11 Jan 2007, 5:23 AM
#8
hinterwelt2 avatar

hinterwelt2

New Zenner

Join Date:
Dec 2006
Posts:
94
Plugin Contributions:
0

Re: Attribute dropped with Category Change

kobra:

Bill,

Place the shop in maintenance mode and take a backup "right" before you do something like this.

If you have cPanel, plesk, or another featured manager, this only takes 5 min
Not a problem. That is how I do it. I use Navicat. The problem is the owners will do these things much like you would use a file system;i.e. without much thought to data loss and without warning me. This is a good lesson for them as they are doing the re-attributing.

I will keep it in mind to try and impress on them how important it is.

Thanks,
Bill

11 Jan 2007, 5:26 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Attribute dropped with Category Change

HinterWelt2:

The used Move. This begins to worry me more and more.

Bill

Worries you? Worries me ... :eek:

There is nothing in the:
/admin/includes/modules/move_product_confirm.php that even refers to the attributes ...

What version of Zen Cart are you running and what add-ons are you using?

Are your products all done manually or are you using add-ons?

Did you use the M for Move or something else?

11 Jan 2007, 5:46 AM
#10
hinterwelt2 avatar

hinterwelt2

New Zenner

Join Date:
Dec 2006
Posts:
94
Plugin Contributions:
0

Re: Attribute dropped with Category Change

Ajeh:

Worries you? Worries me ... :eek:

There is nothing in the:
/admin/includes/modules/move_product_confirm.php that even refers to the attributes ...

What version of Zen Cart are you running and what add-ons are you using?

Are your products all done manually or are you using add-ons?

Did you use the M for Move or something else?
Using 1.3.6.

I have done some custom mods and that could be an issue. Mostly it is supporting a muti-vendor mall setup with just two changes to the DB (a vendor status and vendor ID in the customer table). They did not use any of my mods to move the products (I have a Vendor Tools console).

Add-Ons - Sales Report, running a modded version of Future Zen Template 15, About Us 1.3, Go Daddy and Paypal Seals, Login BoxBack up MySQL Plugin (couldn't get it to work).

Just got this from the owners:

Update: Just ran a test with one of Goodman's products. We found it didn't have an linked download, but the attribute controller had been assigned so that on the screen it still had the button that says "download zip file."

I purchased the product and didn't receive a link. The product then changed to red disabled and listed 0- just like what our XRP products had done. I think that means the problem is coming first from something erasing the linked file, but the attributes still thinking there is an attached file.

They used the M for move.

Sorry to be such a pain. It has me a bit stumped.

Thanks,
Bill

11 Jan 2007, 5:47 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Attribute dropped with Category Change

Me too ...

Off to do a bunch of testing ... :cool:

11 Jan 2007, 5:49 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Attribute dropped with Category Change

Check one other thing ...

On the products_attributes_download where the filenames removed from the field products_attributes_filename? The records themselves removed? Or were the filenames missing from the /download directory?

11 Jan 2007, 6:09 AM
#13
hinterwelt2 avatar

hinterwelt2

New Zenner

Join Date:
Dec 2006
Posts:
94
Plugin Contributions:
0

Re: Attribute dropped with Category Change

Ajeh:

Check one other thing ...

On the products_attributes_download where the filenames removed from the field products_attributes_filename? The records themselves removed? Or were the filenames missing from the /download directory?
The entire record was missing. The files were still in place. The download attribute was set but the download field was not....ah, when you look at the Attribute Controller you would see a "Download" attribute but no file path/name. So, the attribute is not being dropped per se, but the file information is lost, like it gets deleted from the product_attribute_download table.

Clear?

Thanks for your help,
Bill

11 Jan 2007, 6:29 AM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Attribute dropped with Category Change

Makes no sense ...

I also have not been able to reproduce this in any manner when using the M for Move or when using the Multiple Categories Links Manager where I add the Product as a Linked Product to a new Category then change the Master Category and remove it from the old category ...

Nothing about the move that I am finding touches the Attributes ... only the copy touches the attributes and that does NOT copy the download ...

I will keep hunting ... let us know if you learn anything else ... and if you could, perhaps setup a copy to move to another category and see if you can reproduce the issue with the move ...

11 Jan 2007, 7:00 AM
#15
hinterwelt2 avatar

hinterwelt2

New Zenner

Join Date:
Dec 2006
Posts:
94
Plugin Contributions:
0

Re: Attribute dropped with Category Change

Ajeh:

I will keep hunting ... let us know if you learn anything else ... and if you could, perhaps setup a copy to move to another category and see if you can reproduce the issue with the move ...
I am not sure I understand what you are asking for. Let me give it a try. You would like me to try a Copy command to move product around and see if that causes the delete of the download link?

I will see if I can get it to do it again...on a smaller scale and on my test server. :)

Oh, another thing. Should disabling (setting the Out of Stock) a virtual product also delete the attributes? This is not related but we had a vendor drop out of the initial launch and now he is ready to go. Unfortunately, he has around 400 products all without download attributes...meh.

Thanks,
Bill

11 Jan 2007, 7:46 AM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Attribute dropped with Category Change

No, I'd like you to repeat the Move with the M command and try to recreate the error ...

I know the C for Copy does this ... but I cannot get the M for Move to do this ...

Out of stock does not delete the attribute either ...

12 Jan 2007, 6:25 AM
#17
hinterwelt2 avatar

hinterwelt2

New Zenner

Join Date:
Dec 2006
Posts:
94
Plugin Contributions:
0

Re: Attribute dropped with Category Change

So, update. We will be moving some products around this weekend and will give it a thorough test then. The admins who moved the products in the first place tried to replicate the error but could not. Again, I hate ebugs that do not behave.

Here is their detailed response on what they did last time. You may need to visit the yourgamesnow.com site to understand the categories and context.

Bill, we tried to reproduce the problem yesterday evening by going into the admin tools, and using the "move" tool. That did not recreate the problem. However the actual process of the big move was more complex and perhaps this information will help.

In brief, we moved Roleplaying>System>d20 to Roleplaying>d20. We moved Roleplaying>System>D20 Modern to Roleplaying>d20>d20 Modern (and the same for d20 future). Then we created new categories (D20 items, d20 monsters, etc.) and moved them inside of Roleplaying>d20. That means that there was both products and categories in the same folder and we did get the warning on the screen in admin tools. We then used the "move" tool. For example, we would move "A Dozen shields" from Roleplaying>d20 into Roleplaying>d20>d20 items.

Hopefully, that information helps.

I wonder if it could be something with d20 becoming a root category instead of a leaf.

Well, I will keep you updated on the move that should be coming this weekend. And, yes, I will be backing up this time. :yes:

Bill

12 Jan 2007, 6:31 AM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Attribute dropped with Category Change

Nope still cannot make it happen ...

Unless I use Copy the C as Duplicate Products ... I cannot manage to lose the downloads ...

Let me know if you trip over anything ... I will keep hunting too ...

18 Jan 2007, 3:51 AM
#19
hinterwelt2 avatar

hinterwelt2

New Zenner

Join Date:
Dec 2006
Posts:
94
Plugin Contributions:
0

Re: Attribute dropped with Category Change

Well, just an update. All went well with the big category reorg and subsequent move. I am inclined to chalk this one up to user error at this point...

Thanks for all the help and I will let you know if it happens again.

Bill

18 Jan 2007, 4:05 AM
#20
ajeh avatar

ajeh

Oba-san

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

Re: Attribute dropped with Category Change

Not a problem ... do let us know if you are ever able to replicate it ...

NOTE: should it happen again, and I forgot about this before ... the admin_activity_log does paint a picture of what was done in the Admin ... might help solve the mystery ... :cool: