News:

Support the VirtueMart project and become a member

Main Menu

VM - Currencies Selector error

Started by kirkdickinson, December 11, 2013, 18:08:40 PM

Previous topic - Next topic

kirkdickinson

I am getting an error popping up right on the page where it says VM - Currencies

Warning: Invalid argument supplied for foreach() in D:\home\thelonghornstore.com\wwwroot\joomla\libraries\joomla\html\html\select.php on line 504
Select an Opt

I am a US seller and probably have no need to ever change the currencies, unless the dollar tanks.

How do I fix this error?

Thanks,

Kirk

[attachment cleanup by admin]
PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

kirkdickinson

PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

kirkdickinson

Nope, that doesn't fix it.  I have USDollar as my selected currency.  Still get the error.

PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

kirkdickinson

I added the version info to my sig.

Kirk
PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

GJC Web Design

might be a bit thick here but if your selling in the US why have you got the currency module published?

I assume you only USD enabled  - would account for the Invalid argument supplied for foreach() maybe?

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

kirkdickinson

Quote from: GJC Web Design on December 12, 2013, 21:27:11 PM
might be a bit thick here but if your selling in the US why have you got the currency module published?

Well, I am working on the back end getting products in and haven't messed with the front end much yet.  I haven't turned it off. When I see an error I always am concerned.  I was thinking that just because I couldn't see the error didn't mean that it still wasn't happening. 

You think, I just turn off the module... out of sight out of mind?  No worries?

PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

GJC Web Design

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

kirkdickinson

OK, thanks, I'll chuck it.  :) 

Have a Merry Christmas!
PHP Built On:    Windows NT NTC45 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Database Version:      5.6.14
Database Collation:      utf8_general_ci
PHP Version:    5.3.13
Web Server:    Microsoft-IIS/7.5
WebServer to PHP Interface:    cgi-fcgi
Joomla! Version:    Joomla! 2.5.16 Stable [ Ember ] 06-November-2013 22:30 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

GJC Web Design

Just for your info - it is only a warning.. not an error..
QuoteWarning: Invalid argument supplied for foreach()

I assume because your have no alternative currencies selected when the module would be expecting some

Cheers
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