Title: Plugin Conflict with Twig registration
Last modified: February 12, 2020

---

# Plugin Conflict with Twig registration

 *  Resolved [Nick Murray](https://wordpress.org/support/users/nickfmc/)
 * (@nickfmc)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/plugin-conflict-with-twig-registration/)
 * It appears that your plugin may not be checking if the twig library is loaded
   by another plugin before loading it. throwing fatal errors when I have your plugin
   activated
 * Warning: Cannot declare interface Twig_CacheInterface, because the name is already
   in use in /wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/
   Cache/CacheInterface.php on line 60
 * Fatal error: Uncaught TypeError: Argument 1 passed to Twig\Lexer::__construct()
   must be an instance of Twig\Environment, instance of Twig_Environment given, 
   called in /wp-content/plugins/gallery-by-supsystic/vendor/Twig/Environment.php
   on line 650 and defined in /wp-content/plugins/wp-simple-firewall/src/lib/vendor/
   twig/twig/src/Lexer.php:56 Stack trace: #0 /wp-content/plugins/gallery-by-supsystic/
   vendor/Twig/Environment.php(650): Twig\Lexer->__construct(Object(Twig_Environment))#
   1 /wp-content/plugins/gallery-by-supsystic/vendor/Twig/Environment.php(750): 
   Twig_Environment->tokenize(Object(Twig\Source)) #2 /wp-content/plugins/gallery-
   by-supsystic/vendor/Twig/Environment.php(447): Twig_Environment->compileSource(
   Object(Twig\Source)) #3 /wp-content/plugins/gallery-by-supsystic/vendor/Twig/
   Environment.php(362): Twig_Environment->loadTemplate(‘snipp in /wp-content/plugins/
   wp-simple-firewall/src/lib/vendor/twig/twig/src/Lexer.php on line 56
 * There has been a critical error on your website. Please check your site admin
   email inbox for instructions.

Viewing 1 replies (of 1 total)

 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-conflict-with-twig-registration/#post-12464465)
 * Hello, [@nickfmc](https://wordpress.org/support/users/nickfmc/)
    Thank you for
   contacting us regarding your question. In next plugin update , we will update
   twig library and error will be fixed. We will definitely inform you when the 
   fix is ​​done.
 * Best regards, Ole

Viewing 1 replies (of 1 total)

The topic ‘Plugin Conflict with Twig registration’ is closed to new replies.

 * ![](https://ps.w.org/gallery-by-supsystic/assets/icon-256x256.png?rev=1684313)
 * [Photo Gallery - Responsive Image Galleries by Supsystic](https://wordpress.org/plugins/gallery-by-supsystic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gallery-by-supsystic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-by-supsystic/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-by-supsystic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-by-supsystic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-by-supsystic/reviews/)

## Tags

 * [conflict](https://wordpress.org/support/topic-tag/conflict/)

 * 1 reply
 * 2 participants
 * Last reply from: [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-conflict-with-twig-registration/#post-12464465)
 * Status: resolved