• PHP Version 5.4.45
    MySQL Version 5.5.42
    WordPress Version 4.4
    Gravity Forms Version 1.9.15
    Website: seattlevaad.org

    After updating my WordPress to the latest version, I have the following error on my site. This is the error:

    Warning: Creating default object from empty value in /home2/seavaad/public_html/wp-content/plugins/gravity-forms-constant-contact/constantcontact.php on line 1146

    This is the bit of code (starting with line 1145, the second line being 1146)

    public function updateSettings($object = false) {
    $settings = get_option(“gf_constantcontact_settings”);
    $object->login = trim($settings[‘username’]);
    $object->password = trim($settings[‘password’]);
    $object->apiPath = str_replace(‘USERNAME’, ”, (string)$object->apiPath).rawurlencode(trim($settings[‘username’]));

    $actionBy = apply_filters(‘gravity_forms_constant_contact_action_by’, ‘ACTION_BY_CONTACT’);
    if($actionBy === ‘ACTION_BY_CONTACT’ || $actionBy === ‘ACTION_BY_CUSTOMER’) {
    $this->actionBy = $actionBy;
    } else {
    $this->actionBy = ‘ACTION_BY_CUSTOMER’;
    }

    I have no idea how to fix this and Google isn’t helping me. Can anyone please help?

    https://ww.wp.xz.cn/plugins/gravity-forms-constant-contact/

Viewing 1 replies (of 1 total)
  • Hello!

    I have attempted to replicate this on your version of WordPress and I did not see the error pop up anywhere. Where did it show up for you? Was it everywhere? On a certain page?

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Help! Error Creating default object from empty value After Updating’ is closed to new replies.