Skip to content

dev/js/minify_exclude returns array of results instead of string #28178

Closed
@usman786cs

Description

@usman786cs

Preconditions (*)

  1. You should have installed Magento 2.3.4 version.
  2. php version 7.2.

Steps to reproduce (*)

  1. Add minification settings in config.php file
  2. Run bin/magento app:config:import

Expected result (*)

  1. Processing configurations data from configuration file...
  2. Configuration processed

Actual result (*)

  1. Import failed: Notice: Array to string conversion in vendor/magento/framework/App/Config/Value.php on line 100

I'm working on Magento version 2.3.4.
It was required by client to add minification settings in config.php file.
After I added them in config.php file . Below are the settings that I added:
'system' => [
'stores' => [
'default' => [
'dev' => [
'css' => [
'minify_files' => '1',
'merge_css_files' => '1'
],
'js' => [
'merge_files' => '1',
'minify_files' => '1',
'enable_js_bundling' => '0'
],
'template' => [
'minify_html' => '1'
]
]
]
]
]

After I run bin/magento app:config:import I get below error:
**Import failed: Notice: Array to string conversion in vendor/magento/framework/App/Config/Value.php on line 100
**

I was assuming that it will process configuration but useless.
After digging into it I found that vendor/magento/framework/App/Config/Value.php::getOldValue() returns array instead of string value against path dev/js/minify_exclude
Below is screenshot that shows result array contains array of three values instead of one string.
Can someone tell me how can i get rid of this issue.
image

Thanks!

Metadata

Metadata

Assignees

Labels

Issue: Format is validGate 1 Passed. Automatic verification of issue format passedReported on 2.3.4Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions