Some conjobs seem 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!
marnel
Posts: 13
Joined: 12 Feb 2022, 21:21

Some conjobs seem not working

Post by marnel » 07 Jul 2022, 20:56

Hello!
Thanks for your help so far...
I'm building a great e-commerce app thank to Aimeos.
However, I'm dealing with some issues:

1- I set up the cronjob like explained in the doc and I actually get emails when customers make payments.
But they don't receive the email containing their password when they check 'Create a customer account for me'. I asked to receive an email when cronjob failed but I don't receive anything about this one.
Here is how I set the cron :

I executed on the CLI:

Code: Select all

crontab -e
Then, I added the line

Code: Select all

* * * * * php /absolute/path/to/artisan aimeos:jobs "order/export/csv order/email/delivery order/email/payment order/email/voucher order/service/delivery subscription/export/csv customer/email/account"
Any idea about this that can help me?

2- The cron "product/export/sitemap" also keep falling. As I asked to receive an email when this happen, I keep receiving every day at 00:00 am, an email saying

Code: Select all

Missing required parameter for [Route: aimeos_shop_detail] [URI: {locale}/shop/{d_name}/{d_pos?}/{d_prodid?}] [Missing parameter: locale].
How can I provide the parameter 'locale' to the cron, please?

Thanks for your help!

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

Re: Some conjobs seem not working

Post by aimeos » 08 Jul 2022, 08:57

You cronjob setup seems to be OK for sending account e-mails. Which Aimeos version do you use?

The product sitemap didn't support multiple locales and sites until recently. This feature is available in the latest 2022.07 release.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

marnel
Posts: 13
Joined: 12 Feb 2022, 21:21

Re: Some conjobs seem not working

Post by marnel » 08 Jul 2022, 16:32

I'm on the 2021.10 version

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

Re: Some conjobs seem not working

Post by aimeos » 10 Jul 2022, 07:04

Can you add a debug statement here to see if the job performs any action?
https://github.com/aimeos/ai-client-htm ... rd.php#L74
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

marnel
Posts: 13
Joined: 12 Feb 2022, 21:21

Re: Some conjobs seem not working

Post by marnel » 11 Jul 2022, 01:06

The execution of the following line https://github.com/aimeos/ai-client-htm ... d.php#L135
throws this error:

Code: Select all

Missing required parameter for [Route: aimeos_shop_account] [URI: {locale}/profile] [Missing parameter: locale].
It seems it's the same issue as with the "product/export/sitemap" cron :|

Am I the only one having this issue with a multi-language aimeos site?

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

Re: Some conjobs seem not working

Post by aimeos » 11 Jul 2022, 06:34

The sitemap job controller supports multi-locale environments only recently (2022.07+)

Did you overwrite the template for the customer account e-mails? In 2021.10, the locale parameter is added to the URL by default:
https://github.com/aimeos/ai-client-htm ... .mjml#L152
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

marnel
Posts: 13
Joined: 12 Feb 2022, 21:21

Re: Some conjobs seem not working

Post by marnel » 11 Jul 2022, 14:50

Actually no, I didn't overwrite any template for the customer account e-mails.
I did some debugging and the mail is sent correctly when I remove this only line: https://github.com/aimeos/ai-client-htm ... rd.php#L34
However, the login button doesn't redirect to the login page anymore.

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

Re: Some conjobs seem not working

Post by aimeos » 11 Jul 2022, 15:11

The locale parameter for login has been added in 2022.04 release.
If you want to use a multi-locale setup, maybe it's better to switch to the current 2022.07 release which supports multiple locales in cronjobs much better than before.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

marnel
Posts: 13
Joined: 12 Feb 2022, 21:21

Re: Some conjobs seem not working

Post by marnel » 11 Jul 2022, 15:22

Sure... I really appreciate your help.
Thank you, dear!!

Post Reply