[deleted]
[deleted] Thank you sir
[deleted] Thank you sir
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.
How do I configure my sitemap URL for Google and Bing?
fof:sitemap:build
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
composer require fof/sitemap:"*"
php flarum cache:clear
IanM someone removed install cmd from the first post
could not find in extiverse too https://extiverse.com/extension/fof/sitemap
composer require fof/sitemap:"*"
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?
Hari https://docs.flarum.org/install.html#folder-ownership
Do NOT use 777 permissions
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*
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?
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.
No one can help? :<