FoF Sitemap
done, by this code
composer require fof/sitemap:"*"
Hi, can you tell me why I have only 2 themes displayed in /sitemap.xml I have more than 30 themes already and shows only two
white-hackers the entry file only links to more sitemap files (as denoted by the <sitemapindex>
definition). Actual pages are referenced in the downstream sitemaps.
If that doesn't help with your issue, can you clarify what you mean by "themes"? There's nothing named like that in Flarum or this extension.
- Edited
My sitemap.xml forum does not fetch in google console after i add it it says HTTP error what could be the reason?
help me please clarkwinkelmann
WiliamGarsia can you copy the full error message (which HTTP error?) and if you can share your forum URL?
clarkwinkelmann https://toolmo.com/
image https://ibb.co/zFP11B0
also i deleted those two topics that showup on /sitemap.xml and posted two news once but they didnt show up on sitemap.xml yet so no update happening strange
WiliamGarsia which mode are you using inside of Sitemap?
You appear to still be using version 1.x of Sitemap. You could try updating to version 2.x clarkwinkelmann to see if it makes any improvement.
@clarkwinkelmann run time mode iam using where can i download version two because it seems iam using it
is anything wrong in there
WiliamGarsia do you have a file named sitemap.xml
in your public
folder? If so you should delete it, as Flarum will handle that URL as a page and dynamically generate a sitemap. If a file exists on the server with that name it will conflict with the extension.
clarkwinkelmann Thank you very much fixed that was the issue now working perfect.
Hello, server timezone is UTC+3 but FoF Sitemap shows UTC+0 as time. How can I update this based on server timezone.
demirel where is it "shown"?
The <lastmod>
value is formatted as a W3C time and contains the timezone zero as part of its value, so there's no need to change it.
it's crazy. you see:
debug info:
file_put_contents(/www/wwwroot/code.bytecho.net/storage/cache/ee/2f/ee2f842aa7bb1f53edf3a2ed2c09a1807ffa6c90): Failed to open stream: Permission denied in <b>/www/wwwroot/code.bytecho.net/vendor/illuminate/filesystem/Filesystem.php</b> on line <b>187</b><br />
<br />
<b>Fatal error</b>: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /www/wwwroot/code.bytecho.net/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24
ver1.6.2
GitHenry your PHP process is unable to write to the storage/cache
folder. Make sure permissions and file ownership is correct. Use chown
command to fix ownership as necessary.
This can happen if you run the PHP process and command line with different users, or if you ran one of the commands using sudo
previously. You should make sure all processes run with the same shell user or that the file ownership allow every shell user that's used to create and delete files in the storage
folder.
my site is 1.6.3, and i just upgraded php to 8.2 today.
and I tried to updated fof/sitemap to new version from 1.0.3. But i encountered following errors
does anyone know how to fix it?
Thank you
an:/var/www/flarum$ sudo composer update fof/sitemap
[sudo] password for savip:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:799
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:804
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Problem.php:320
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laminas/laminas-httphandlerrunner 1.5.0 requires php ^7.3 || ~8.0.0 || ~8.1.0 -> your php version (8.2.0) does not satisfy that requirement.
- flarum/core v1.6.3 requires laminas/laminas-httphandlerrunner ^1.2.0 -> satisfiable by laminas/laminas-httphandlerrunner[1.5.0].
- flarum/core is locked to version v1.6.3 and an update of this package was not requested.