• Resolved minhazulOO7

    (@minhazul007)


    Getting this after every install/ update of a plugin.

    At first this shows,

    The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.

    In the email shows this,

    Error Details 
    ============= 
    An error of type E_ERROR was caused in line 56 of the file 
    /home/example.com/public_html/wp-content/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 
    /home/example.com/public_html/wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Environment.php 
    on line 650 and defined in 
    /home/example.com/public_html/wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Lexer.php:56 
    Stack trace: 
    #0 /home/example.com/public_html/wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Environment.php(650): 
    Twig\Lexer->__construct(Object(Twig_Environment)) 
    #1 /home/example.com/public_html/wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Environment.php(750): 
    Twig_Environment->tokenize(Object(Twig\Source)) 
    #2 /home/example.com/public_html/wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Environment.php(447): 
    Twig_Environment->compileSource(Object(Twig\Source))
    ...

    PLEASE FIX THIS ASAP! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter minhazulOO7

    (@minhazul007)

    Posted this before but maybe WordPress moderator deleted it ??

    • This reply was modified 5 years, 2 months ago by minhazulOO7.
    Plugin Author supsystic

    (@supsysticcom)

    Hello, @minhazul007
    Thank you for contacting us!
    This is a problem not only in our plugin but also in the plugin that you use.
    wp-simple-firewall
    In more detail, we and this plugin use different versions of the Twig library.
    Our plugin uses the library version – 1.33.2

    Therefore, at this moment there is only one solution – to exclude plugins that are incompatible with this version of the library.

    Thread Starter minhazulOO7

    (@minhazul007)

    @onedollarplugin replied this,

    You’ll need to contact the developer of the plugin as that is where the exception originates:
    data-tables-generator-by-supsystic

    `Called in
    /home/example.com/public_html/wp-content/plugins/data-tables-generator-by-supsystic/vendor/Twig/Environment.php
    on line 650

    Plugin Author supsystic

    (@supsysticcom)

    An error of type E_ERROR was caused in line 56 of the file
    /home/example.com/public_html/wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Lexer.php.

    As we described earlier, the problem is in the conflict of different versions libraries.

    • This reply was modified 5 years, 2 months ago by supsystic.
    Thread Starter minhazulOO7

    (@minhazul007)

    Hmm got it, so only resolve is if the other plugin uses same library version or do any workaround then it will be fixed?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Your Site is Experiencing a Technical Issue – Twig’ is closed to new replies.