Support » Plugin: Gravity Forms + Custom Post Types » [BUG] PHP Deprecated Notice

  • Resolved rehhoff

    (@rehhoff)


    Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /wp-content/plugins/gravity-forms-custom-post-types/gfcptaddon_1-5.php on line 44

    Error says it all, plugin should probably use isset(); instead.

    Kind Regards
    – Allan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Danny de Haan

    (@dannydehaan)

    I’m also experiencing this issue. Line 43 – 51 in gfcptaddon_1-5.php should be this:

    
    function get_field_taxonomy( $field ) {
        if ( isset( $field->populateTaxonomy ) ) {
            return $field->populateTaxonomy;
        } elseif ( isset( $field->populateTaxonomy ) ) {
            return $field->populateTaxonomy;
        }
    
        return false;
    }
    

    Line 32 – 38 should be this:

    
    function get_field_post_type( $field ) {
        if ( isset( $field->populatePostType ) ) {
            return $field->populatePostType;
        }
    
        return false;
    }
    

    You can test it while running PHP 7.4.x

    plantbasedrohit

    (@plantbasedrohit)

    Looking forward to a fix for this issue as well.

    Ulrich

    (@grapplerulrich)

    @spivurno Could you add PHP 7.4 support by fixing this issue?

    Plugin Author David

    (@spivurno)

    @grapplerulrich I will get it in the queue. Wife is due any day now so there might be a little delay. 😄

    Plugin Author David

    (@spivurno)

    Fixed in 3.1.16. 👌

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.