-
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
app:config:import stop when retrieve a warning or notice on php code #31428
Comments
Hi @rubenpurple. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 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, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @rubenpurple thank you for your report, I'm not able to reproduce issue by steps you described on clean 2.4-develop
Result: Are my steps correct or something was missed? |
I have this same issue whilst doing a site upgrade from 2.3.5 to 2.4 |
Hello, i was talking with my partner, and the magento was 2.3.4 upgrade to 2.4. Its possible that the error only happens when upgrade? but not with clean new installation of 2.4 version? |
This is actually a very big bug. AFAIK it affects the following areas:
The issue is that the same value being exported by So far, the workaround we are using is
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions! |
Leaving a comment to prevent the stalebot from closing this automatically |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hi @rubenpurple, We have checked this issue in Magento CLI 2.4.2-p1 with steps mentioned in the portal (https://devdocs.magento.com/guides/v2.4/config-guide/deployment/pipeline/technical-details.html). But the issue is not reproducible. We are going through with below steps:
|
Same here. Gitlab-CI failed. We always to a fresh installation to test the setup process. |
@sidolov Not very transparent. How can we see the internals here? Maybe you can share more information. |
@cmuench internal ticket in this case just a copy of GitHub issue. The internal team will pick the ticket according to the priority and all further updates will be reflected here. |
ok. Thanks for clarification. I hope there will be a quality patch for that issue, soon. |
I fixed the issue with adding of the lines to app/etc/config.php 'frequency' => 'D', in the 'catalog/productalert_cron' section |
PR Merged |
@engcom-Hotel please can you add a reference to the pull request that fixes this. I'm struggling to find what pull request you're referring to. |
I'm going to guess it's solved under AC-988::Fixing app:config:import issue after config dump But @fredden is correct, next time @engcom-Hotel please provide more info when you close an issue. It's often very helpful for people so they can make patches out of the PR's if they want a quick fix on their shop. |
@hostep Sure I will take care of the same in the future. |
@sidolov Any chance to publish an official quality patch for that issue? |
Hi @cmuench! You may create a pull request to 2.3.7-release or 2.4.3-release branch to deliver the patch, or use https://github.com/magento/quality-patches/ repo directly |
I experienced that the merge that @hostep referenced in #31428 (comment) solves only part of the issue. After applying the modifications to the Alert.php and Sitemap.php I get the following error:
The changes applied to the Alert.php and Sitemap.php need to be applied to the Cron.php as well.
Has anyone else experienced this? |
@densen45 works, thanks! In addition I got the following error:
The fix is the same:
|
@Aquive: can you notify Amasty about this and reference this issue in your ticket, so they know what this is about and they can fix it as well on their end, thanks! 🙂 @densen45: could you create a new issue for this here on github? It appears Adobe forgot to fix it for currency rates update cronjob. Thanks! 🙂 |
I just ran into this issue with Here's a patch for anyone else who needs it:
|
Hello, im trying to configure the pipeline system of Magento 2.4.
In the production system, the last step, i do the next commands:
/usr/local/bin/php bin/magento app:config:import
/usr/local/bin/php bin/magento setup:upgrade --keep-generated
As the documentation says. The problem, is when import the config.php file, i get the next error:
looking at the code:
The $time variable, get null from function: $this->getData('groups/productalert_cron/fields/time/value');
I changed the code so that if it is null, I left a zero as the value.
Then i try again, and now get the next error:
![image](https://user-images.githubusercontent.com/60217290/103002396-1bf8c600-452f-11eb-8d59-8e601ba2872f.png)
When i saw that error is a warning, i try to disable error_reporting in app/bootstrap.php:
//error_reporting(E_ALL);
and now, the import works fine.
![image](https://user-images.githubusercontent.com/60217290/103002385-14d1b800-452f-11eb-8230-32200825f082.png)
I don't understand why I get these errors, caused by the values returned by the functions, which are null.
I checked my database and config.php file, if I have the requested value:
![image](https://user-images.githubusercontent.com/60217290/103002809-e4d6e480-452f-11eb-922b-8af2b540ec18.png)
![image](https://user-images.githubusercontent.com/60217290/103002833-ec968900-452f-11eb-875c-12454bda3009.png)
now i have the doubt if avoiding error_reporting works fine the import function.
Reggards.
Additional Information
The text was updated successfully, but these errors were encountered: