cancel
Showing results for 
Search instead for 
Did you mean: 

after disabling module magento crashes Warning: array_replace_recursive(): Argument #1

SOLVED

after disabling module magento crashes Warning: array_replace_recursive(): Argument #1

I've been having issues with the dotmailer module this is from exeption.log:

[2018-03-20 02:45:21] main.CRITICAL: Dotmailer connector API endpoint cannot be empty. {"exception":"[object] (Magento\\Framework\\Exception\\LocalizedException(code: 0): Dotmailer connector API endpoint cannot be empty. at /home/playsports/public_html/magento2/vendor/dotmailer/dotmailer-magento2-extension/Model/Apiconnector/Client.php:118)"} []

So I have thought that I can just disable it so it stops causing issues.

I decided to run:

 magento module:disable Dotdigitalgroup_Email

Now when I try to run 

magento setup:di:compile

I get:

[root@server magento2]# magento setup:di:compile
Compilation was started.
Interceptors generation... 4/7 [================>-----------]  57% 11 secs 188.0 MiB

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


setup:di:compile

I cannot recover my site.

 

I have checked apache 2 log 'error_log' in /var/log/apache2

and the last entries are: (not sure if relevant)

[Mon Mar 19 23:17:36.168019 2018] [cgi:error] [pid 3431] [client 192.162.100.183:29572] AH02811: script not found or unable to stat: /var/www/html/mt-config.cgi.bakup, referer: http://orient.4playsports.ca/
[Mon Mar 19 23:17:36.297248 2018] [cgi:error] [pid 3427] [client 192.162.100.183:30097] AH02811: script not found or unable to stat: /var/www/html/mt-config.cgi.bakup, referer: http://sustainability.4playsports.ca/
[Mon Mar 19 23:18:03.404655 2018] [cgi:error] [pid 3491] [client 192.162.100.183:34913] AH02811: script not found or unable to stat: /var/www/html/mt-config.cgi.bakup, referer: http://teach.4playsports.ca/
[Mon Mar 19 23:18:44.981592 2018] [cgi:error] [pid 3429] [client 192.162.100.183:42288] AH02811: script not found or unable to stat: /var/www/html/mt-config.cgi.bakup, referer: http://discount.4playsports.ca/
[Mon Mar 19 23:19:21.749102 2018] [cgi:error] [pid 3429] [client 192.162.100.183:49153] AH02811: script not found or unable to stat: /var/www/html/mt-config.cgi.bakup, referer: http://dtc.4playsports.ca/
[Mon Mar 19 23:20:33.965792 2018] [cgi:error] [pid 3428] [client 192.162.100.183:62879] AH02811: script not found or unable to stat: /var/www/html/mt-config.cgi.bakup, referer: http://smtp12.4playsports.ca/
[Mon Mar 19 23:21:23.222984 2018] [cgi:error] [pid 3620] [client 192.162.100.183:7186] AH02811: script not found or unable to stat: /var/www/html/mt-config.cgi.bakup, referer: http://cec.4playsports.ca/

Clearing magento cache does not do anything anymore:

[root@server magento2]# magento cache:flush


  [Symfony\Component\Console\Exception\CommandNotFoundException]
  There are no commands defined in the "cache" namespace.

I have not found anything to help me with this, hoping the community can try and give a hand.

 

I'm also willing to pay someone if they can figure out what it is via paypal transer, the equivalent of two pints at a local pub Smiley Happy I'm really stuck here...

 

magento 2.2.3

 

I have also tried

 magento setup:upgrade

Screenshot_6.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: after disabling module magento crashes Warning: array_replace_recursive(): Argument #1

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.

View solution in original post

1 REPLY 1

Re: after disabling module magento crashes Warning: array_replace_recursive(): Argument #1

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.