Support » Plugin: Hustle - Email Marketing, Lead Generation, Optins, Popups » Works well but incompatibility issues

  • jgarturo

    (@jgarturo)


    The popups work well but class CurlResponse in the Aweber integration causes a fatal error

    “Cannot declare class CurlResponse, because the name is already in use”

    When the Gravity Forms HelpScout plugin is in use. This integration / class should probably be namespaced.

    I fixed it by removing the Aweber integration but would be nice to have a permanent fix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thank you for the feedback! I will pass this along to the developers.

    After checking with one of the Hustle leads I was able to confirm Hustle does have the appropriate check in place for that class in the Aweber api.

    if (!class_exists('CurlResponse')) require_once('curl_response.php');

    It may be another plugin that is not running the check. We will keep an eye on this to see if there is a better solution for the future.

    Yeah, I did see that, which is good. The Gravity Forms HelpScout plugin obviously doesn’t have the same check in place. But it’s still generally a good practice to prefix your class names with some sort of identifier, like

    class Hustle_Aweber_CurlResponse {}

    Just because CurlResponse is probably a pretty common class name and a lot of other plugin devs might not think to use if(!class_exists()).

    But if it’s a composer package maybe you can’t edit it. I just needed the plugin for a couple of days for Black Friday, so I’ve since deleted it, but thought I’d point that out.

    Good work otherwise though, worked perfectly for my needs 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Works well but incompatibility issues’ is closed to new replies.