iContact for Gravity Forms
[resolved] Broken Sandbox Mode Support (2 posts)

  1. Rick Buczynski
    Posted 2 years ago #


    I recently configured your plugin for use with iContact's Sandbox mode. I couldn't figure it out until I examined the code in iContact.class.php, line 27:

    $this->debugMode = ($debugMode || current_user_can('administrator') && isset($_REUQEST['debug']));

    There's a typo in $_REQUEST. Moreover, I don't see how this line actually does anything.


    I tweaked your plugin for the time being, by replacing line 27 with:

    $this->debugMode = $settings['sandbox'];

    Then, I added a new checkbox field to the iContact settings form labeled "Use Sandbox," which is tied to that setting above.

    This way, your getApiUrl() method functions as it was designed.

    Thanks for your efforts on this plugin! It saved me a lot of time.


  2. Zack Katz
    Plugin Author

    Posted 2 years ago #

    This is fixed and improved in the next release, coming soon. Thanks for the idea and pointing out the issues.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • iContact for Gravity Forms
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic