100s of php warnings - Can we fix?

Hey there, we are seeing 100s of php warnings in our error log, all pointing to this →
PHP Warning: Undefined array key “status” in /public/wp-content/plugins/gravityforms/includes/addon/class-gf-feed-addon.php on line 299

It looks like there is no check (and then the handling of) to see if the key exists. Could we get this fixed in an upcoming release?

if ( isset($entry[‘status’]) && ‘spam’ === $entry[‘status’] ) {
$this->log_debug( “GFFeedAddOn::maybe_process_feed(): Entry #{$entry[‘id’]} is marked as spam; not processing feeds for {$this->_slug}.” );

return $entry;

}
fixes this.

The status key is defined out of the box. How are you generating the entry and triggering feed processing?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.