Magento2: Warning: array_replace_recursive(): Argument #1 is not an array in /home/pl aysports/public_html/magento2/vendor/magento/framework/App/DeploymentConfig /Writer.php on line 135

Created on 20 Mar 2018  路  3Comments  路  Source: magento/magento2

  1. PHP 7.1
  2. Magneto 2.2.3
  3. MYSQL 5.6.38

Steps to reproduce

  1. magento module:disable Dotdigitalgroup_Email
  2. magento setup:di:compile
  3. 3.

Expected result

  1. Able to compile and get the store running again

Actual result

[root@server magento2]# bin/magento setup:di:compile
Compilation was started.
Proxies code generation... 0/7 [>---------------------------]   0% < 1 sec 44.0                                                   Proxies code generation... 1/7 [====>-----------------------]  14% 1 sec 48.0 Mi                                                  Repositories code generation... 1/7 [====>-----------------------]  14% 1 sec 48                                                  Repositories code generation... 2/7 [========>-------------------]  28% 3 secs 1                                                  Service data attributes generation... 2/7 [========>-------------------]  28% 3                                                   Service data attributes generation... 3/7 [============>---------------]  42% 3                                                   Application code generator... 3/7 [============>---------------]  42% 3 secs 164                                                  Application code generator... 4/7 [================>-----------]  57% 7 secs 188                                                  Interceptors generation... 4/7 [================>-----------]  57% 7 secs 188.0                                                   MiB

  [Exception]
  Warning: array_replace_recursive(): Argument #1 is not an array in /home/pl
  aysports/public_html/magento2/vendor/magento/framework/App/DeploymentConfig
  /Writer.php on line 135


setup:di:compile

image

Format is not valid non-issue

Most helpful comment

OK for anyone else who ever runs into this issue the problem was that the env.php file got corrupted somehow when disabling the module (in /app/etc).
I did not have a backup, so I found one available online: https://github.com/emizentech/magento2/blob/master/app/etc/env.php.sample
I used that to build it again and once complete I copied it into the /app/etc directory.

I still think this is a core issue as somehow this file got overwritten, and it shouldn't have... but anyhow.

All 3 comments

@mikeguy ,please refer to the Community Forums or the Magento Stack Exchange site for advice or general discussion about this issue. The GitHub issue tracker is intended for Magento Core technical issues only. Dotmailer is not core codbase funcionally

@magento-engcom-team
Ok , so this error code when I perform the compile has to do with the dotmailer? You have confirmed ?
It crashes when i perform magento setup:di:compile so I am confused how this is not from core?

I feel that you have just quickly skimmed through the first line I wrote without looking at everything else. There are many other tickets like this that you guys follow up on. setup:di:compile is core...no?
For example Issue #12097

OK for anyone else who ever runs into this issue the problem was that the env.php file got corrupted somehow when disabling the module (in /app/etc).
I did not have a backup, so I found one available online: https://github.com/emizentech/magento2/blob/master/app/etc/env.php.sample
I used that to build it again and once complete I copied it into the /app/etc directory.

I still think this is a core issue as somehow this file got overwritten, and it shouldn't have... but anyhow.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jzalenski picture jzalenski  路  3Comments

andreaskoch picture andreaskoch  路  3Comments

kandrejevs picture kandrejevs  路  3Comments

punkstar picture punkstar  路  3Comments

kirashet666 picture kirashet666  路  3Comments