News:

Looking for documentation? Take a look on our wiki

Main Menu

After Upgrade to 2.0.16

Started by ThefaceandBody, December 22, 2012, 14:30:41 PM

Previous topic - Next topic

ThefaceandBody

Yesterday I noticed That there is a new upgrade available for VirtueMart so I clicked on the upgrade button, and I now have the latest version,however when I start my website I get an error message stating:

Warning: require_once(/home/xxxxxxxx/public_html/aruba/administrator/components/com_virtuemart/plugins/currency_converter) [function.require-once]: failed to open stream: Success in /home/xxxxxxxx/public_html/aruba/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 60

Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxxxxx/public_html/aruba/administrator/components/com_virtuemart/plugins/currency_converter/' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxxx/public_html/aruba/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 60
===================================================================================================
      $this->_db = JFactory::getDBO();
      $q = 'SELECT `vendor_currency`,`currency_code_3`,`currency_numeric_code` FROM `#__virtuemart_vendors` AS v
      LEFT JOIN `#__virtuemart_currencies` AS c ON virtuemart_currency_id = vendor_currency
      WHERE v.`virtuemart_vendor_id`="'.(int)$vendorId.'"';

      $this->_db->setQuery($q);
      $row = $this->_db->loadRow();
      $this->_vendorCurrency = $row[0];
      $this->_vendorCurrency_code_3 = $row[1];
      $this->_vendorCurrency_numeric = (int)$row[2];

      //vmdebug('$row ',$row);
      $converterFile  = VmConfig::get('currency_converter_module');

      if (file_exists( JPATH_VM_ADMINISTRATOR.DS.'plugins'.DS.'currency_converter'.DS.$converterFile )) {
         $module_filename=substr($converterFile, 0, -4);
         require_once(JPATH_VM_ADMINISTRATOR.DS.'plugins'.DS.'currency_converter'.DS.$converterFile);
         if( class_exists( $module_filename )) {
            $this->_currencyConverter = new $module_filename();
         }
      } else {

         if(!class_exists('convertECB')) require(JPATH_VM_ADMINISTRATOR.DS.'plugins'.DS.'currency_converter'.DS.'convertECB.php');
         $this->_currencyConverter = new convertECB();

      }

   }

   /**
    *
    * Gives back the format of the currency, gets $style if none is set, with the currency Id, when nothing is found it tries the vendorId.
    * When no param is set, you get the format of the main vendor.
===========================================================================

Can anybody help me fix this problem I am using multiple currencies.



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

ThefaceandBody

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

The above modification helped fix the problem I had Thank You;


Production: Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.16 

Milbo

Yeh, I added this also, but it is really strange, because it should never happen even without the default value.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/