During upgrading to the latest eZ Platform 3.2.4 you will get below error when the cache clear command is executed:
1 2 |
Script symfony-cmd handling the auto-scripts event returned with error code 127 Script @auto-scripts was called via post-update-cmd |
The error output doesn’t explain what really happened during this process. By running the cache clear command using the verbose option we can see the right error message:
1 2 3 4 |
bin/console cache:clear -vvv In TranslationResourceFilesPass.php line 58: Warning: array_merge(): Expected parameter 2 to be an array, object given |
The cause of this issue is related to Bazinga Js Translation Bundle which is being used in: ezplatform-admin-ui v2.2.3
1 |
"willdurand/js-translation-bundle": "^3.0", |
The good news is that this issue is fixed in js-translation-bundle v4.x. You can find the PR here another good news ezplatform-admin-ui v2.3.x is using now the right Bazinga Js Translation Bundle version for eZ Platform 3.3.
The bad news of course you are not able to upgrade to eZ Platform 3.2.4 when using php7.4. Until a fix is delivered by Ibexa.
But there is one quick solution until the fix is available. I have just forked the ezplatform-admin-ui v2.2.3 bundle, upgrading to:
1 |
"willdurand/js-translation-bundle": "^4.0" |
and creating a new tag of the ezplatform-admin-ui v2.2.4
Composer should now know about the above fork:
1 2 |
"repositories": [ {"type": "vcs", "url": "https://github.com/arfaram/ezplatform-admin-ui"} |
When you run composer update, you should get the modified version of ezsystems/ezplatform-admin-ui instead of the one from packagist.