anarchy99 Posted April 14, 2019 Share Posted April 14, 2019 (edited) Hello, I get these error after disable smart cache for css. I'd try to searching for solutions but it's not exist. Thank you in advance for the answer. This is an errors in BO (2/2) InvalidResourceException Unable to load "/home/overzeas/domains/overzeas.net/public_html/app/Resources/translations/th-TH/ModulesWirepaymentShop.th-TH.xlf": [ERROR 522] Validation failed: no DTD found ! (in n/a - line 2, column 67) [ERROR 76] Opening and ending tag mismatch: xliff line 2 and body (in n/a - line 64, column 12) [ERROR 5] Extra content at the end of the document (in n/a - line 65, column 3) in XliffFileLoader.php line 56 at XliffFileLoader->extract(object(SplFileInfo), object(MessageCatalogue), 'ModulesWirepaymentShop')in XliffFileLoader.php line 42 at XliffFileLoader->load(object(SplFileInfo), 'th-TH', 'ModulesWirepaymentShop')in Translator.php line 381 at Translator->doLoadCatalogue('th-TH')in Translator.php line 277 at Translator->initializeCatalogue('th-TH')in Translator.php line 314 at Translator->dumpCatalogue('th-TH', object(ConfigCache))in Translator.php line 299 at Translator->Symfony\Component\Translation\{closure}(object(ConfigCache))in ConfigCacheFactory.php line 46 at ConfigCacheFactory->cache('/home/overzeas/domains/overzeas.net/public_html/var/cache/dev/translations/catalogue.th-TH.NXhscRe.php', object(Closure))in Translator.php line 300 at Translator->initializeCacheCatalogue('th-TH')in Translator.php line 265 at Translator->loadCatalogue('th-TH')in Translator.php line 241 at Translator->getCatalogue('th-TH')in Context.php line 353 at ContextCore->getTranslator()in Controller.php line 224 at ControllerCore->__construct()in AdminController.php line 417 at AdminControllerCore->__construct()in LegacyContext.php line 63 at LegacyContext->getContext()in UserLocaleListener.php line 39 at UserLocaleListener->__construct(object(LegacyContext))in appDevDebugProjectContainer.php line 1800 at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()in appDevDebugProjectContainer.php line 2284 at appDevDebugProjectContainer->ContainerU9kankw\{closure}()in EventDispatcher.php line 229 at EventDispatcher->sortListeners('kernel.request')in EventDispatcher.php line 61 at EventDispatcher->getListeners('kernel.request')in ContainerAwareEventDispatcher.php line 128 at ContainerAwareEventDispatcher->getListeners('kernel.request')in TraceableEventDispatcher.php line 262 at TraceableEventDispatcher->preProcess('kernel.request')in TraceableEventDispatcher.php line 137 at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in HttpKernel.php line 127 at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68 at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200 at Kernel->handle(object(Request), 1, false)in index.php line 88 (1/2) XmlParsingException [ERROR 522] Validation failed: no DTD found ! (in n/a - line 2, column 67) [ERROR 76] Opening and ending tag mismatch: xliff line 2 and body (in n/a - line 64, column 12) [ERROR 5] Extra content at the end of the document (in n/a - line 65, column 3) in XmlUtils.php line 62 at XmlUtils::parse('<?xml version="1.0" encoding="UTF-8"?><xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2"> <file original="modules/ps_wirepayment/controllers/front/payment.php" source-language="en" target-language="th" datatype="plaintext"> <body> </body> </file> <file original="modules/ps_wirepayment/controllers/front/validation.php" source-language="en" target-language="th" datatype="plaintext"> <body> <trans-unit id="e2b7dec8fa4b498156dfee6e4c84b156" approved="yes"> <source>This payment method is not available.</source> <target xml:lang="th" state="translated">วิธีการชำระเงินนี้ไม่สามารถใช้ได้</target> <note>Line: 50</note> </trans-unit> </body> </file> <file original="modules/ps_wirepayment/views/templates/hook/_partials/payment_infos.tpl" source-language="en" target-language="th" datatype="plaintext"> <body> <trans-unit id="b2f40690858b404ed10e62bdf422c704" approved="yes"> <source>Amount</source> <target xml:lang="th" state="translated">จำนวน</target> <note>Line: 28</note> </trans-unit> <trans-unit id="5ca0b1b910f393ed1f9f6fa99e414255" approved="yes"> <source>Name of account owner</source> <target xml:lang="th" state="translated">ชื่อเจ้าของบัญชี</target> <note>Line: 30</note> </trans-unit> <trans-unit id="984482eb9ff11e6310fef641d2268a2a" approved="yes"> <source>Bank name</source> <target xml:lang="th" state="translated">ชื่อธนาคาร</target> <note>Line: 34</note> </trans-unit> </body> </file> <file original="modules/ps_wirepayment/views/templates/hook/payment.tpl" source-language="en" target-language="th" datatype="plaintext"> <body> <trans-unit id="5e1695822fc5af98f6b749ea3cbc9b4c" approved="yes"> <source>Pay by bank wire</source> <target xml:lang="th" state="translated">ชำระเงินโดยการโอนเงิน</target> <note>Line: 29</note> </trans-unit> <trans-unit id="4e1fb9f4b46556d64db55d50629ee301" approved="yes"> <source>(order processing will be longer)</source> <target xml:lang="th" state="translated">(การตรวจสอบการสั่งซื้อจะใช้เวลานานขึ้น)</target> <note>Line: 29</note> </trans-unit> </body> </file> <file original="modules/ps_wirepayment/views/templates/hook/payment_return.tpl" source-language="en" target-language="th" datatype="plaintext"> <body> <trans-unit id="88526efe38fd18179a127024aba8c1d7" approved="yes"> <source>Your order on %s is complete.</source> <target xml:lang="th" state="translated">คำสั่งซื้อของคุณ เมื่อ %s ได้เสร็จสมบูรณ์แล้ว</target> <note>Line: 28</note> </trans-unit> <trans-unit id="b9a1cae09e5754424e33764777cfcaa0" approved="yes"> <source>Your order will be sent as soon as we receive payment.</source> <target xml:lang="th" state="translated">สินค้าของท่านจะถูกจัดส่งทันทีหลังจากเราได้รับการชำระเงิน</target> <note>Line: 37</note> </trans-unit> </body> </file> </body> </file></xliff>', null)in XmlUtils.php line 131 at XmlUtils::loadFile(object(SplFileInfo))in XliffFileLoader.php line 54 at XliffFileLoader->extract(object(SplFileInfo), object(MessageCatalogue), 'ModulesWirepaymentShop')in XliffFileLoader.php line 42 at XliffFileLoader->load(object(SplFileInfo), 'th-TH', 'ModulesWirepaymentShop')in Translator.php line 381 at Translator->doLoadCatalogue('th-TH')in Translator.php line 277 at Translator->initializeCatalogue('th-TH')in Translator.php line 314 at Translator->dumpCatalogue('th-TH', object(ConfigCache))in Translator.php line 299 at Translator->Symfony\Component\Translation\{closure}(object(ConfigCache))in ConfigCacheFactory.php line 46 at ConfigCacheFactory->cache('/home/overzeas/domains/overzeas.net/public_html/var/cache/dev/translations/catalogue.th-TH.NXhscRe.php', object(Closure))in Translator.php line 300 at Translator->initializeCacheCatalogue('th-TH')in Translator.php line 265 at Translator->loadCatalogue('th-TH')in Translator.php line 241 at Translator->getCatalogue('th-TH')in Context.php line 353 at ContextCore->getTranslator()in Controller.php line 224 at ControllerCore->__construct()in AdminController.php line 417 at AdminControllerCore->__construct()in LegacyContext.php line 63 at LegacyContext->getContext()in UserLocaleListener.php line 39 at UserLocaleListener->__construct(object(LegacyContext))in appDevDebugProjectContainer.php line 1800 at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()in appDevDebugProjectContainer.php line 2284 at appDevDebugProjectContainer->ContainerU9kankw\{closure}()in EventDispatcher.php line 229 at EventDispatcher->sortListeners('kernel.request')in EventDispatcher.php line 61 at EventDispatcher->getListeners('kernel.request')in ContainerAwareEventDispatcher.php line 128 at ContainerAwareEventDispatcher->getListeners('kernel.request')in TraceableEventDispatcher.php line 262 at TraceableEventDispatcher->preProcess('kernel.request')in TraceableEventDispatcher.php line 137 at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in HttpKernel.php line 127 at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68 at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200 at Kernel->handle(object(Request), 1, false)in index.php line 88 This is an errors in Front Fatal error: Uncaught Symfony\Component\Config\Util\Exception\XmlParsingException: [ERROR 522] Validation failed: no DTD found ! (in n/a - line 2, column 67) [ERROR 76] Opening and ending tag mismatch: xliff line 2 and body (in n/a - line 64, column 12) [ERROR 5] Extra content at the end of the document (in n/a - line 65, column 3) in /home/overzeas/domains/overzeas.net/public_html/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php:62 Stack trace: #0 /home/overzeas/domains/overzeas.net/public_html/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(131): Symfony\Component\Config\Util\XmlUtils::parse('<?xml version="...', NULL) #1 /home/overzeas/domains/overzeas.net/public_html/vendor/symfony/symfony/src/Symfony/Component/Translation/Loader/XliffFileLoader.php(54): Symfony\Component\Config\Util\XmlUtils::loadFile(Object(Symfony\Component\Finder\SplFileInfo)) #2 /home/overzeas/domains/overzeas.net/public_html/vendor/symfony/symfony/src/Symfony/Component/Translation/Loader/XliffFileLoader in /home/overzeas/domains/overzeas.net/public_html/vendor/symfony/symfony/src/Symfony/Component/Translation/Loader/XliffFileLoader.php on line 56 Edited April 14, 2019 by anarchy99 (see edit history) Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 19, 2019 Share Posted April 19, 2019 Em 14/04/2019 em 1:50 PM, anarchy99 disse: app/Resources/translations/th-TH/ModulesWirepaymentShop.th-TH.xlf Maybe this file is corrupted? Did you try to rename It? Link to comment Share on other sites More sharing options...
LadytronLal Posted November 26, 2019 Share Posted November 26, 2019 (edited) In my case, it was because of the "&" symbol that wasn't understand by the xlf ! I change "&" with "and" and it magically worked 😀 (in the traduction files) Edited November 26, 2019 by LadytronLal (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now