0

When I am running this command in the magento 2.4 : sudo bin/magento s:up && sudo bin/magento s:di:c && sudo bin/magento c:f

I got this error I tied many things but don't work.

Warning: array_replace_recursive(): Expected parameter 2 to be an array, null given in /home/rana/www/magento/vendor/magento/framework/Setup/Declaration/Schema/Diff/Diff.php on line 146

3
  • what's your php version? Mar 7, 2022 at 3:37
  • Finally I got the solution just rename the vendor directory and run sudo composer update.
    – Rana Zain
    May 4, 2022 at 19:59
  • PHP version is 7.4.
    – Rana Zain
    May 4, 2022 at 19:59

2 Answers 2

2

You get this error if you have syntax error in your db_schema_whitelist.json file. Just remove it and run:

bin/magento setup:upgrade
bin/magento setup:db-declaration:generate-whitelist
1
  • Okay, I just just rename the vendor directory and run sudo composer update. Thank you so much!
    – Rana Zain
    Jun 18, 2022 at 13:15
0

I just rename the vendor directory and run sudo composer update its work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.