WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Salesforce Add-on
Warning: DEBUG will break this plugin (v2.2.4.4). Look out for... (4 posts)

  1. ChiefAlchemist
    Member
    Posted 1 year ago #

    v 2.2.4.4

    My dev setup was running in DEBUG mode. I ran into 3 things, one of which was "fatal".

    Note: I'm not sure if these fixes are 100% legit as much as I was trying to stop warnings and/or fix an error. In the end they helped but we'll have to wait for Zack to sign off on them.

    ** ~line 915 **
    WAS: selected(($list === $config["meta"]["contact_object_name"]));
    
    FIX: if ( isset($config["meta"]["contact_object_name"]) ){ selected(($list === $config["meta"]["contact_object_name"]));}
    ** ~line 956 **
    
    WAS: $selected = absint($form->id) == $config["form_id"] ? "selected='selected'" : "";
    
    FIX: if ( isset($config["form_id"]) ){
    $selected = absint($form->id) == $config["form_id"] ? "selected='selected'" : "";
    }
    ** ~Line 699 **
    
    WAS: $listtype = ($listtype !== 'objects') ? 'fields' : 'objects';
    
    FIX: //	$listtype = ($listtype !== 'objects') ? 'fields' : 'objects';

    I couldn't find a reference to $listype in the getFields method(). This *was* the fatal error but it wasn't really showing up because it was Ajax triggered (?).

    Lesson of the day: Run in debug before you ship your code :)

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

  2. styledev
    Member
    Posted 1 year ago #

    I can confirm that these fixes solved my problems with the plugin and debug mode turned on.

  3. ChiefAlchemist
    Member
    Posted 1 year ago #

    I think there's one other that shows as a warning. When I see it again I'll fix it and then post the patch here.

  4. ChiefAlchemist
    Member
    Posted 11 months ago #

    Have these been fixed?

    I scanned the release notes since 2.2.4.4 and didn't see any mention of it.

    I certainly would help. At least I for one believe so :)

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.