VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: coldrake on October 29, 2012, 20:31:57 PM

Title: Super User can't add product or image.
Post by: coldrake on October 29, 2012, 20:31:57 PM
Hi!

We have a problem where the client can not add a new product, or add an image to an existing product. He is a super user and a vendor. When he tries to add a new product, he gets the following error

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

When he ties to add a new image to an existing product he gets the following errors

"vmError: VmTable #__virtuemart_products_en_gb Check not passed. Neither slug nor obligatory value at product_name for auto slug creation is given
vmError: You are not an administrator or the correct vendor, storing of product cancelled"


I am able to do both without a problem. I am also both a Super User and a Vendor. The only difference I can see is that I have a Shopper Number / ID in my Vendor info and he doesn't. I've tried searching the forum and Google with no luck.

Any assistance would be appreciated.

Environment

Previous activity
Joomla installation upgraded from 1.5.26 with JUpGrade 2.5.2
VirtueMart is a new install.
Products and images populated with CSV Advanced v. 1.5.4 . No errors with product install.
Only other add-on installed is the module Image Show GK4, v. 1.31
Title: Re: Super User can't add product or image.
Post by: jenkinhill on October 30, 2012, 17:46:56 PM
He should have a vendor id in the table. Is multivendor turned on?

Joomla 2.5 needs a minimum of PHP 5.2.4  - http://www.joomla.org/technical-requirements.html
Title: Re: Super User can't add product or image.
Post by: Tarabas on December 11, 2012, 08:01:43 AM
Hello!

I am getting the same message. Just installed Virtuemart 2 on Joomla 2.5 and tried to add a product with my superuser. He has no Vendor ID in the "shoppers" list and multivendor is turned off.

Any hints on how i can make this user a vendor?

PHP Built On    Linux vivian 2.6.27.7-9-default #1 SMP 2008-12-04 18:10:04 +0100 x86_64
Database Version    5.5.21-log
Database Collation    utf8_general_ci
PHP Version    5.3.10
Web Server    Apache/2.4.1 (Unix) PHP/5.3.10 mod_jk/1.2.33
WebServer to PHP Interface    apache2handler
Joomla! Version    Joomla! 2.5.7 Stable [ Ember ] 13-September-2012 14:00 GMT
Joomla! Platform Version    Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT

Virtuemart Version 2.0.14

Cheers
Manuel
Title: Re: Super User can't add product or image.
Post by: bytelord on December 11, 2012, 11:41:25 AM
Hello,

You have changed something ... super user should be the vendor with id 1. Please check it and make him vendor, or access with phpmyadmin under vmusers and make that user vendor.

Regards
Title: Re: Super User can't add product or image.
Post by: tkejmullins on October 11, 2013, 21:10:11 PM
Was this problem resolved?  I am having the same problem.
Title: Re: Super User can't add product or image.
Post by: jenkinhill on October 11, 2013, 23:36:56 PM
http://forum.virtuemart.net/index.php?topic=99353.0
Title: Re: Super User can't add product or image.
Post by: tkejmullins on October 14, 2013, 17:47:58 PM
Thank you for the reply.  I followed the instructions in the post but I am still having the problem.  More specifically I am receiving the following message: "

        vmError: VmTable #__virtuemart_products_en_gb Check not passed. Neither slug nor obligatory value at product_name for auto slug creation is given
        vmError: You are not an administrator or the correct vendor, storing of product cancelled

I am receiving this error when I add a Child Product under the Custom Fields tab.  After I add the 6th Child Product, it gives me this error.  Also, in the product listing, the parent product shows a total of 6 child products, but the sixth one does not show up on the frontend, or in the Custom Fields tab.

VM 2.0.22a Joomla 2.5.14 PHP 5.2.17

Any additional help would be greatly appreciated.

Thank you
Title: Re: Super User can't add product or image.
Post by: Limonbay on November 25, 2013, 14:38:20 PM
I have exactly the same problem. The error shows up when I add the 4th child product, then randomly, it could be the 5th again or the 7th. But always begins with the 4th.

Multivendor is off. I've tried with the tutorial and making Vendor ID 1. No success. It's very annoying.

I'm using VM 2.0.24c
Title: Re: Super User can't add product or image.
Post by: treodude on December 17, 2013, 14:54:56 PM
I recently encountered the same problem, but only wiht one specific product.
A colleague of mine had the same but with a different product.
After the encounter I tried some test products, all worked well.

So in short, I am, for jsut one random product, "not an administrator or the correct vendor, storing of product cancelled"

*Update*

It seems to be dependent on the product name.

We have "Koni Sport Rear", which gives me the error, as well as "Koni Street Rear"

However, when using something else, names used before and not used before, the error remains absent

Sidenote: I am set as Vendor, Admin, Super User, also in phpmyadmin

*Update 2.0*

Also, I tried http://forum.virtuemart.net/index.php?topic=99353.0

Atm, there is only one vendor account, which is not me, however I am atm Admin and Super User


Virtuemart 2.0.22c  (Maybe updating to 2.0.26 helps?)
Title: Re: Super User can't add product or image.
Post by: jenkinhill on December 17, 2013, 15:47:02 PM
Do you have Enable Multivendor selected?
Title: Re: Super User can't add product or image.
Post by: treodude on December 20, 2013, 15:37:48 PM
Originally it was turned off, and I tried it several times with Multi Vendor on, but ATM it is off.
Another strange note, for some reason I can now enter the product it previously rejected?¿

Well, I tried inputting another "Koni Sport Rear", but this time it failed me again.
However, when leaving the last r out, it worked, and going back and adding the last r again, worked as well!

*Update*
After using this technique several times, it stopped working and gave me the same error.
Leaving the last two letters out now does work though.

*Update 2*
This problem starts occuring with other repeated product titles, e.g. "Koni Sport Front".
I can apply the same technique, bu I think I will have run out of letters to leave out somewhere halfway...
Title: Re: Super User can't add product or image.
Post by: jenkinhill on December 20, 2013, 23:09:06 PM
Sounds like it is a problem with the Product Alias  - each of these should be unique for SEO (and url) purposes. Try entering these yourself, eg Koni Sport Front could be koni-sp-fr-1 or koni-sp-fr-1 and so on.
Title: Re: Super User can't add product or image.
Post by: treodude on December 23, 2013, 13:45:40 PM
I tried it and it worked!
However, I never encountered this problem, and as said before, it is not always appearing.
And how vital is this system that requires different alii?
Title: Re: Super User can't add product or image.
Post by: jenkinhill on December 23, 2013, 15:00:25 PM
The alias is the unique category or product identifier used in certain SEF urls or by a search engine to link to a specific item.
Title: Re: Super User can't add product or image.
Post by: treodude on December 23, 2013, 15:43:36 PM
So, if left out, search engines could confuse certain itmes with each other?
Meaning; it is best to leave it on?
Title: Re: Super User can't add product or image.
Post by: jenkinhill on December 23, 2013, 16:54:30 PM
If you don't enter a slug (alias) then VM will add one for you. It is needed.
Title: Re: Super User can't add product or image.
Post by: treodude on December 23, 2013, 16:57:46 PM
I will keep using this solution then, since it is a simple and maybe even a helpfull one.

Thanks for helping and happy holidays!