FBI
I've just read from Github

$events->listen(DiscussionWasStarted::class, function (DiscussionWasStarted $event) {
$this->UpdateSitemap();

Sitemap was update it after discussion was created ?
Is it work for sub-directory of flarum installation?

$sitemap = new Sitemap(DIR . '/../../../../../sitemap.xml');

Because I tried, several times. Error occur during create discussion, and still on Discussion Windows.
But, actually discussion created succesfully on background (refresh the page).

And with FTP I dont see any sitemap file was created.

    FBI
    Probably this problem is related in extensions.

    If you don't have page or tag extensions installed, this error appears. I will correct this today and post e new release.

    a month later
    9 days later

    Hey there,

    Congrats for the extension...

    I have v1.0.1-beta.2 and even though I have both Tags and Pages plugins installed I have the same error as FBI indicated here.

    Any idea why? Each time I'm trying to create a new post, the error appears, the post creation box stays on the page, but the message is created (just created a discussion 3 times ?)

    Thanks

      Flarum has not focused on SEO, yet. Sitemap sure helps in SEO.

      cristic
      It's strange, i will check this, can you give more informations? Perform any test? Show Debug log.

      A new version will be available soon.

      punit2502
      Yep, it's a important thing to improve your visibility in search engines.

        @AllysonSouzaNopSai just checked.

        No error in the console (debug on). Just the red error message that tells me that something's wrong.

        Isn't it a permissions issue ? Maybe it cannot create the file. I didn't try to create an empty sitemap.xml file and see if it can put data in it.

        I'll take a look at this ?

        -------- LATER EDIT ---------

        Ok, just tried creating the file, but same issue... any other ideas ?