hello, my host does not allow cronjobs but it does allow to run a PHP command with external URL periodically: example allows to run xxx.com/mylink.php

Is there any way to create a file that allows it to be run and do the same work that cronjo would do for the sitemap?

    a month later

    Hey All -

    When I try using php flarum fof:sitemap:build to force a build, I get Composer detected issues in your platform:
    Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.33.

    My server says I am using PHP 8.3, and Flarum also says 8.3. Any ideas what could be causing this?

      treyb if your server is managed, look for the "command line PHP version" configuration (or similar name) in your admin panel. It's set to a different value from the "webserver PHP version".

      On Some servers you might be able to also "select" a PHP version by replacing php flarum [...] with php8.3 flarum [...] or php83 flarum [...]

        clarkwinkelmann Unfortunately I use the worst shared hosting (Hostgator) they are telling me that the server is 8.3 but they are "unable" to update my CLI for me.

        Edit: I don't think the support person knew what CLI means. They are researching now...

        Final Edit: Just switched hosting to inmotion, and it works perfectly.

        11 days later

        Hello! My sitemap seems to be working but Google is throwing a error saying SITEMAP is HTML?

        I'm not sure what the resolution could be but I am using a shared web hosting.

          3 months later

          sdgsdgsd it does work, I guess you are using it incorrectly. How does it not work? What issues do you see? What settings do you use?

          drisspy what do you see when you open the sitemap.xml or can you share the link to your community?

            luceos it does work, I guess you are using it incorrectly. How does it not work? What issues do you see? What settings do you use?

            It just simply doesn't create a sitemap, i had to create one. I'm sure i'm using it correctly, maybe it just doesn't work for me.

              luceos what mode do you have enabled in the admin settings?

              I tried both modes but it's the same

                sdgsdgsd and.. what is the issue you run into? Can you confirm your sitemap.xml file doesn't exist? What is the url of your community, so I can check for myself?

                  aliyeW you cannot install extensions by unzipping them into vendor. Use the extension manager in the admin or use composer to install fof/sitemap. Then the command becomes available.