News:

Support the VirtueMart project and become a member

Main Menu

vmError: Model Userfields, state with id COM_VIRTUEMART_SHOPPER_FORM_STATE

Started by meysam66, May 02, 2020, 22:48:04 PM

Previous topic - Next topic

meysam66

hello i have updated my virtuemart from Version 3.4.2 to version 3.6.10 and now i get this error on top of every order print sheets:

vmError: Model Userfields, state with id COM_VIRTUEMART_USER_FORM_ST_LABEL not found

i have searched the web about it, but i dont understand the cause of it, all the fields about shopper, vendor and the users has a propper value.

does anybody have a clue?

GJC Web Design

it appears to be from the userfields model

function getUserFieldsFilled()

~ line 915 vmError('Model Userfields, state with id '.$_return['fields'][$_fld->name]['value'].' not found');

but which constant  COM_VIRTUEMART_SHOPPER_FORM_STATE or COM_VIRTUEMART_USER_FORM_ST_LABEL ?
you mention both

so something to do with address states
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

meysam66

hello, thanks for you reply.

you'r right, i have mentioned the wrong phrase at the subject.
in actual error there is COM_VIRTUEMART_USER_FORM_ST_LABEL, which for me is "address nickname".

i have temporarily solved the issue with deleting that phrase from default value of shopperfield "virtuemart_state_id".

but i still didn't understand the cause, is that code line you have mentiend new to virtuemart?
should i comment that?
and why i dont get an error for other fields that has the phrase "COM_VIRTUEMART_USER_FORM_ST_LABEL" as default value too, like "virtuemart_country_id"?

GJC Web Design

that code has been there forever...

you need to do some digging as to why OM_VIRTUEMART_USER_FORM_ST_LABEL  is being returned for $_return['fields'][$_fld->name]['value']
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation