experius / Magento-2-Module-Experius-WysiwygDownloads

Available At Packagist
https://packagist.org/search/?q=experius
Open Software License 3.0
101 stars 26 forks source link

TypeError: implode(): Argument #2 ($array) must be of type ?array, string given #46

Open jonaschen623 opened 1 week ago

jonaschen623 commented 1 week ago

Preconditions and environment

Steps to reproduce

  1. Admin Stores | Attributes | Customer
  2. Click any attribute

Expected result Open customer attribute edit page without issue

Actual result Shows error: TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in *vendor/magento/module-customer-custom-attributes/Block/Adminhtml/Customer/Attribute/Edit/Tab/Main.php:209

In production mode, see the same error in var/log/exception.log

Additional information This issue is introduced by 1.2.3 patch. https://github.com/experius/Magento-2-Module-Experius-WysiwygDownloads/pull/33 Setup/Patch/Data/ProtectedExtensions.php

Once config value 'general/file/protected_extensions' saved in db, Magento $this->_scopeConfig->getValue function returns string, while as default, it loads from vendor/magento/module-store/etc/config.xml and returns array as expected.

jonaschen623 commented 1 week ago

Temp solution:

  1. Remove path value 'general/file/protected_extensions' from core_config_data
  2. Apply patch: experius-wysiwygdownload-svg-upload.patch