News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Error after Update to 2.0.16 currencydisplay.php on line 60

Started by Urs, December 21, 2012, 16:11:06 PM

Previous topic - Next topic

Urs

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

bytelord

#1
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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Do you use another cart module than ours?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

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');
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Urs



balai

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?