Support » Plugin: Hustle - Pop-Ups, Slide-ins and Email Opt-ins » CONFLICT API REST_SERIALISATION

  • Hello,

    Their is a conflict running your plugin “WPMU Hustle” and “Contact Form 7 Campaign Monitor Extension”.

    Fatal error: Cannot redeclare CS_REST_SERIALISATION_get_available() (previously declared in /home/redballp/public_html/wp-content/plugins/hustle/vendor/campaignmonitor/createsend-php/class/serialisation.php:8) in /home/redballp/public_html/wp-content/plugins/contact-form-7-campaign-monitor-extension/api/class/serialisation.php on line 14

    any help appreciated!

    thanks,
    kurt

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author jdailey

    (@jdailey)

    Sorry to hear you are running into a conflict with Hustle and CF7. Can you try deactivating Hustle and then reactivating it? Hustle runs a check to see what libraries have been loaded. If CF7 does not, the order they are activated will matter. Let me know if that helps. If you are still receiving this error please let us know.

    Hello Jdailey, thanks for that info and idea. I did try as you suggested, and activated Hustle LAST, but alas it did not fix it, I still get this error.

    Fatal error: Cannot redeclare CS_REST_SERIALISATION_get_available() (previously declared in /home/redballp/public_html/wp-content/plugins/hustle/vendor/campaignmonitor/createsend-php/class/serialisation.php:8) in /home/redballp/public_html/wp-content/plugins/contact-form-7-campaign-monitor-extension/api/class/serialisation.php on line 14

    for now I have turned Hustle back off, but if you want to see the other data loading this is the page I’m getting the error. https://redballproject.com/contact/

    thanks for your quick response!

    kurt

    Plugin Support Predrag Dubajic WPMU DEV Support

    (@wpmudev-support1)

    Hi Kurt,

    I did some tests with “Contact Form 7 Campaign Monitor Extension” plugin but I’m unable to replicate this issue.

    When I activate these on my installation they work fine and no error is shown.

    Is this issue happening to you as soon as you activate the plugin or you first configured some Campaign Monitor settings inside “Contact Form 7 Campaign Monitor Extension” or Hustle?

    Cheers,
    Predrag

    Thank you so much for attempting to recreate the issue, but I think you’ll need API data to make it happen otherwise there is no “previously declared” data.

    Did you install both ‘Contact 7’ & ‘Contact Form 7 Campaign Monitor Extension’ and put in any API data? As you can see from the error message above, it’s specifically that the API REST as been “previously declared”. so you would need api data – in my case the same 2 data elements- in both Hustle and ‘Contact Form 7 Campaign Monitor Extension’ which is an addon for Contact 7, to really recreate the issue. I don’t think just installing them will recreate the conditions.

    cheers,
    kurt

    Plugin Support Kasia – WPMU DEV Support

    (@wpmudev-support2)

    Hello kurt,

    I created test site with three items enabled and I inserted API of Campaign Monitor to Hustle and Contact 7. There was no error showing.
    Can you tell me where it shows when you configure both plugins with API? What screen I need to go to see it?

    Looking forward to your reply

    kind regards,
    Kasia

    Kasia,

    Thanks for checking this out. OK, The Error is generated on form submission.

    I just ran this again, reactivated Hustle Pro and even when I had NO ‘active’ campaign running it would generate the error if I attempted to submit the Contact 7 form.

    So to walk thru it.

    Contact 7 installed first
    “Contact Form 7 Campaign Monitor Extension” installed then API for Campaign Monitor added
    Hustle Pro installed then API for Campaign Monitor added
    when Contact Form 7 is submitted it generates this error on a blank page on a new url.

    https://redballproject.com/contact/#wpcf7-f5750-p5745-o1

    Fatal error: Cannot redeclare CS_REST_SERIALISATION_get_available() (previously declared in /home/redballp/public_html/wp-content/plugins/hustle/vendor/campaignmonitor/createsend-php/class/serialisation.php:8) in /home/redballp/public_html/wp-content/plugins/contact-form-7-campaign-monitor-extension/api/class/serialisation.php on line 14

    I deactivate Hustle Pro

    Now I haven’t emptied the database or anything so activating & deactivating the plugins may not really reset things as far as the earlier comment “Hustle runs a check to see what libraries have been loaded” , but I hope this answers your question.

    If you

    Best, kurt

    • This reply was modified 1 year, 3 months ago by  .
    Plugin Support Kasia – WPMU DEV Support

    (@wpmudev-support2)

    Hello kurt,

    Thank you so much for that instruction.

    With that I was able to replicate the issue and generate the same error in my debug log.
    So now I can report this as bug for our developers and they will fix that.

    kind regards,
    Kasia

    Kasia,

    THAT IS FANTASTIC! I really appreciate your help from WPMU DEV in working through this and having the patience. It would have been easy to just point the finger at another plugin. The Hustle Pro plugin is fantastic so I’m psyched this might get sorted out.

    If there is a chance you can update this thread when it’s done that would help others but understand it might get lost over time.

    Cheers,
    Kurt

    Plugin Support Kasia – WPMU DEV Support

    (@wpmudev-support2)

    Hello Kurt,

    If I will get hot patch from developers, then I will update thread with it. In case that is not possible then usually things like that are fixed with new version (in rare cases, when we report bugs just before new release, it takes a longer). So watch for the updates of the plugin 🙂

    kind regards,
    Kasia

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘CONFLICT API REST_SERIALISATION’ is closed to new replies.