VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: datalabsys on September 11, 2018, 15:01:15 PM

Title: Currency converter warning in XML - [SOLVED]
Post by: datalabsys on September 11, 2018, 15:01:15 PM
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
Title: Re: Currency converter warning in XML
Post by: jenkinhill on September 11, 2018, 15:09:58 PM
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).
Title: [solved] Re: Currency converter warning in XML
Post by: datalabsys on September 11, 2018, 16:12:34 PM
Thanks for that....it fixed the issue.

:)
Title: Re: Currency converter warning in XML - [SOLVED]
Post by: paso on September 17, 2018, 12:40:11 PM
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
Title: Re: Currency converter warning in XML - [SOLVED]
Post by: 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);
Title: Re: Currency converter warning in XML - [SOLVED]
Post by: barbara on September 20, 2018, 01:50:25 AM
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?
Title: Re: Currency converter warning in XML - [SOLVED]
Post by: barbara on September 20, 2018, 02:18:14 AM
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();




Title: Re: Currency converter warning in XML - [SOLVED]
Post by: GJC Web Design on September 20, 2018, 14:45:38 PM
I don't know what this fix is supposed to do..

all I did was:
http://forum.virtuemart.net/index.php?topic=140888.msg495770#msg495770

and it works
Title: Re: Currency converter warning in XML - [SOLVED]
Post by: Croc on October 01, 2018, 09:39:31 AM
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';