News:

Support the VirtueMart project and become a member

Main Menu

Currency converter warning in XML - [SOLVED]

Started by datalabsys, September 11, 2018, 15:01:15 PM

Previous topic - Next topic

datalabsys

Hi Guys, i have an error on one of the websites i have built, just out of nowhere this warning appeared:

Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: body line 3 and html in Entity, line: 7 in /home/user/public_html/administrator/components/com_virtuemart/plugins/currency_converter/convertECB.php on line 144

i go in the file but i dont see anything weird there...... do you have any idea?

thanks in advance

jenkinhill

Following a change in the ECB XML file address the currency converter module in VM has been updated, http://dev.virtuemart.net/attachments/download/1127/com_virtuemart.3.2.15.9925_package_or_extract.zip  (test on a backup of your live site first).
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

datalabsys

#2
Thanks for that....it fixed the issue.

:)

paso

Thank you It helped me too. I made the change during the weekend an I was not able to see the good outcome. The downloaded xml file is cached and the joomla clear cache does not clean it so I am adding  this info to help others with debugging. You need to delete daily.xml from cache folder to see changes.
B.R. Pavel

Croc

A solution for olrder VM version (I tested on VM 3.2.4)

\administrator\components\com_virtuemart\plugins\currency_converter\convertECB.php

find
$xmlDoc = new DomDocument();

add BEFORE
libxml_use_internal_errors(true);
Web-expert.gr : Joomla Hosting cPanel & Virtuemart Extensions

barbara

this is still happening on newest versions j 3.8.12 / vm 3.4.0.9935

the fix referred to was a vm 3.2 package?!

is there a way to fix this in VM 3.4?

barbara

Quote from: Croc on September 18, 2018, 09:43:49 AM
A solution for olrder VM version (I tested on VM 3.2.4)

\administrator\components\com_virtuemart\plugins\currency_converter\convertECB.php

find
$xmlDoc = new DomDocument();

add BEFORE
libxml_use_internal_errors(true);

I tried the above but nothing happened - I think maybe i didn't add correctly - what exactly do you mean? eg this is what i did

/* XML Parsing */
            libxml_use_internal_errors(true);
            $xmlDoc = new DomDocument();





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

Croc

You have to change the link from http:// to https://

https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml

Line round 25-26
var $document_address = 'https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml';
Web-expert.gr : Joomla Hosting cPanel & Virtuemart Extensions