WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms iContact Add-on
[resolved] Broken Sandbox Mode Support (2 posts)

  1. Rick Buczynski
    Member
    Posted 1 year ago #

    Hi,

    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.

    Proposal:

    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.

    http://wordpress.org/extend/plugins/gravity-forms-icontact/

  2. Zack Katz
    Member
    Plugin Author

    Posted 1 year 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

About this Topic