VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: romatvirtue on July 18, 2013, 06:50:38 AM

Title: vmError: You are not an administrator or the correct vendor
Post by: romatvirtue on July 18, 2013, 06:50:38 AM
Dear VM community,

I am facing the biggest issue so far. I have created multiple child products with different aliases. When I click on parent product and try adding a photo, I get the following message:

vmError: You are not an administrator or the correct vendor, storing of product cancelled

After that for some child products aliases get overridden.

Does someone know what the problem can be? Please help. I have spent so much time on thsi and can't figure this out.

Joomla version 2.5.11 VM version 2.0.22a.


Thanks.
Title: Re: vmError: You are not an administrator or the correct vendor
Post by: romatvirtue on July 18, 2013, 06:52:19 AM
The error displays only for the products with child products.
Title: Re: vmError: You are not an administrator or the correct vendor
Post by: romatvirtue on July 18, 2013, 07:12:12 AM
and yes, I did set the super user as a Vendor in VM.
Title: Re: vmError: You are not an administrator or the correct vendor
Post by: Maxim Pishnyak on July 18, 2013, 14:25:35 PM
So the vendor of child and parents products both is the superadmin? Did you check IDs?
http://forum.virtuemart.net/index.php?topic=99353.0
Title: Re: vmError: You are not an administrator or the correct vendor
Post by: romatvirtue on July 18, 2013, 16:11:07 PM
Quote from: Maxim Pishnyak on July 18, 2013, 14:25:35 PM
So the vendor of child and parents products both is the superadmin? Did you checked IDs?
http://forum.virtuemart.net/index.php?topic=99353.0

Thanks for trying to help, but it looks like vendor is set correctly. When I turn on debug mode, I get the following message:

vmdebug Check returned false VmTableData #__virtuemart_products
Title: Re: vmError: You are not an administrator or the correct vendor
Post by: Maxim Pishnyak on July 18, 2013, 16:31:45 PM
Did you try to recreate this error with newly created parent and child?

Maybe after you did set up vendor properly everything will be ok?
Title: Re: vmError: You are not an administrator or the correct vendor
Post by: romatvirtue on July 18, 2013, 18:43:26 PM
Quote from: Maxim Pishnyak on July 18, 2013, 16:31:45 PM
Did you tried to recreate this error with newly created parent and child?

Maybe after you did set up vendor properly everything will be ok?

I did not try that, but I will and let you know what result I get.

Do you know why it is changing the child alias also? It only does that when I save parent item only. If I try to rename child item directly, it saves it fine. So it's definetely not an issue with the alias not being unique.
Title: Re: vmError: You are not an administrator or the correct vendor
Post by: Maxim Pishnyak on July 18, 2013, 19:05:43 PM
Quote from: romatvirtue on July 18, 2013, 18:43:26 PM
Do you know why it is changing the child alias also? It only does that when I save parent item only.
If I try to rename child item directly, it saves it fine. So it's definetely not an issue with the alias not being unique.
It's simple.

When you save parent you also save childs.

Just check attentively parent product edit form (1st tab).

You could see there referenced editable information for childs.
Title: Re: vmError: You are not an administrator or the correct vendor
Post by: romatvirtue on July 18, 2013, 19:19:40 PM
Quote from: Maxim Pishnyak on July 18, 2013, 19:05:43 PM
Quote from: romatvirtue on July 18, 2013, 18:43:26 PM
Do you know why it is changing the child alias also? It only does that when I save parent item only.
If I try to rename child item directly, it saves it fine. So it's definetely not an issue with the alias not being unique.
It's simple.

When you save parent you also save childs.

Just check attentively parent product edit form (1st tab).

You could see there referenced editable information for childs.

Ha! Silly. How could I not think about that?
Title: Re: vmError: You are not an administrator or the correct vendor
Post by: romatvirtue on July 18, 2013, 19:22:04 PM
I think the error message got fixed for me after running the following query in phpMyAdmin:

UPDATE  'XX_virtuemart_products' SET  'product_weight' =  '',
'product_length' =  '',
'product_width' =  '',
'product_height' =  '' WHERE  'XX_virtuemart_products'.'product_parent_id' > 0;


I have had some problems with child dimensions, so I had to refresh it in the database and it fixed the error.

Thank you for you support!