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
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).
Thanks for that....it fixed the issue.
:)
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
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);
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?
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();
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
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';