On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hello,

    I'm using Revo 2.7.1 with Sterc SEOPro 1.3.0-pl Extra. On some MODX sites I'm having issues when generating the sitemap.

    I'm using the snippet call

    [[!StercSeoSiteMap]]
    in a XML type document with template set to empty.

    The XML code is including html and body tags:

    <?xml version="1.0" encoding="UTF-8"?><html><body><urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>.....


    This of course is resulting in an error.

    Is it possible that it has to do with the core folder / path being outside of the site root (which is recommended security hardening)?

    Thanks!
    Guenter

    • Mark Hamstra Reply #2, 9 months ago
      If your template and resource content truly are empty then I'm not sure where the html and body tag might be coming from, but..

      Is it possible that it has to do with the core folder / path being outside of the site root (which is recommended security hardening)?

      .. that's a definite no, hardening your site does not impact how your site is rendered one bit.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
      • Quote from: markh at Mar 12, 2019, 04:29 AM
        If your template and resource content truly are empty then I'm not sure where the html and body tag might be coming from, but..

        Is it possible that it has to do with the core folder / path being outside of the site root (which is recommended security hardening)?

        .. that's a definite no, hardening your site does not impact how your site is rendered one bit.

        Hello Mark,
        that's good to know, thanks. Any other idea or suggestion for the issue?
        Thx again
        • Is it possible that the extra is inserting those because it doesn't find them in the template?

          Also, if the extra calls any of the MODX regClient...() methods to load JS or CSS code, not having head and body tags will defeat that.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting