# sitemap.xml

**URL:** <https://forum.shopware.com/t/sitemap-xml/13277>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [20. Mai 2013 um 19:25 UTC](https://forum.shopware.com/t/sitemap-xml/13277 "2013-05-20T19:25:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![07alex07](https://avatars.discourse-cdn.com/v4/letter/0/b5a626/32.png) [@07alex07](https://forum.shopware.com/u/07alex07)\
**Post date:** [20. Mai 2013 um 19:25 UTC](https://forum.shopware.com/t/sitemap-xml/13277/1 "2013-05-20T19:25:11Z")

</div>

Hallo zusammen, hab die Tage ein Update auf 4.0.8 gemacht und habe grad gemerkt wenn ich die site.tld/sitemap.xml aufrufe folgende Fehlermeldung erhalte. `XML-Verarbeitungsfehler: Kein Element gefunden Adresse: http://www.site.tld/sitemap.xml Zeile Nr. 511, Spalte 1: ^` ist das jemand bekannt?

---

<div class="post-metadata">

**Author:** ![07alex07](https://avatars.discourse-cdn.com/v4/letter/0/b5a626/32.png) [@07alex07](https://forum.shopware.com/u/07alex07)\
**Post date:** [20. Mai 2013 um 22:00 UTC](https://forum.shopware.com/t/sitemap-xml/13277/2 "2013-05-20T22:00:39Z")

</div>

Fehler liegt schon mal in der SQL-Abfrage `SELECT a.id, DATE(a.changetime) as changed FROM s\_categories c, s\_categories c2, s\_articles\_categories ac, s\_articles a WHERE c.id=? AND c2.left \>= c.left AND c2.right \<= c.right AND c2.active = 1 AND ac.articleID = a.id AND ac.categoryID = c2.id AND a.active=1 GROUP BY a.id` und hier sollte ein Fehler sein. `#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? AND c2.left \>= c.left AND c2.right \<= c.right AN' at line 5`

---

<div class="post-metadata">

**Author:** ![Stefan\_Hamann](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@Stefan\_Hamann](https://forum.shopware.com/u/Stefan_Hamann)\
**Post date:** [21. Mai 2013 um 06:48 UTC](https://forum.shopware.com/t/sitemap-xml/13277/3 "2013-05-21T06:48:07Z")

</div>

Hallo, schau dir mal bitte die Datei engine/Shopware/Controllers/Frontend/Sitemap.php an - dort in Zeile 75 unter $parentId = Shopware()-\>Shop()-\>get(‘parentID’); einmal testweise mit die($parentId."#"); den Wert der Variable ausgeben lassen. Wenn der Null sein sollte, bitte einmal einen Export (mit Datensätzen) der Tabelle s\_core\_shops hier einstellen.

---

<div class="post-metadata">

**Author:** ![07alex07](https://avatars.discourse-cdn.com/v4/letter/0/b5a626/32.png) [@07alex07](https://forum.shopware.com/u/07alex07)\
**Post date:** [21. Mai 2013 um 09:29 UTC](https://forum.shopware.com/t/sitemap-xml/13277/4 "2013-05-21T09:29:39Z")

</div>

hier die Ausgabe `XML-Verarbeitungsfehler: Kein Element gefunden Adresse: http://www.site.tld/sitemap.xml Zeile Nr. 3, Spalte 3:3# --^`

---

<div class="post-metadata">

**Author:** ![07alex07](https://avatars.discourse-cdn.com/v4/letter/0/b5a626/32.png) [@07alex07](https://forum.shopware.com/u/07alex07)\
**Post date:** [21. Mai 2013 um 19:48 UTC](https://forum.shopware.com/t/sitemap-xml/13277/5 "2013-05-21T19:48:57Z")

</div>

Konnte das Problem lösen.

---

<div class="post-metadata">

**Author:** ![balu1](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@balu1](https://forum.shopware.com/u/balu1)\
**Post date:** [23. Mai 2013 um 15:19 UTC](https://forum.shopware.com/t/sitemap-xml/13277/6 "2013-05-23T15:19:21Z")

</div>

Darf man fragen wie das Problem gelöst wurde? Bei mir schaut die sitemap.xml genauso aus… Vielen Dank schonmal!

---

<div class="post-metadata">

**Author:** ![07alex07](https://avatars.discourse-cdn.com/v4/letter/0/b5a626/32.png) [@07alex07](https://forum.shopware.com/u/07alex07)\
**Post date:** [23. Mai 2013 um 15:38 UTC](https://forum.shopware.com/t/sitemap-xml/13277/7 "2013-05-23T15:38:03Z")

</div>

musste bei mir eine Abfrage einbauen, da ich keinen Blog nutze. in der Datei engine/Shopware/Controllers/Frontend/SitemapXml.php in zeile nach `$blogIds = Shopware()-\>Db()-\>quote($blogIds);` folgendes einfügen: `if (empty($blogIds)) { return; } `

---

<div class="post-metadata">

**Author:** ![balu1](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@balu1](https://forum.shopware.com/u/balu1)\
**Post date:** [23. Mai 2013 um 15:54 UTC](https://forum.shopware.com/t/sitemap-xml/13277/8 "2013-05-23T15:54:50Z")

</div>

Danke, das war’s! Ich nutze ebenfalls keinen Blog. Jetzt ist halt noch die Frage, ob das beim nächsten Update wieder zunichte gemacht wird…

---

<div class="post-metadata">

**Author:** ![07alex07](https://avatars.discourse-cdn.com/v4/letter/0/b5a626/32.png) [@07alex07](https://forum.shopware.com/u/07alex07)\
**Post date:** [23. Mai 2013 um 16:24 UTC](https://forum.shopware.com/t/sitemap-xml/13277/9 "2013-05-23T16:24:58Z")

</div>

Shopware wird das beim nächsten Update bestimmt die änderung übernehmen.
