{"id":1118,"date":"2025-12-22T09:47:57","date_gmt":"2025-12-22T08:47:57","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=1118"},"modified":"2026-10-20T09:41:06","modified_gmt":"2026-10-20T07:41:06","slug":"erori-xml-in-prestashop-cum-sa-diagnosticati-si-sa-remediati","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/xml-errors-in-prestashop-how-to-diagnose-and-fix\/","title":{"rendered":"Erori XML \u00een Prestashop - cum s\u0103 diagnostica\u021bi \u0219i s\u0103 remedia\u021bi?"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">In special situations, <em><strong>Prestashop<\/strong> <\/em>may display error messages related to <em><strong>xml<\/strong><\/em> files. Below we present selected of them.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Error found : Extra content at the end of the document in country_module_list.xml file<\/li>\n\n\n\n<li>Error found : Sequence &#8216;]]>&#8217; not allowed in content in country_module_list.xml file<\/li>\n\n\n\n<li>Error found : internal error: detected an error in element content in country_module_list.xml file<\/li>\n\n\n\n<li>Error found : Extra content at the end of the document in country_module_list.xml file<\/li>\n\n\n\n<li>Error found : Premature end of data in tag badge line 1 in must_have_module_list.xml file<\/li>\n\n\n\n<li>Error found : StartTag: invalid element name in country_module_list.xml file<\/li>\n\n\n\n<li>Error found : Extra content at the end of the document in country_module_list.xml file<\/li>\n\n\n\n<li>Error found : StartTag: invalid element name in must_have_module_list.xml file<\/li>\n\n\n\n<li>Error found : Extra content at the end of the document in must_have_module_list.xml file<\/li>\n\n\n\n<li>Error found : Premature end of data in tag badges line 1 in must_have_module_list.xml file<\/li>\n\n\n\n<li>Error found : Premature end of data in tag module line 1 in must_have_module_list.xml file<\/li>\n\n\n\n<li>Error found : Premature end of data in tag modules line 1 in must_have_module_list.xml file<\/li>\n<\/ul>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/xml-errors-in-prestashop-how-to-diagnose-and-fix\/#Reason\" >Reason<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/xml-errors-in-prestashop-how-to-diagnose-and-fix\/#Solution\" >Solution<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/xml-errors-in-prestashop-how-to-diagnose-and-fix\/#Workaround\" >Workaround<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Reason\"><\/span>Reason<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">They are due to the fact that <em><strong>Prestashop<\/strong> <\/em>connects to the <em><strong>Addons<\/strong> <\/em>(modules) directory every day to download several files, including this <em><strong>xml<\/strong> <\/em>file for example: <strong>default_country_modules_list.xml<\/strong>.<\/p>\n\n\n\n<\/div>\n\n<div id=\"mybox-813540248\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">Dac\u0103 conexiunea este \u00eentrerupt\u0103 din orice motiv sau dac\u0103 serverul nu r\u0103spunde sau nu r\u0103spunde corect, fi\u0219ierul se poate \u00eenc\u0103rca incomplet, iar atunci apare o eroare la \u00eencercarea de citire \u0219i primim un mesaj de eroare din backend (panoul de administrare al magazinului).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Solution\"><\/span>Solu\u021bie<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Solu\u021bia la aceast\u0103 problem\u0103 este s\u0103 v\u0103 autentifica\u021bi pe <em><strong>FTP<\/strong> <\/em>\u0219i s\u0103 accesa\u021bi directorul <strong>\/config\/xml<\/strong>, apoi s\u0103 \u0219terge\u021bi fi\u0219ierul <em><strong>xml<\/strong> <\/em>care provoac\u0103 eroarea, adic\u0103, \u00een <strong>exemplul nostru, default_country_modules_list.xml<\/strong>. \u00cen pasul urm\u0103tor, acesta va fi re\u00eenc\u0103rcat, de obicei \u00een forma corect\u0103.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">NOT\u0102: \u00cenainte de \u0219tergere, v\u0103 recomand\u0103m s\u0103 face\u021bi o copie a fi\u0219ierului, desc\u0103rc\u00e2ndu-l de pe FTP \u00eentr-un director de pe computerul dvs. local.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Dup\u0103 \u0219tergere, cur\u0103\u021b\u0103m cache-ul magazinului acces\u00e2nd <em><strong>Avansat \u2013 Performan\u021b\u0103 \u2013 \u0218tergere cache<\/strong><\/em> din panoul de administrare al magazinului, din meniul din st\u00e2nga, \u0219i manual prin <em><strong>FTP<\/strong> <\/em>acces\u00e2nd directorul <strong>cache\/smarty\/compile<\/strong> \u0219i \u0219terg\u00e2nd toate directoarele care se afl\u0103 acolo.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Workaround\"><\/span>Solu\u021bie alternativ\u0103<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Dac\u0103 solu\u021bia de mai sus nu ajut\u0103, edita\u021bi fi\u0219ierul <strong>tools.php<\/strong> din directorul <strong>Classes<\/strong> prin FTP <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">G\u0103si\u021bi codul din acesta<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>protected static $is_addons_up = true; \npublic static function addonsRequest($request, $params = array()) \n{ return false;         \nif (!self::$is_addons_up) { \n return false;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0219i \u00eenlocui\u021bi-l cu urm\u0103torul<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>protected static $is_addons_up = false; \npublic static function addonsRequest($request, $params = array()) \n{ return false;         \nif (!self::$is_addons_up) { \n return false;<\/code><\/pre>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[25,11416,58,125],"manual_kb_tag":[330,445,446,447,448,449,450,451,452,453,454,1595,3142,3168,3169,3170],"class_list":["post-1118","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-hosting","manualknowledgebasecat-prestashop","manualknowledgebasecat-cms-web-applications","manualknowledgebasecat-websites","manual_kb_tag-administration-panel","manual_kb_tag-prestashop","manual_kb_tag-prestashop-modules","manual_kb_tag-prestashop-addons","manual_kb_tag-xml-errors","manual_kb_tag-xml-parsing-error","manual_kb_tag-xml-file","manual_kb_tag-module-list","manual_kb_tag-country-module-list","manual_kb_tag-must-have-module-list","manual_kb_tag-incomplete-xml-download","manual_kb_tag-clear-cache","manual_kb_tag-drupal","manual_kb_tag-extra-content-at-the-end-of-the-document","manual_kb_tag-premature-end-of-data","manual_kb_tag-store-administration"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/1118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":3,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/1118\/revisions"}],"predecessor-version":[{"id":5946,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/1118\/revisions\/5946"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=1118"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=1118"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=1118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}