Hello,

i have install the gsitemap (xml sitemap) modul. i start the settings and click on the link ( http://www.preishals.de/sitemap.xml ) but i become this error message:

XML-Verarbeitungsfehler: Kein Element gefunden
Adresse: http://www.preishals.de/sitemap.xml
Zeile Nr. 1, Spalte 1:
^

I'm looking for a solution, but I can't find anything. have you a solution for me?

kind regards
willi1

Comments

cburschka’s picture

The XML error that you are seeing locally is because the browser is getting an XML header from the server, followed by an empty page (you can check this by right-clicking on the page and selecting "View Source" - there is nothing in the page). The empty page indicates a fatal PHP error - the sitemap module is causing an error that forces it to exit immediately without producing any output.

To fix this, first you need to know what the PHP error actually is. To do this, you have to switch on error reporting, so PHP will print its error messages on the screen. Usually, this command should be enough when added to the beginning of the settings.php file: error_reporting(E_ALL); (you should remove it later for security, because it is easy to see information about your server this way). Then, go to http://www.preishals.de/sitemap.xml and view the source again; hopefully there will be an error message instead of the empty page, which you should then post here.

(And in German, because this might make things easier: )
---------------

Der XML-Fehler im Browser tritt lokal auf, weil der Server die Seite mit einem Header als XML deklariert hat, dann aber nur eine leere Seite überträgt (der Quellcode der Seite ist leer, die XML-Fehlermeldung wird also wirklich vom Browser und nicht vom Server erzeugt). Der Grund für die leere Seite ist wahrscheinlich ein fataler PHP-Fehler, also einer, der die Ausführung von PHP sofort abbrechen lässt, ohne Output zu erzeugen.

Um weiterzukommen, muss also erst mal bekannt sein was für ein Fehler überhaupt aufgetreten ist. Um den Fehler angezeigt zu bekommen, muss in der Datei "settings.php" dieser Befehl eingefügt werden: error_reporting(E_ALL); (den Sie nachher aus Sicherheitsgründen wieder entfernen sollten). Hoffentlich zeigt danach der Quellcode von http://www.preishals.de/sitemap.xml eine Fehlermeldung anstelle einer leeren Seite; diese Fehlermeldung sollten Sie dann hier posten.

willi1@drupalcenter.de’s picture

thank you, sorry for my english is ... ;-)

i have paste the line error_reporting(E_ALL); on three different places but the error message is the same. I'm confused

edit: the source code is empty

kind regards
willi1

willi1@drupalcenter.de’s picture

Hello,

i have test it on a local system without friendly url's and there is OK, on my online site the gsitemap don't create any folder on my webspace is there the problem?

kind regards
willi1