• Resolved AuralSolutions

    (@auralsolutions)


    Hello,
    We’re using your plugin since a lot of time already and today I wanted to enter to Shield Dashboard and Settings, but I got a blank page where the plugin dashboard should be.

    I went to the error_log file and discovered that there is an incompatibility with “WPML” language plugin, beause that plugin uses Twig as you.

    These are the error lines:
    —————–
    [17-Apr-2019 10:36:16 UTC] PHP Warning: Cannot declare class Twig_Environment, because the name is already in use in /wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Environment.php on line 1647
    [17-Apr-2019 10:36:16 UTC] PHP Warning: Cannot declare interface Twig_LoaderInterface, because the name is already in use in /wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Loader/LoaderInterface.php on line 61
    [17-Apr-2019 10:36:16 UTC] PHP Warning: Cannot declare interface Twig_ExistsLoaderInterface, because the name is already in use in /wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Loader/ExistsLoaderInterface.php on line 33
    [17-Apr-2019 10:36:16 UTC] PHP Warning: Cannot declare interface Twig_SourceContextLoaderInterface, because the name is already in use in /wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Loader/SourceContextLoaderInterface.php on line 38
    [17-Apr-2019 10:36:16 UTC] PHP Warning: Cannot declare class Twig_Loader_Filesystem, because the name is already in use in /wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 303
    [17-Apr-2019 10:36:16 UTC] PHP 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
    [17-Apr-2019 10:36:16 UTC] PHP Warning: Cannot declare class Twig_Cache_Null, because the name is already in use in /wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Cache/NullCache.php on line 42
    [17-Apr-2019 10:36:16 UTC] PHP Fatal error: Cannot redeclare twig_array_batch() (previously declared in /wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Extension/Core.php:1557) in /wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Extension/CoreExtension.php on line 1650
    —————–

    Please fix that as soon as possible, otherwise we cannot use your plugin on the sites we create for our clients and we use the PRO versions there. Also WPML is widely used, so that would limit your sales as well.

    This is not a personal support question, because it affects all the community using your plugin and WPML and we wanted just to inform you.
    If you need any other info, please ask.

    Thank you very much and have a great day!
    Best regards,
    Jean

Viewing 4 replies - 16 through 19 (of 19 total)
  • Many thanks for your amazing support, Paul! Added a review and will soon purchase the plugin.

    Paul

    (@pgoodchild)

    Thanks so much for the kind words, your testing and patience earlier, and of course the amazing review! It really helps us get the word out to folks who’ve never heard of us and Shield. Really appreciate it!

    [weird, lastpass logged me in under some old wp.org account. had no idea I had this account. It’s still me ?? ]

    Hi Paul,

    WPML came back and they say they’re using an older version of Twig to remain backward compatible with PHP 5.2 (yah, don’t ask).

    They might do the Twig update in version 4.3.0 (currently on 4.2.x), but nothing is set in stone, so this might easily take another year orso.

    Therefore I am very happy that you managed to find a workaround and updated Shield with it!

    Cheers,
    Pieter

    Plugin Author One Dollar Plugin

    (@onedollarplugin)

    Thanks for the update, Pieter. I figured that this would be their reason for not doing anything. Once I’d gotten a hold of the code and found out what was going wrong, I knew we’d not be looking at a quick solution, so that’s why I decided to work around them. Not the first plugin we’ve had to work around like this.

    I appreciate your persistence with them and for reporting back here with the update. Cheers!

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Shield Conflict with WPML – Twig’ is closed to new replies.