Error while trying to send customer account e-mail

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!
User avatar
AleksandarJovanovic
Posts: 26
Joined: 01 Jun 2022, 21:26

Error while trying to send customer account e-mail

Post by AleksandarJovanovic » 16 Feb 2024, 17:13

Aimeos version 2023.10
Php: 8.2

Linux

Dear i set cronjob to send email to customer but in error log i have this error. The path seems ok this the cronjob:
artisan aimeos:jobs "order/export/csv order/email/delivery order/email/payment order/email/voucher order/service/delivery subscription/export/csv customer/email/account"

Best regards



Error while trying to send customer account e-mail: Internationalization object not available for "en"
#0 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/ai-controller-jobs/src/Controller/Jobs/Mail.php(117): Aimeos\MShop\Context->i18n()
#1 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/macro/src/Macroable.php(113): Aimeos\Controller\Jobs\Customer\Email\Account\Standard->mailView()
#2 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/ai-controller-jobs/src/Controller/Jobs/Customer/Email/Account/Standard.php(291): Aimeos\Controller\Jobs\Base->call()
#3 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/ai-controller-jobs/src/Controller/Jobs/Customer/Email/Account/Standard.php(186): Aimeos\Controller\Jobs\Customer\Email\Account\Standard->view()
#4 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/aimeos-laravel/src/Command/JobsCommand.php(50): Aimeos\Controller\Jobs\Customer\Email\Account\Standard->run()
#5 [internal function]: Aimeos\Shop\Command\JobsCommand->Aimeos\Shop\Command\closure()
#6 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/aimeos-base/src/Process/Pcntl.php(181): call_user_func_array()
#7 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/aimeos-base/src/Process/Pcntl.php(116): Aimeos\Base\Process\Pcntl->exec()
#8 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/aimeos-base/src/Process/Decorator/Check.php(61): Aimeos\Base\Process\Pcntl->start()
#9 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/aimeos-laravel/src/Command/JobsCommand.php(59): Aimeos\Base\Process\Decorator\Check->start()
#10 [internal function]: Aimeos\Shop\Command\JobsCommand->Aimeos\Shop\Command\closure()
#11 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/aimeos-base/src/Process/Pcntl.php(181): call_user_func_array()
#12 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/aimeos-base/src/Process/Pcntl.php(116): Aimeos\Base\Process\Pcntl->exec()
#13 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/aimeos-base/src/Process/Decorator/Check.php(61): Aimeos\Base\Process\Pcntl->start()
#14 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/aimeos-laravel/src/Command/AbstractCommand.php(63): Aimeos\Base\Process\Decorator\Check->start()
#15 /home/pistilo/htdocs/pistilo.rs/vendor/aimeos/aimeos-laravel/src/Command/JobsCommand.php(65): Aimeos\Shop\Command\AbstractCommand->exec()
#16 /home/pistilo/htdocs/pistilo.rs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Aimeos\Shop\Command\JobsCommand->handle()
#17 /home/pistilo/htdocs/pistilo.rs/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\closure()
#18 /home/pistilo/htdocs/pistilo.rs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#19 /home/pistilo/htdocs/pistilo.rs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#20 /home/pistilo/htdocs/pistilo.rs/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#21 /home/pistilo/htdocs/pistilo.rs/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#22 /home/pistilo/htdocs/pistilo.rs/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute()
#23 /home/pistilo/htdocs/pistilo.rs/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\Component\Console\Command\Command->run()
#24 /home/pistilo/htdocs/pistilo.rs/vendor/symfony/console/Application.php(1096): Illuminate\Console\Command->run()
#25 /home/pistilo/htdocs/pistilo.rs/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#26 /home/pistilo/htdocs/pistilo.rs/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#27 /home/pistilo/htdocs/pistilo.rs/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\Component\Console\Application->run()
#28 /home/pistilo/htdocs/pistilo.rs/artisan(35): Illuminate\Foundation\Console\Kernel->handle()
#29 main

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

Re: Error while trying to send customer account e-mail

Post by aimeos » 16 Feb 2024, 17:49

This is usually the case if you have disabled a language that is still used in customer addresses due to this line:
https://github.com/aimeos/aimeos-larave ... nd.php#L80
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
AleksandarJovanovic
Posts: 26
Joined: 01 Jun 2022, 21:26

Re: Error while trying to send customer account e-mail

Post by AleksandarJovanovic » 16 Feb 2024, 19:37

I try to solve this problem, i try to comment out this function but not working.
I just want to use one Serbian language.
Can u help?
Tnx

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

Re: Error while trying to send customer account e-mail

Post by aimeos » 18 Feb 2024, 11:51

Change the language ID of all addresses in the user_address and mshop_order_address table to "sr"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply