VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ocean1 on January 13, 2014, 21:27:22 PM

Title: vmError: Model User Fields, country with
Post by: ocean1 on January 13, 2014, 21:27:22 PM
Hi,

do's any one know how to solve the following error when opening the next page?

  error:  vmError: Model Userfields, country with id Nederland not found
  url: administrator/index.php?option=com_virtuemart&view=user&task=editshop

I can't find any solution.

Ocean
Title: Re: vmError: Model User Fields, country with
Post by: geof on February 08, 2014, 20:37:28 PM
Joomla 2.5.18
Virtuemart 2.0.26d

I have the same problem.
Title: Re: vmError: Model User Fields, country with
Post by: geof on February 08, 2014, 21:14:34 PM
I have a solution !!

ocean1
use PhpMyAdmin and run the query

- Replacing -
YOURCOUNTRY=Netherlands
jos = your table prefix

UPDATE jos_virtuemart_userfields SET `default`=(SELECT virtuemart_country_id FROM jos_virtuemart_countries WHERE country_name='YOURCOUNTRY') WHERE name='virtuemart_country_id';

OR

open jos_virtuemart_userfields
Edit field virtuemart_country_id
set for column "default" your virtuemart country id. For Netherlands is 150
Title: Re: vmError: Model User Fields, country with
Post by: Milbo on February 09, 2014, 17:55:37 PM
lol, how complex. It is a lot easier. go the country view, search for your country, take the ID noted there, enter the ID as default in the shopperfield country, done.

and the sql,.. is an idea, but "your country" must be in english, tricky. It would be nice, if someone just adds the country dropdown for the default field of countries.