Closed
Description
I'm having troubles editing the terms and conditions on my production server. The development version is fine, I guess something went wrong during deployment/install/update.
The column "StoreViews" is missing in the list view of conditions on the production server. Additionally when adding a new condition I don't see the multi-select field to set a StoreView.
The database allthough has the same columns and entries.
It's the same issue as: #6062
I'm getting:
main.CRITICAL: Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/domain.com/httpdocs/vendor/magento/framework/Data/Form/Element/AbstractElement.php on line 286 [] []
I've checked the ouput and added this before the return
:
if(is_array($string)){
var_dump($string); die();
}
I actually got back an array(1) { [0]=> string(1) "0" }
There seem to be no problems with the frontend but I and/or my client can't edit the agreements in the backend.
Preconditions
- Magento 2.1.0 (both)
- PHP 5.6.24 (production) PHP 5.6.23 (development)
- MySQL Server 5.6.32 (production) MySQL Server 5.6.28 (development)
- No sample data installed
Steps to reproduce
- In the Backend go to "Stores"
- "Settings"
- "Terms and Conditions"
- View the existing conditions OR
- "Add New Condition" OR
- Edit an existing condition
Expected result
- When viewing the list you should see the column "StoreView"
- When adding a new condition you should see a multi-select field "StoreView"
- When editing an existing condition you should see all the details including "StoreView"
Actual result
- Missing column "StoreView" in list
- Missing multi-select field "StoreView"
- Won't load any details of the condition