All our plugins use Monolog 1.26.x, because we must maintain compatibility with WordPress, which can run on PHP 5.6. Monolog 2.x required PHP 7.2 or higher, therefore we won’t be able to use that version, as that can cause incompatibility issues with many other plugins that run on lower PHP versions.
Since neither the EU VAT Assistant, nor the other plugin you’re using, are using a custom namespace for 3rd party libraries, you can end up having two different versions of Monolog, loaded “piecemeal” by each entity and causing the error you see. Without custom namespacing, there isn’t a way to load two versions of the exact same library.
This leaves you with two options:
1. You can downgrade the Monolog library in the plugin that links to the warehousing system.
2. You can upgrade the Monolog library inside the Aelia Foundation Classes (AFC, for short). The library is stored in folder wp-content/plugins/woocommerce-eu-vat-assistant/src/embedded-framework/wc-aelia-foundation-classes-embedded/src/vendor/monolog/
. If you replace the Monolog version in file wp-content/plugins/woocommerce-eu-vat-assistant/src/composer.json
and use Composer to update it, then the AFC will use the new version.
Important notes
* Modifying the code of an existing plugin requires technical knowledge. If you don’t have sufficient experience, we would recommended to ask your developer to do that.
* Version 1.26.x and 2.x of Monolog should should be cross-compatible, in terms of usage. Due to that, the EU VAT Assistant should be able to use the new version right away. However, this kind of modification is not officially supported, therefore we can’t guarantee that this will be the case, we strongly recommend to run extensive tests, before applying the changes to a live site.
* If you upgrade the Monolog library and update the EU VAT Assistant, or the AFC in the future, your changes will be lost. Due to that, you will have to repeat the upgrade process again, immediately after updating the plugin.