VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: Urs on December 21, 2012, 16:11:06 PM

Title: Error after Update to 2.0.16 currencydisplay.php on line 60
Post by: Urs on December 21, 2012, 16:11:06 PM
After Update to 2.0.16 on our testsystem, just a blank page with:

Warning: require_once(/pathto/test.aqula.ch/html/administrator/components/com_virtuemart/plugins/currency_converter): failed to open stream: No such file or directory in /pathto/test.aqula.ch/html/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 60 Fatal error: require_once(): Failed opening required '/pathto/test.aqula.ch/html/administrator/components/com_virtuemart/plugins/currency_converter/' (include_path='.:/pathto/lsphp5/lib/php') in /pathto/test.aqula.ch/html/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 60

regards


Urs
Title: Re: Error after Update to 2.0.16
Post by: bytelord on December 21, 2012, 16:19:13 PM
Hello,

Please verify that under Configuration -> Shop the option Select a currency converter module is not empty, select convertECB.php and save.

May be we should change the line 56 on currencydiplay.php try to place,

$converterFile  = VmConfig::get('currency_converter_module','convertECB.php');

instead of:

$converterFile  = VmConfig::get('currency_converter_module');

Please test it ... :)


Update: Did you update AOI 2016?

Regards
Title: Re: Error after Update to 2.0.16
Post by: Milbo on December 21, 2012, 17:23:55 PM
I answered this also here, http://forum.virtuemart.net/index.php?topic=110743.msg373887#msg373887

very strange thing. Theoretically not possible, because we ask before if the file is existing.
Title: Re: Error after Update to 2.0.16
Post by: Milbo on December 22, 2012, 19:17:55 PM
Do you use another cart module than ours?
Title: Re: Error after Update to 2.0.16
Post by: Milbo on December 23, 2012, 11:26:57 AM
Looks like this error happens if you load some vm module, while vm is not loaded.

Maybe some 3rd party cart module or similar not correctly initialised with VmConfig::loadConfig();

Anyway a little fix is to add in BE/helpers/currencydisplay.php

Line 56       $converterFile  = VmConfig::get('currency_converter_module','convertECB.php');
Title: Re: Error after Update to 2.0.16 currencydisplay.php on line 60
Post by: Urs on December 24, 2012, 07:25:16 AM
that fixed it! Thanks a lot!

regards


Urs
Title: Re: Error after Update to 2.0.16 currencydisplay.php on line 60
Post by: Shawn on January 03, 2013, 15:30:31 PM
Worked for me too!

Thanks Milbo!
Title: Re: Error after Update to 2.0.16 currencydisplay.php on line 60
Post by: balai on January 05, 2013, 09:14:49 AM
This worked to me too,although the prices of the products which was set in different than the shop's currency, are no more visible to the front-end and the add to cart button has gone too.

Any idea?