clarkwinkelmann
Yes, blog extensions, could it be supported by an index?
This problem can be resolved by reopening the plug-in after repairing the database.

17 days later

How do I configure my sitemap URL for Google and Bing?

20 days later

1.0.0

  • 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

⚠️ all operation modes other than runtime require the Flarum scheduler to be correctly setup. Please fully read and understand the instructions given in the extension settings page

Installation
composer require fof/sitemap:"*"
php flarum cache:clear

    Hari install command is here IanM

    I will update the OP soon and README soon

      IanM ok sir, thanks a lot to you and the sponsor

      i have installed sitemap and while trying to clear cache getting an error

      The stream or file "/public_html/folder/storage/logs/flarum-2021-05-27.log" could not be opened in append mode: failed to open stream: Permission denied

      what should be the file permission of the storage- cache and logs folder? is it 777?

      • IanM replied to this.
        22 days later

        I can't see the sitemap.xml file.

        # php flarum fof:sitemap:cache --write-xml-file
                                                                                                                                
         Command "fof:sitemap:cache" is not defined.                                                                            
                                                                                                                                
         Do you want to run "fof:sitemap:build" instead?  (yes/no) [no]:
        # php flarum fof:sitemap:build
        FoF Sitemap: running in cache mode
        FoF Sitemap: cache mode complete
        root@dursun:/var/flarum2# ll
        total 55448
        drwxrwxr-x  5 www-data www-data     4096 Jun 18 13:45 ./
        drwxr-xr-x 21 root     root         4096 Jun 18 12:34 ../
        drwxrwxr-x  6 www-data www-data     4096 Jun 18 14:04 assets/
        -rwxrwxr-x  1 www-data www-data     1757 May 27 08:54 CHANGELOG.md*
        -rwxrwxr-x  1 www-data www-data     4122 Jun 18 12:36 composer.json*
        -rwxrwxr-x  1 www-data www-data   568614 Jun 18 12:36 composer.lock*
        -rwxrwxr-x  1 www-data www-data      615 Jun 18 13:45 config.php*
        -rwxrwxr-x  1 www-data www-data      361 May 27 08:54 .editorconfig*
        -rwxrwxr-x  1 www-data www-data      265 May 27 08:54 extend.php*
        -rwxrwxr-x  1 www-data www-data      634 May 27 08:54 flarum*
        -rwxrwxr-x  1 www-data www-data     7312 Jun  3 00:22 .htaccess*
        -rwxrwxr-x  1 www-data www-data      859 May 29 19:17 index.php*
        -rwxrwxr-x  1 www-data www-data     1168 May 27 08:54 LICENSE*
        -rwxrwxr-x  1 www-data www-data     1764 May 27 08:54 .nginx.conf*
        -rwxrwxr-x  1 www-data www-data   273956 Jun 18 13:14 oyundede_sourceturk.sql*
        -rwxrwxr-x  1 www-data www-data     2665 May 27 08:54 README.md*
        -rwxrwxr-x  1 www-data www-data     1790 May 29 19:17 site.php*
        drwxrwxr-x 10 www-data www-data     4096 May 27 08:54 storage/
        -rwxrwxr-x  1 www-data www-data 55846542 Jun 18 13:15 test.zip*
        drwxrwxr-x 77 www-data www-data     4096 Jun 18 12:36 vendor/
        -rwxrwxr-x  1 www-data www-data     1489 May 27 08:54 web.config*
        • IanM replied to this.

          DursunCan You're using the old console command. See here:

          IanM Simplify console commands into one new command fof:sitemap:build

            IanM I used the new command. The sitemap.xml file was not created. You can see the command output in my previous answer.

              DursunCan go to your admin area set the mode to cache to disk or whatever it is named. You have the cache option selected which means the file is generated by php on the fly when you hit the URL.

              4 days later

              I'm trying to build a sitemap for a forum that has 400k discussions and 5 million posts and it throws this error:

              FoF Sitemap: running in multi-file mode
              PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 255
              
              Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 255

              My hosting support said I need to run the command like this: php -d memory_limit=-1 flarum fof:sitemap:multi and it seems to be working - it doesn't throw an error and it seems to be generating.

              If the sitemap is generated, do I then no longer need to run the php flarum fof:sitemap:multi command and cron (php flarum schedule:run) will automatically update it?

                rafaucau I assume your cron will also run out of memory unless you also prefix it with that php -d memory_limit=-1. From what I remember if you selected the multi mode in admin it should then auto create the required files yes.

                  luceos The site map has been generated, but when I try to go to its url, it loads endlessly and I get a timeout

                    luceos I got this response from my hosting support (translated):

                    The /public/sitemaps directory contains the sitemaps files, which have the .xml.gz format, although the /storage/sitemaps-processing directory shows the sitemap.xml file.

                    When it is placed in the /public directory it is loaded correctly. It appears that the location of the sitemap.xml file is incorrect and it is placed in a different directory than the main public one.

                    When the sitemap generates on cron, this manually moved "sitemap.xml" file disappears.