magento-docker icon indicating copy to clipboard operation
magento-docker copied to clipboard

Deprecated Functionality: implode(): Passing glue string after array is deprecated.

Open rensvw opened this issue 5 years ago • 0 comments

Describe the bug I get the following error message while trying to force deploy the static content:

Deprecated Functionality: implode(): Passing glue string after ar
ray is deprecated. Swap the parameters in /var/www/public/vendor/
scandipwa/locale/src/Package/PackagePool.php on line 161

To Reproduce Steps to reproduce the behavior:

  1. Clean install of scandipwa-2.4.0
  2. Followed the install tutorial on linux
  3. " inapp bash" to get in the magento container.
  4. run the command: magento setup:static-content:deploy -f
  5. After this the error happened

Expected behavior Deploy of the static content.

FIX

Changing line 161 in the PackagePool.php file to:

if (!preg_match('/(' . implode('|', $quotedKeysToFind) . ')/i', $key)) {

fixes the problem.

rensvw avatar Oct 27 '20 22:10 rensvw