Perhaps you don’t need to start a duplicate support thread on WPML - fellow Roots.io members are on it already:
When using Bedrock for managing plugins with composer, composer-patches (shout-out to @tombro for the suggestion) might be useful until WPML v4.7 is released.
In Bedrock dir:
- Run
composer require cweagans/composer-patches
- Add to
"config"
→"allow-plugins"
in in composer.json:
[...],
"cweagans/composer-patches": true
- Add to
"extra"
in composer.json:
[...],
"patches": {
"wpml/wpml-multilingual-cms": {
"Fix monolog": "patches/wpml-multilingual-cms/monolog-fix.patch"
}
}
- Write to
patches/wpml-multilingual-cms/monolog-fix.patch
file:
--- a/vendor/composer/autoload_static.php
+++ b/vendor/composer/autoload_static.php
@@ -62,10 +62,10 @@
array (
0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
),
- 'Psr\\Log\\' =>
- array (
- 0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
- ),
+ // 'Psr\\Log\\' =>
+ // array (
+ // 0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
+ // ),
'PhpMyAdmin\\SqlParser\\' =>
array (
0 => __DIR__ . '/..' . '/wpml/sql-parser/src',
- Manually delete
web/app/plugins/wpml-multilingual-cms
dir
For me, seemingly it only ran when a plugin is being initially installed (or maybe updated… ultimately the state needs to “change” for it to work) - thus I had to manually delete the existing plugin files.
- Run
composer update
- my output:
xxx@yyy:~/Projects/example-web/site$ composer update
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
- Installing wpml/wpml-multilingual-cms (4.6.9): Extracting archive
- Applying patches for wpml/wpml-multilingual-cms
patches/wpml-multilingual-cms/monolog-fix.patch (Fix monolog)
Generating optimized autoload files
> Roots\Acorn\ComposerScripts::postAutoloadDump
68 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found