Support » Plugin: Connector GravityForms and MailerLite » Plugin Incompatible with WooCommerce – MailerLite

  • Resolved martessi

    (@martessi)


    When this plugin is used in conjunction with Mailerlite’s native woocommerce connector it results in a PHP failure:

    2019/08/08 13:38:27 [error] 2066#2066: *353900 FastCGI sent in stderr: “PHP message: PHP Fatal error: Cannot redeclare Clue\StreamFilter\register() (previously declared in /www/XXX/public/wp-content/plugins/connector-gravityforms-mailerlite/vendor/clue/stream-filter/src/functions.php:140) in /www/XXX/public/wp-content/plugins/woo-mailerlite/vendor/clue/stream-filter/src/functions.php on line 127”

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • martessi

    (@martessi)

    Any updates on this? We would really like to use this plugin in conjunction with the Mailerlite Developed Woocommerce Plugin but the two plugins currently conflict.

    svenkersten

    (@svenkersten)

    I have the same issue 🙁

    jpfrancois

    (@jpfrancois)

    Hello,

    Yes, I am also having the same issue with same error message when enabling WordPress debug:

    Fatal error: Cannot redeclare Clue\StreamFilter\register() (previously declared in /home/xxxx/public_html/wp-content/plugins/connector-gravityforms-mailerlite/vendor/clue/stream-filter/src/functions.php:140) in /home/xxxx/public_html/wp-content/plugins/woo-mailerlite/vendor/clue/stream-filter/src/functions.php on line 127

    Many of us do use this plugin together with the WooCommerce MailerLite plugin, will be good to have a quick solution since our website is live!

    jpfrancois

    (@jpfrancois)

    Any quick solution for this please??

    martessi

    (@martessi)

    The issue has to do with namespacing in the plugin. If you do a find/replace and rename the “Clue\StreamFilter” to “Clue\StreamFilter2” it will resolve the issue. The plugin developer simply needs to fix their namespacing.

    svenkersten

    (@svenkersten)

    Thanks Martessi,

    This seems to have fixed the issue!

    Thanks again.

    Sven

    The problem is because the official plugin for WooCommerce and this connector are using the same class name. 😉

    The issue has to do with namespacing in the plugin. If you do a find/replace and rename the “Clue\StreamFilter” to “Clue\StreamFilter2” it will resolve the issue. The plugin developer simply needs to fix their namespacing.

    I am not that good into coding! Can anyone please explain me better which file to edit and what to edit please? I have been struggling with this issue for 3 weeks now and can’t find a quick solution!!!

    Simply use your favorite code editor and do a search and replace (Cmd + F on MacOS or Ctrl + F on Windows). Then, search for Clue\StreamFilter and replace with something like Clue\StreamFilter2. Save and replace all files on the server.

    Salut Aurélien,

    Thanks for helping, I understand and know how to search, but in which file I should search to replace Clue\StreamFilter with Clue\StreamFilter2? In this file plugins/connector-gravityforms-mailerlite/vendor/clue/stream-filter/src/functions.php ?

    In the entire folder of this plugin 😉

    Plugin Author David Perez

    (@davidperez)

    Hello! I’ve solved in version 1.2

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.