humanmade / comment-popularity

Allow visitors to vote on comments
MIT License
25 stars 15 forks source link

Conflict with WPML #123

Open marcochiesi opened 6 years ago

marcochiesi commented 6 years ago

When I activate Comment Popularity along with WPML (the popular multilingual plugin), I get the following error:

Catchable fatal error: Object of class Twig_Source could not be converted to string in /.../wp-content/plugins/comment-popularity/inc/lib/twig/twig/lib/Twig/Lexer.php on line 87

The same error occurs also on a plain vanilla WordPress install with only these 2 plugins activated. It seems there's a conflict on the different Twig version included by the plugins (see also this topic on WPML support forum).

Is there something that can be done to ensure compatibility with WPML? I.e. downgrading the version of Twig shipped with your plugin.