[X] My version of the plugin is v4.0.0-beta.0 or above.
PrestaShop version
8.1.6
PHP version
8.1
What went wrong?
We have upgraded our PS test instance to 8.1.6. After the upgrade and installation of beta-3, we encountered this error in our error.log:
[PDK]: Failed to flush entity manager
This error causes the MyParcel order list column to be empty.
During debugging, I discovered that the issue lies in an integrity check violation in the myparcelnl_order_data table. It appears that the getFromCart method (in the PsOrderService class) uses the updateOrderData method, which does not set the notes value. The notes field cannot be null.
Please see the log below.
I resolved this issue in our instance by modifying the following code::
Version check
PrestaShop version
8.1.6
PHP version
8.1
What went wrong?
We have upgraded our PS test instance to 8.1.6. After the upgrade and installation of beta-3, we encountered this error in our error.log:
[PDK]: Failed to flush entity manager
This error causes the MyParcel order list column to be empty.
During debugging, I discovered that the issue lies in an integrity check violation in the myparcelnl_order_data table. It appears that the getFromCart method (in the PsOrderService class) uses the updateOrderData method, which does not set the notes value. The notes field cannot be null.
Please see the log below.
I resolved this issue in our instance by modifying the following code::
to that:
Reproduction steps
I don't know how to reproduce this issue. We have just upgraded to 8.1.6 and that error happened.
Relevant log output
Additional context
No response