Cannot redeclare twig_cycle()
-
Hi,
The error just started now, getting this:
Une erreur de type E_COMPILE_ERROR a été causée dans la ligne 331 du fichier /var/www/xxxxxxxxxxx.com/wp-content/plugins/matomo/app/vendor/twig/twig/src/Extension/CoreExtension.php. Message d’erreur : Cannot redeclare twig_cycle() (previously declared in /var/www/xxxxxxxxxxx.com/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Extension/Core.php:288)
Looks like it’s conflicting with twig’s usage in WPML, which indeed is an older version, however I can’t rush upgrading WPML because it’s always a hit or miss when you update WPML. But was hoping to use Matomo in the meantime.
I’m wondering, is it a common thing that plugin authors use the global namespace for their dependencies? Why not isolate the namespaces so that these types of issues don’t happen?
I’m a big fan of matomo, love the plugin.
Thanks,
Wadih
- The topic ‘Cannot redeclare twig_cycle()’ is closed to new replies.