Plugin Directory


Opened 4 years ago

Closed 4 years ago

#2010 closed defect (duplicate)

Contact form: Uninitialized string notice

Reported by: iandunn Owned by: tmoorewp
Priority: low Severity: minor
Plugin: jetpack Keywords: grunion contact-form has-patch
Cc: richard@…


Submitting a contact form with with WP_DEBUG enabled and Akismet activated produces this PHP notice on my local install, running trunk for both plugins:

( ! ) Notice: Uninitialized string offset: 1 in /Users/ian/vhosts/example.org/wp/content/plugins/jetpack/modules/contact-form/grunion-contact-form.php on line 318

That's because akismet_http_post() returns an empty string on failure, but Grunion is expecting it to always be an array.

Attachments (1)

2010-plugins.diff (649 bytes) - added by iandunn 4 years ago.

Download all attachments as: .zip

Change History (4)

@iandunn4 years ago

comment:1 @richardmtl4 years ago

  • Cc richard@… added

comment:2 @jeherve4 years ago

  • Keywords grunion contact-form added

comment:3 @jeherve4 years ago

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.