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
Error during manual order state change #22322
Comments
Hello @Flower7C3 I didn't manage to reproduce your issue with PS1.7.7.0, see the attached screen record below: https://drive.google.com/file/d/1Uf2yTmgH3G5R1s69W6CVLkUIQQYe29xU/view Please check and feedback. Thanks! |
@hibatallahAouadni do You have same PHP version? |
No my PHP version is 7.2 😅 |
Hello @Flower7C3 Is this the error that you encountred? Thanks for your feedback! |
No, I have got other message:
|
Hello @Flower7C3 Did you change some Core files? Cause it seems your issue is not related neither to PS version nor PHP version. Thanks! |
I have changed classes/order/Order.php file as described in issue description. |
Hello @Flower7C3 You shouldn't change any of Core files! If you want to change some behavior of Core, you just need to override the Controller (see link). So, I close the issue cause we use GitHub issues only to discuss about bugs and new features in the PrestaShop project. If you have questions about using PrestaShop or third-party modules, or if you need help with your shop, please consider one of our support plans. Alternatively, you can also ask for help in the community forums or in the public Slack channel. Thanks! |
Hi @Flower7C3, |
Hi @rbeau, I have fixed this problem using |
You are right @Flower7C3 , I understand now, if I still turn Prestashop on mode debug solution doesn't work. Now debug mode is off and it work prefectely. I thank you so much ! |
Describe the bug
When I manually change order state an error occurs:
[Symfony\Component\Debug\Exception\ContextErrorException kod 0]: Notice: Trying to get property 'id' of non-object
Expected behavior
Method \OrderCore::getCurrentOrderState:
PrestaShop/classes/order/Order.php
Lines 2332 to 2339 in cc0fd12
Steps to Reproduce
Steps to reproduce the behavior:
Additional information
The text was updated successfully, but these errors were encountered: