Skip to content

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

@rensvw

Description

@rensvw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions