Hi all,
Getting a weird error when generating manually (no plugin) a simple sitemap index file.
Using Modx 2.7.3 on a Apache server, i don’t get this error with an older site on the very same server where i am still using 2.6.5 and haven’t done the migration to 2.7 yet
and then /sitemap/sitemapindex
/body/html at the end.
obviously we dont want the DOCTYPE and the html, body tags triggering the error
With the template empty and the xml type selected , i really don’t understand why these html tags
are automatically generated ??
To generate the resource : document template empty, settings : document, xml, inline and all boxes empty except empty cache
Emptied cache several times including manually with Filezilla
Any idea re this error ?
Thanks
PS : how do you insert code into a post, i had to remove the <
Can you come back edit the code so we can see the proper code wrapped in ```?
Is there by chance a file on the file system with the same alias/extension? If there is, the server will server that instead of the MODX Resource.
Also, can you show a screen shot of what you’re seeing in the edit view including the template? It would be good to also see the output of the view source. Does changing the resource content change anything? How are you generating the sitemap? Are you manually editing the xml in the resource?
i typed “void” instead in the content field to check, i get the same tags
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body><p>void</p></body></html>
Sitemap index manually written
Sounds like the rich text editor is working despite the box unticked ??
Thanks !
PS : am using the adaptiveimage plugin (just seen in an older forum thread this could be the issue)
Is there a way to disable a plugin when the template is empty ?
Solved
Many thanks for your help as i wouldn’t have found this on my own !
Cheers
PS : Is there a way to modify the subject of this thread ? I would have liked to add AdaptiveImage plugin
in my first post title for others facing the same pb., but cannot edit this post anymore