dragomano / Optimus

A simple SEO mod for SMF
https://custom.simplemachines.org/mods/index.php?mod=2659
Artistic License 2.0
6 stars 8 forks source link

Cannot show sitemap xml, it shows error ouput header and footer! #27

Closed tuivodich closed 4 years ago

tuivodich commented 4 years ago

Describe the bug Cannot show sitemap xml, it shows error ouput header and footer!

To Reproduce Steps to reproduce the behavior:

  1. Install SMF 2.1.x and this Optimus mod
  2. Go to Admin CP --> Optimus setting --> Activate the Sitemap area
  3. Browser link: youforum/index.php?action=sitemap;xml
  4. See error

Fix solution Open file Sources\Optimus\Sitemap.php. Find (line 73 - 75):

    public static function getXml()
    {
        global $modSettings, $context, $scripturl;

Replace with:

    public static function getXml()
    {
        global $modSettings, $context, $scripturl;
        loadTemplate('Optimus');
dragomano commented 4 years ago

I can't reproduce it. Are you using the latest build of OP?

tuivodich commented 4 years ago

Oh sorry, that's my fault. This error happens when i use 2 mods: Sitemap by Matt Zuba and this Optimus mod. I modified some changes for them to work together! And both works perfectly!