Title: Twig error makes plugin incompatible with Shield Security plugin
Last modified: February 13, 2020

---

# Twig error makes plugin incompatible with Shield Security plugin

 *  Resolved [eSaner](https://wordpress.org/support/users/esaner/)
 * (@esaner)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/twig-error-makes-plugin-incompatible-with-shield-security-plugin/)
 * Slider by Supsystic 1.7.48 is not working with Shield Security 8.5.7 ([https://wordpress.org/plugins/wp-simple-firewall/](https://wordpress.org/plugins/wp-simple-firewall/)).
   With both plugins activated the following error occurs.
 * Error Details
    ============= An error of type E_ERROR was caused in line 56 of
   the file /srv/www/website.com/releases/20200213212008/web/app/plugins/wp-simple-
   firewall/src/lib/vendor/twig/twig/src/Lexer.php. Error message: Uncaught TypeError:
   Argument 1 passed to Twig\Lexer::__construct() must be an instance of Twig\Environment,
   instance of Twig_Environment given, called in /srv/www/website.com/releases/20200213212008/
   web/app/plugins/slider-by-supsystic/vendor/Twig/Environment.php on line 650 and
   defined in /srv/www/website.com/releases/20200213212008/web/app/plugins/wp-simple-
   firewall/src/lib/vendor/twig/twig/src/Lexer.php:56 Stack trace: #0 /srv/www/website.
   com/releases/20200213212008/web/app/plugins/slider-by-supsystic/vendor/Twig/Environment.
   php(650): Twig\Lexer->__construct(Object(Twig_Environment)) #1 /srv/www/website.
   com/releases/20200213212008/web/app/plugins/slider-by-supsystic/vendor/Twig/Environment.
   php(750): Twig_Environment->tokenize(Object(Twig\Source)) #2 /srv/www/website.
   com/releases/20200213212008/web/app/plugins/slider-by-supsystic/vendor/Twig/Environment.
   php(447): Twig_Environment->compileSource(Object(Twig\Source)) #3 /srv/www/website.
   com/releases/20200213212008/web/app/plugins/slider-by-supsystic/vend

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [eSaner](https://wordpress.org/support/users/esaner/)
 * (@esaner)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/twig-error-makes-plugin-incompatible-with-shield-security-plugin/#post-12434140)
 * Shield is using Twig 1.42.2, Slider by Supsystic is Twig 1.33.2.
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/twig-error-makes-plugin-incompatible-with-shield-security-plugin/#post-12437278)
 * Hello, [@esaner](https://wordpress.org/support/users/esaner/)
    Thank you for 
   contacting us regarding your issue.
 * Indeed, we know that our library is out of date.
    We will try update library 
   in next plugin version. Everything needs to be checked carefully before release.
 * Best regards,
    Ole
 *  [vfsdave](https://wordpress.org/support/users/vfsdave/)
 * (@vfsdave)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/twig-error-makes-plugin-incompatible-with-shield-security-plugin/#post-12966370)
 * Supsystic – has there been an update on this? I have a client that is experiencing
   the same issue.
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/twig-error-makes-plugin-incompatible-with-shield-security-plugin/#post-13028234)
 * We update TWIG library yesterday.
 * Best regards,
    Ole

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Twig error makes plugin incompatible with Shield Security plugin’ is 
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slider-by-supsystic_eef2f3.svg)
 * [Slider by Supsystic](https://wordpress.org/plugins/slider-by-supsystic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slider-by-supsystic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slider-by-supsystic/)
 * [Active Topics](https://wordpress.org/support/plugin/slider-by-supsystic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slider-by-supsystic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slider-by-supsystic/reviews/)

## Tags

 * [Shield Security](https://wordpress.org/support/topic-tag/shield-security/)

 * 4 replies
 * 3 participants
 * Last reply from: [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/twig-error-makes-plugin-incompatible-with-shield-security-plugin/#post-13028234)
 * Status: resolved