DursunCan what mode are you using?
In "Runtime mode", it's normal for no file to be generated. Flarum answers the request dynamically through index.php
DursunCan what mode are you using?
In "Runtime mode", it's normal for no file to be generated. Flarum answers the request dynamically through index.php
clarkwinkelmann runtime mode
yes. Don't I need to submit sitemap file to search engines?
DursunCan in runtime mode, the file doesn't exist on disk, but it can be reached through its URL: https://<your website>/sitemap.xml
If you need to download it to pass it on to a search engine as file instead of URL for some reason, you can access that URL in your browser, then select "save page as..." to download it to your computer.
In runtime mode, you shouldn't place any file at <flarum path on disk>/public/sitemap.xml
, as the webserver would like switch to serving that file, and it will never be updated again.
FriendsOfFlarum datitisev clarkwinkelmann
Hello, I'm using FoF Sitemap 1.0.3 set on Mutli file, on a Flarum 1.1.1 installation. I have over 100k discussions, with over 1M replies, but for some reason on Google Search Console I get only 27k valid pages, while other 27k are "Crawled - currently not indexed", 22k "Discovered - currently not indexed", 76k "Alternative page with proper canonical tag" and 77k "Page with redirect". What should I do to optimize this?
IanM Simplify console commands into one new command fof:sitemap:build
Add cleanup from other modes so that old sitemap files are not left behind
Flarum 1.0
Could someone change that in the initial description?
I was wondering why my sitemap did get lost and google kept sending me mails. Thanks.
FriendsOfFlarum php flarum fof:sitemap:cache
did this command got changed to php flarum fof:sitemap:build
?
I found an error in flarum log;
[2022-02-19 00:50:53] flarum.ERROR: Symfony\Component\Console\Exception\CommandNotFoundException: Command "fof:sitemap:cache" is not defined.
Did you mean this?
fof:sitemap:build in /var/www/html/vendor/symfony/console/Application.php:709
Stack trace:
#0 /var/www/html/vendor/symfony/console/Application.php(259): Symfony\Component\Console\Application->find()
#1 /var/www/html/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#2 /var/www/html/vendor/flarum/core/src/Console/Server.php(42): Symfony\Component\Console\Application->run()
#3 /var/www/html/flarum(24): Flarum\Console\Server->listen()
#4 {main}
anything wrong in my config?
Hari I tried this from command line, sitemap.xml is created and being updated. I just wonder what these errors are?
Hari oh no, sitemap.xml does not update itself. I've to do it manually via runnig php flarum fof:sitemap:build command from cli.
I think related php files are not updated and still running old command fof:sitemap:cache
I am rewriting this extension from scratch (pretty much). So I don't think we'll patch this soon, unless someone else wants to do a patch release.
You can probably temporarily set up the correct command as a cronjob.
luceos yes, I defined a cronjob.
in the extension is the old link: https://docs.flarum.org/console.html#schedule-run