Generating site map job fails, missing site param?

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!
DmS
Posts: 56
Joined: 09 Aug 2021, 08:59

Generating site map job fails, missing site param?

Post by DmS » 22 Jun 2022, 11:00

Hi. the cronjobs to generate sitemaps fails for us.
The conf is correct but I'm getting "Missing required parameter for [Route: aimeos_shop_detail] [URI: {site}/shop/{d_name}/{d_pos?}/{d_prodid?}] [Missing parameter: site].#0 "



Full backtrace on error:

Code: Select all

php artisan aimeos:jobs "product/export/sitemap" "saluhall"
Missing required parameter for [Route: aimeos_shop_detail] [URI: {site}/shop/{d_name}/{d_pos?}/{d_prodid?}] [Missing parameter: site].#0 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Routing/RouteUrlGenerator.php(91): Illuminate\Routing\Exceptions\UrlGenerationException::forMissingParameters(Object(Illuminate\Routing\Route), Array)
#1 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php(466): Illuminate\Routing\RouteUrlGenerator->to(Object(Illuminate\Routing\Route), Array, true)
#2 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php(441): Illuminate\Routing\UrlGenerator->toRoute(Object(Illuminate\Routing\Route), Array, true)
#3 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/ai-laravel/lib/custom/src/MW/View/Helper/Url/Laravel5.php(62): Illuminate\Routing\UrlGenerator->route('aimeos_shop_det...', Array, true)
#4 [internal function]: Aimeos\MW\View\Helper\Url\Laravel5->transform('aimeos_shop_det...', 'catalog', 'detail', Array, Array, Array)
#5 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/View/Standard.php(88): call_user_func_array(Array, Array)
#6 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/ai-controller-jobs/controller/jobs/templates/product/export/sitemap-items-body-standard.php(38): Aimeos\MW\View\Standard->__call('url', Array)
#7 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/View/Standard.php(282): include('/Users/dansegol...')
#8 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/View/Standard.php(264): Aimeos\MW\View\Standard->includeFile('/Users/dansegol...')
#9 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/ai-controller-jobs/controller/jobs/src/Controller/Jobs/Product/Export/Sitemap/Standard.php(133): Aimeos\MW\View\Standard->render('product/export/...')
#10 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/ai-controller-jobs/controller/jobs/src/Controller/Jobs/Product/Export/Sitemap/Standard.php(424): Aimeos\Controller\Jobs\Product\Export\Sitemap\Standard->addItems(Object(Aimeos\MW\Container\Content\Gzip), Object(Aimeos\Map))
#11 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/ai-controller-jobs/controller/jobs/src/Controller/Jobs/Product/Export/Sitemap/Standard.php(55): Aimeos\Controller\Jobs\Product\Export\Sitemap\Standard->export(Object(Aimeos\MW\Container\Directory))
#12 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/JobsCommand.php(54): Aimeos\Controller\Jobs\Product\Export\Sitemap\Standard->run()
#13 [internal function]: Aimeos\Shop\Command\JobsCommand->Aimeos\Shop\Command\{closure}(Object(Aimeos\MShop\Context\Item\Standard), Object(Aimeos\Bootstrap), 'product/export/...')
#14 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Pcntl.php(181): call_user_func_array(Object(Closure), Array)
#15 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Pcntl.php(116): Aimeos\MW\Process\Pcntl->exec(Object(Closure), Array)
#16 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Decorator/Check.php(61): Aimeos\MW\Process\Pcntl->start(Object(Closure), Array, false)
#17 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/JobsCommand.php(63): Aimeos\MW\Process\Decorator\Check->start(Object(Closure), Array, false)
#18 [internal function]: Aimeos\Shop\Command\JobsCommand->Aimeos\Shop\Command\{closure}(Object(Aimeos\MShop\Context\Item\Standard), Object(Aimeos\Bootstrap))
#19 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Pcntl.php(181): call_user_func_array(Object(Closure), Array)
#20 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Pcntl.php(116): Aimeos\MW\Process\Pcntl->exec(Object(Closure), Array)
#21 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Decorator/Check.php(61): Aimeos\MW\Process\Pcntl->start(Object(Closure), Array, false)
#22 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/AbstractCommand.php(67): Aimeos\MW\Process\Decorator\Check->start(Object(Closure), Array, false)
#23 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/JobsCommand.php(69): Aimeos\Shop\Command\AbstractCommand->exec(Object(Aimeos\MShop\Context\Item\Standard), Object(Closure), 'saluhall')
#24 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Aimeos\Shop\Command\JobsCommand->handle()
#25 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#26 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#27 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#28 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Container/Container.php(653): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#29 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\Container\Container->call(Array)
#30 /Users/dansegolson/Documents/code/dinsaluhall/vendor/symfony/console/Command/Command.php(298): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#31 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#32 /Users/dansegolson/Documents/code/dinsaluhall/vendor/symfony/console/Application.php(1015): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#33 /Users/dansegolson/Documents/code/dinsaluhall/vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand(Object(Aimeos\Shop\Command\JobsCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#34 /Users/dansegolson/Documents/code/dinsaluhall/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#35 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Console/Application.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#36 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37 /Users/dansegolson/Documents/code/dinsaluhall/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#38 {main}Process (PID "93957") failed with status "256"%   
_____________
Laravel 8 with Aimeos 2021.10 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25

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

Re: Generating site map job fails, missing site param?

Post by aimeos » 24 Jun 2022, 15:57

The job controller for generating sitemaps did only work if no additional parameter like "site", "locale" and "currency" are required. Now, this has been rewritten and the new code will be part of 2022.07. The relevant changes are:
https://github.com/aimeos/ai-controller ... bea1ed45ad
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

DmS
Posts: 56
Joined: 09 Aug 2021, 08:59

Re: Generating site map job fails, missing site param?

Post by DmS » 27 Jun 2022, 07:23

Ah, that explains it.
Thank you
_____________
Laravel 8 with Aimeos 2021.10 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25

Post Reply