Sitemap Cron Not Working

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
agatqapp
Posts: 13
Joined: 15 Jan 2022, 07:02

Sitemap Cron Not Working

Post by agatqapp » 15 Jan 2022, 07:12

Hello sir
I want to create sitemap, according to article, i set sitemap base url in shop.php

'controller' => [
'jobs' => [
'catalog' => [
'export' => [
'sitemap' => [
'baseurl' => 'https://www.domain.com/sitemap/',
'location' => 'https://www.domain.com/sitemap/aimeos-sitemap-index.xml',
]
]
]
],
],

and set cron job on server
artisan aimeos:jobs "product/export/sitemap"

but its not create sitemap on given path.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Sitemap Cron Not Working

Post by aimeos » 16 Jan 2022, 12:17

The location configuration must be an absolute file system path, no URL.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

agatqapp
Posts: 13
Joined: 15 Jan 2022, 07:02

Re: Sitemap Cron Not Working

Post by agatqapp » 17 Jan 2022, 15:48

Yes i also check with absolute file system path, but its not create sitemap
i follow this article https://aimeos.org/docs/latest/config/c ... og-export/
please explain full configuration for sitemap as demo.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Sitemap Cron Not Working

Post by aimeos » 19 Jan 2022, 12:38

It should be:

Code: Select all

'controller' => [
	'jobs' => [
		'catalog' => [
			'export' => [
				'sitemap' => [
					'baseurl' => 'https://www.domain.com/sitemap/',
					'location' => '/path/to/application/public/sitemap/',
				]
			]
		]
	]
],
Replace /path/to/application/ with your real path and make sure the directory /path/to/application/public/sitemap/ exists and is writable.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply