{"id":9756,"date":"2022-08-22T22:47:18","date_gmt":"2022-08-22T20:47:18","guid":{"rendered":"https:\/\/dhosting.pl\/pomoc\/?post_type=manual_kb&#038;p=9756"},"modified":"2024-02-02T09:59:48","modified_gmt":"2024-02-02T08:59:48","slug":"bledy-xml-w-prestashop-jak-zdiagnozowac-i-naprawic","status":"publish","type":"manual_kb","link":"https:\/\/dhosting.pl\/pomoc\/baza-wiedzy\/bledy-xml-w-prestashop-jak-zdiagnozowac-i-naprawic\/","title":{"rendered":"B\u0142\u0119dy XML w Prestashop &#8211; jak zdiagnozowa\u0107 i naprawi\u0107?"},"content":{"rendered":"<p>W szczeg\u00f3lnych sytuacjach <em><strong>Prestashop<\/strong> <\/em>mo\u017ce wy\u015bwietla\u0107 komunikaty b\u0142\u0119du zwi\u0105zane z plikami <em><strong>xml<\/strong><\/em>. Poni\u017cej prezentujemy wybrane z nich.<\/p>\n<ul>\n<li>Error found : Extra content at the end of the document in country_module_list.xml file<\/li>\n<li>Error found : Sequence &#8216;]]&gt;&#8217; not allowed in content in country_module_list.xml file<\/li>\n<li>Error found : internal error: detected an error in element content in country_module_list.xml file<\/li>\n<li>Error found : Extra content at the end of the document in country_module_list.xml file<\/li>\n<li>Error found : Premature end of data in tag badge line 1 in must_have_module_list.xml file<\/li>\n<li>Error found : StartTag: invalid element name in country_module_list.xml file<\/li>\n<li>Error found : Extra content at the end of the document in country_module_list.xml file<\/li>\n<li>Error found : StartTag: invalid element name in must_have_module_list.xml file<\/li>\n<li>Error found : Extra content at the end of the document in must_have_module_list.xml file<\/li>\n<li>Error found : Premature end of data in tag badges line 1 in must_have_module_list.xml file<\/li>\n<li>Error found : Premature end of data in tag module line 1 in must_have_module_list.xml file<\/li>\n<li>Error found : Premature end of data in tag modules line 1 in must_have_module_list.xml file<\/li>\n<\/ul>\n<div class=\"custom-text-button-wrapper\"><img decoding=\"async\" src=\"https:\/\/dhosting.pl\/pomoc\/wp-content\/uploads\/2024\/02\/6-dhosting-symbol-inverted.png\" class=\"custom-icon\" alt=\"\" title=\"\"><div class=\"custom-text\" style=\"color: white;\">Poznaj hosting, kt\u00f3ry automatycznie dostosowuje si\u0119 do potrzeb<\/div><a href=\"https:\/\/dhosting.pl\/elastyczny-hosting.html\" class=\"custom-button\">Dowiedz si\u0119 wi\u0119cej<\/a><\/div>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-left counter-flat 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\">Spis tre\u015bci<\/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'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/dhosting.pl\/pomoc\/baza-wiedzy\/bledy-xml-w-prestashop-jak-zdiagnozowac-i-naprawic\/#Powod\" >Pow\u00f3d<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/dhosting.pl\/pomoc\/baza-wiedzy\/bledy-xml-w-prestashop-jak-zdiagnozowac-i-naprawic\/#Rozwiazanie\" >Rozwi\u0105zanie<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/dhosting.pl\/pomoc\/baza-wiedzy\/bledy-xml-w-prestashop-jak-zdiagnozowac-i-naprawic\/#Rozwiazanie_alternatywne\" >Rozwi\u0105zanie alternatywne<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Powod\"><\/span>Pow\u00f3d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Wynikaj\u0105 one z faktu, \u017ce <em><strong>Prestashop<\/strong> <\/em>codziennie \u0142\u0105czy si\u0119 z katalogiem <em><strong>Addons<\/strong> <\/em>(modu\u0142\u00f3w) w celu pobrania kilku plik\u00f3w, w tym tego pliku typu <em><strong>xml<\/strong> <\/em>na przyk\u0142ad: <strong>default_country_modules_list.xml<\/strong>.<\/p>\n<p>Je\u015bli po\u0142\u0105czenie zostanie przerwane z jakiegokolwiek powodu lub serwer nie odpowie czy nie odpowie poprawnie, plik mo\u017ce zosta\u0107 za\u0142adowany niekompletnie, wtedy pojawia si\u0119 b\u0142\u0105d przy pr\u00f3bie odczytu o otrzymujemy komunikat o b\u0142\u0119dzie z backendu (panelu administracyjnego sklepu).<\/p>\n<div id=\"dhost-2846998771\" class=\"dhost-inpost dhost-entity-placement\"><a href=\"https:\/\/dhosting.pl\/opieka-stron.html?utm_source=pomoc&utm_medium=artykul&utm_campaign=pomoc\" target=\"_blank\">\r\n\t<img decoding=\"async\" src=\"https:\/\/dhosting.pl\/pomoc\/wp-content\/uploads\/2025\/01\/baner-opieka.png\" alt=\"opieka stron www\">\r\n<\/a>\r\n<br \/>\r\n<br \/><\/div><h2><span class=\"ez-toc-section\" id=\"Rozwiazanie\"><\/span>Rozwi\u0105zanie<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Rozwi\u0105zaniem problemu jest zalogowanie si\u0119 na <em><strong>FTP<\/strong> <\/em>i przej\u015bcie do katalogu <strong>\/config\/xml<\/strong> i usuni\u0119cie pliku <em><strong>xml<\/strong> <\/em>powoduj\u0105cego b\u0142\u0105d czyli w naszym przyk\u0142adzie <strong>default_country_modules_list.xml<\/strong>, w kolejnym kroku zostanie on ponownie za\u0142adowany, zwykle ju\u017c w poprawnej formie.<\/p>\n<div class=\"error-alert-format\">\n<p>UWAGA: przed usuni\u0119ciem zalecamy wykonanie kopii pliku poprzez pobranie go z FTP do katalogu na komputerze lokalnym.<\/p>\n<\/div>\n<p>Po usuni\u0119ciu czy\u015bcimy sklep cache przechodz\u0105c na zapleczu sklepu w menu po lewej do <em><strong>Zaawansowane &#8211; Wydajno\u015b\u0107 &#8211; Wyczy\u015b\u0107 cache<\/strong><\/em> oraz r\u0119cznie poprzez <em><strong>FTP<\/strong> <\/em>przechodz\u0105c do katalogu <strong>cache\/smarty\/compile<\/strong> i usuwaj\u0105c wszystkie katalogi, kt\u00f3re si\u0119 tu znajduj\u0105.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Rozwiazanie_alternatywne\"><\/span>Rozwi\u0105zanie alternatywne<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Je\u015bli powy\u017csze rozwi\u0105zanie nie pomo\u017ce, poprzez <em><strong>FTP<\/strong> <\/em>edytuj plik <strong>tools.php<\/strong> znajduj\u0105cy si\u0119 w katalogu <strong>classes<\/strong><\/p>\n<p>Znajd\u017a w nim kod<\/p>\n<pre class=\"line-numbers\"><code class=\"language-php\" data-line=\"\">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<p>i zamie\u0144 go na poni\u017cszy<\/p>\n<pre class=\"line-numbers\"><code class=\"language-php\" data-line=\"\">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<p>&nbsp;<\/p>\n","protected":false},"author":6,"featured_media":10957,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[95,109],"manual_kb_tag":[2778,2780,655,3517,3516,2777,2779],"class_list":["post-9756","manual_kb","type-manual_kb","status-publish","format-standard","has-post-thumbnail","hentry","manualknowledgebasecat-hosting","manualknowledgebasecat-strony-www","manual_kb_tag-bledy-xml","manual_kb_tag-bledy-xml-w-prestashop","manual_kb_tag-hosting","manual_kb_tag-polski-hosting","manual_kb_tag-web-hosting","manual_kb_tag-xml","manual_kb_tag-xml-w-prestashop"],"_links":{"self":[{"href":"https:\/\/dhosting.pl\/pomoc\/wp-json\/wp\/v2\/manual_kb\/9756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dhosting.pl\/pomoc\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/dhosting.pl\/pomoc\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/dhosting.pl\/pomoc\/wp-json\/wp\/v2\/users\/6"}],"version-history":[{"count":0,"href":"https:\/\/dhosting.pl\/pomoc\/wp-json\/wp\/v2\/manual_kb\/9756\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dhosting.pl\/pomoc\/wp-json\/wp\/v2\/media\/10957"}],"wp:attachment":[{"href":"https:\/\/dhosting.pl\/pomoc\/wp-json\/wp\/v2\/media?parent=9756"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/dhosting.pl\/pomoc\/wp-json\/wp\/v2\/manualknowledgebasecat?post=9756"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/dhosting.pl\/pomoc\/wp-json\/wp\/v2\/manual_kb_tag?post=9756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}