I send sitemap to google console but shows an error. Console cant read my sitemap. Gives could't fetch error https://viral.gq/sitemap.xml
Using beta 13

clarkwinkelmann

Flarum core 0.1.0-beta.13
PHP version: 7.4.12
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, bz2, calendar, ctype, curl, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, mbstring, tokenizer, xml, i360, apcu, bcmath, dba, dbase, dom, fileinfo, gd, gender, geoip, gnupg, imap, json, exif, mongodb, mysqlnd, mysqli, OAuth, PDO, pdo_mysql, pdo_sqlite, Phar, posix, soap, sockets, sqlite3, timezonedb, uploadprogress, xmlreader, xmlwriter, xsl, yaml, zip
+-----------------------------------+------------------+--------+
| Flarum Extensions | | |
+-----------------------------------+------------------+--------+
| ID | Version | Commit |
+-----------------------------------+------------------+--------+
| flarum-approval | v0.1.0-beta.13 | |
| flarum-bbcode | v0.1.0-beta.12 | |
| flarum-emoji | v0.1.0-beta.13 | |
| flarum-lang-english | v0.1.0-beta.13 | |
| flarum-flags | v0.1.0-beta.13 | |
| flarum-likes | v0.1.0-beta.13 | |
| flarum-lock | v0.1.0-beta.13 | |
| flarum-markdown | v0.1.0-beta.13 | |
| flarum-mentions | v0.1.0-beta.13 | |
| flarum-statistics | v0.1.0-beta.13 | |
| flarum-sticky | v0.1.0-beta.13 | |
| flarum-subscriptions | v0.1.0-beta.13 | |
| flarum-suspend | v0.1.0-beta.13 | |
| flarum-tags | v0.1.0-beta.13.2 | |
| tolgaaaltas-lang-turkish | 0.14.0 | |
| tolgaaaltas-turkish | 0.14.0 | |
| nearata-tags-color-generator | v1.1.0 | |
| fof-default-group | 0.1.1 | |
| fof-user-directory | 0.3.4 | |
| fof-byobu | 0.5.6 | |
| flarum-pusher | v0.1.0-beta.13 | |
| fof-pretty-mail | 0.1.7 | |
| fof-sitemap | 0.5.3 | |
| v17development-seo | 1.2 | |
| fof-linguist | 0.4.3 | |
| clarkwinkelmann-create-user-modal | 1.0.1 | |
| reflar-doorman | 0.1.6 | |
| fof-profile-image-crop | 0.1.2 | |
| fof-frontpage | 0.1.4 | |
| jslirola-login2seeplus | v0.1.6 | |
| matteocontrini-imgur-upload | v3.3.1 | |
| askvortsov-pwa | v1.0.9 | |
+-----------------------------------+------------------+--------+
Base URL: https://viral.gq
Installation path: /home/xxx/viral.gq
Debug mode: off

    BilgehanArslan do you have any more detail on the error? It looks fine. Maybe it's proxy related, or you have some kind of anti-bot protection, or maybe there's a typo somewhere.

    i try to find where is the problem but i couldn't
    maybe there is a syntax error i dont know.
    im using firefox and my sitemap looks like

    https://viral.gq/ 2020-12-03T21:43:38+00:00 daily 0.9 https://viral.gq/d/3-ozel-gruplar-hakkinda 2020-12-02T19:42:04+00:00 daily 0.7 https://viral.gq/d/4-3-aralik-2020-gunluk-tahmin-banko 2020-12-02T22:39:11+00:00 daily 0.7 https://viral.gq/d/5-02122020-gunluk-kripto-para-analizi 2020-12-03T00:14:08+00:00 daily 0.7 https://viral.gq/d/7-03122020-supriz-kupon 2020-12-03T11:18:04+00:00 daily 0.7 https://viral.gq/d/8-davet-kodu-hakkinda 2020-12-03T12:15:08+00:00 daily 0.7 https://viral.gq/t/genel 2020-12-03T21:43:39+00:00 daily 0.9 https://viral.gq/t/g-ndem 2020-12-03T21:43:39+00:00 daily 0.9 https://viral.gq/t/polemikler 2020-12-03T21:43:39+00:00 daily 0.9 https://viral.gq/t/bahis-kuponlar 2020-12-03T21:43:39+00:00 daily 0.9 https://viral.gq/t/gruplar 2020-12-03T21:43:39+00:00 daily 0.9 https://viral.gq/t/kripto-paralar 2020-12-03T21:43:39+00:00 daily 0.9 https://viral.gq/t/test 2020-12-03T21:43:39+00:00 daily 0.9

    not shows like xml tree its just look like pure text
    i tried in safari now its same

      BilgehanArslan maybe your web server incorrectly gives the sitemap a Content-Type of text/html? You could check that via the browser network tab or by using an app like Postman to make and inspect the request.

      When I make the request, the response type is correctly application/xml and Firefox renders the document as XML.

      Status Code: 200 OK
      accept-ranges: bytes
      alt-svc: quic=":443"; ma=2592000; v="43,46", h3-Q043=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-25=":443"; ma=2592000, h3-27=":443"; ma=2592000
      cache-control: public, max-age=0
      content-encoding: br
      content-length: 399
      content-type: application/xml
      date: Fri, 04 Dec 2020 18:10:02 GMT
      expires: Fri, 04 Dec 2020 18:10:02 GMT
      last-modified: Thu, 03 Dec 2020 21:49:47 GMT
      server: LiteSpeed
      vary: User-Agent
      x-firefox-spdy: h2

      i think it looks like ok.

      i check with yandex webmaster tools sitemap checker its say ok to xml.

      google say couldn't fetch
      in my browser, not look like a xml.

      i will check again if i can found a problem i will post here

      5 days later

      jmelich

      After a bit of research I realized that Flarum have a discussion with lots of null values in it's fields, it was a discussion with just a title. Not sure why Flarum done this but I just removed it through the GUI and now works like a charm 😉

      5 days later

      Wondering if i need to input the the following field to cong file of my nginx server, where the sitemap.xml isn't giving an 404 error

      location = /sitemap.xml {
      try_files $uri $uri/ /index.php?$query_string;
      }

        7 days later

        hdzz_top composer require fof/sitemap:* should install the last compatible version. It seems to be 0.5.3. If the command doesn't work, you can replace the * with 0.5.3.

        If possible, try updating to the more recent Flarum versions since we can't provide support anymore for beta 13 versions of this extension.

          hdzz_top you probably have discussions without a last_posted_at value. The extension was not designed to handle that situation.

          Best would probably be to fix those values by hand.

          This might have been caused by a manual data import, or an extension that creates discussions without updating that value.