News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

vmError: You are not an administrator or the correct vendor

Started by romatvirtue, July 18, 2013, 06:50:38 AM

Previous topic - Next topic

romatvirtue

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.

romatvirtue

The error displays only for the products with child products.

romatvirtue


Maxim Pishnyak

#3
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
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

romatvirtue

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

Maxim Pishnyak

#5
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?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

romatvirtue

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.

Maxim Pishnyak

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.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

romatvirtue

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?

romatvirtue

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!