-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Editing checkout agreements throws exception #7171
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
Comments
Internal ticket MAGETWO-60143 has been created to track this issue. |
Same problem here on Magento 2.1.2. |
sorry, found the entry in the database. |
I was able to fix it by changing Line 302 in /vendor/magento/framework/Data/Form/Element/AbstractElement.php from don't know if this causes any other issues though :) |
I encountered the same issue on magento 2.1.0 and found that the issue lies withing https://github.com/magento/magento2/blob/develop/app/code/Magento/CheckoutAgreements/Block/Adminhtml/Agreement/Edit/Form.php#L139. Megento expects that the value of hidden field is string but existing aggreement stores property is always array containing all the store ids it it associated with and is overwrites the default store id on https://github.com/magento/magento2/blob/develop/app/code/Magento/CheckoutAgreements/Block/Adminhtml/Agreement/Edit/Form.php#L186. The fix is pretty easy - just change the line https://github.com/magento/magento2/blob/develop/app/code/Magento/CheckoutAgreements/Block/Adminhtml/Agreement/Edit/Form.php#L144 to |
@rbostan, the fix will be provided under MAGETWO-63840 (MAGETWO-60143 is closed as duplicate). |
@rbostan, thank you for your report. |
I just encountered this on 2.2.1 too. Can someone please give me a diff/patch to fix that? edit: switched to another system. so i can not give any more information. |
Do we have a fix yet? edit: single store is the cause of most of this, i had an issue with a module switching back to multi-store fixed it. My guess is their should be some logic switch from multi to single to fix this for everything. This issue is going to linger until that's fixed. |
It still happens in Magento 2.2.4. Guys, this ticket opened Oct 25, 2016, so it is 1.5 years old. |
Confirm that error still happening in Magento 2.2.4 |
And still exists in 2.2.5 |
following therool . I added this below this line in function
and it worked on Magento 2.2.4 with me. |
Fixes: magento#7171 magento#7171 Not sure if this is the best fix for this, need someone more senior with Magento to evaluate. But this fixes the issue I had with this.
Fix for htmlspecialchars() expects parameter 1 to be string, array given in /Data/Form/Element/AbstractElement.php Fixes magento#7171
Can confirm, editing the _escape function work around by pmsteil resolves this. Not sure if it the call to escape should have multiple argument types in same function?
Microsoft Office Word text quotes get lost in saving/editing however.
|
ACP2E-10: Incorrect Discount: Two Cart rules with and without coupon
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: