-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Amqp as a dependency for ProductAlert #35790
Comments
Hi @Bartiema. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Thanks for reporting the issue. As you mentioned that "amqp module is not installed " so, could you please confirm if you uninstalled or disabled the module "module-amqp" in config.php file then run the cron manually from terminal so you got that exception. Please provide the exact steps to reproduce the same and share the screenshots so we can try to reproduce the same at our end. Thanks, |
Hi @engcom-Echo. Thank you for working on this issue.
|
Hello @Bartiema, We have noticed that this issue has not been updated for a period of 14 Days. Thanks |
@engcom-Echo , I can verify the issue still persists on
|
I can confirm the same situation. Never needed the amqp module in the past. But it appears with v2.4.5-p1 (or maybe one of the versions prior) it is required??? Can't find any documenation to support that, but appears to be the case if you want to send product alerts... |
I can confirm the same situation too. |
@engcom-Echo This issue is closed, but reproducible on 2.4.6-p2 Other modules do not need to have |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @norgeindian, Thanks for the steps to reproduce the issue. We have followed the same but the issue is not reproducible for us.
The command ran successfully, it might be possible the issue is resolved in the latest 2.4-develop branch. I request you to please try to reproduce the issue in the latest development branch. Thanks |
Note that the cron for Furthermore, the Exception is thrown in
Since I can't tell why it works with activated |
I just can restate the steps described before: However when executing cron:run you have to go sure the job is actually scheduled, since this is done only once a day. |
Hello @HenKun, Thanks for the reply! We have tried to reproduce this issue with the mentioned steps here #35790 (comment) in the 2.4-develop branch, but the issue is still not reproducible for us. We have made changes in the setting of product alert cron from the admin panel as well. Please refer to the below screenshot for reference: We request you to please try to reproduce the issue in the 2.4-develop branch. Thanks |
@engcom-Hotel Was the product alert mail actually sent? So did you receive the alert email? We have to go sure the cron job is actually executed when verifying the issue. Otherwise the issue cannot occur. Is it possible to run a specific cronjob via CLI without it being scheduled and without using cron:run? This way we could explicitly trigger the process without depending on any cron schedule. I cannot imagine how this can work, since the publisher is indeed just not declared, so the issue must occur. |
@HenKun to manually run this cron job from the CLI you could do this:
This will enter a new entry into the |
Hello @PromInc, Thanks for the missing step to reproduce the issue. Now we are able to reproduce the issue. But we are getting the mentioned error in Hence confirming the issue. Thanks |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-9637 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
@magento I am working on this |
@magento I am working on this |
Summary (*)
If the amqp module is not installed in your magento 2.4.4 instance and you want to use the ProductAlert module functionality you will never be able to send alert emails because when the cronjob catalog_product_alert is run there will be a critical error with the message: "Publisher 'product_alert' is not declared"
Steps to reproduce
Product Alerts
section.CRITICAL: Publisher 'product_alert' is not declared. [] []
Magento_Amqp
and do the same againExamples (*)
.CRITICAL: Publisher 'product_alert' is not declared. [] []
is the error you can find in debug.log after running bin/magento cron:run when the cronjob catalog_product_alert is trying to send an alert.
Proposed solution
Add the amqp module as a dependency for the ProductAlert module, both in composer and in the module.xml
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: