WordPress.org

Forums

Grunion Contact Form
grunion 2.2 generates PHP notice (3 posts)

  1. Liam Gladdy
    Member
    Posted 3 years ago #

    Hey guys,

    Line 26 of grunion-contact-form.php generates a php notice when displayed.

    The fix is to change line 26 to:

    if (!isset($_REQUEST['action']) || $_REQUEST['action'] != 'grunion_shortcode_to_json' ) {

    Just a heads up so you can include it in your next release for those of us pedantic enough to code against E_ALL | E_STRICT

    http://wordpress.org/extend/plugins/grunion-contact-form/

  2. Joseph Scott
    Member
    Plugin Author

    Posted 3 years ago #

    Can you take a look at Grunion -trunk - http://plugins.trac.wordpress.org/browser/grunion-contact-form/trunk - and see if this still applies.

  3. MattV
    Member
    Posted 3 years ago #

    @Joseph: for me the PHP error notice on line 26 disappeared when using this updated code from the trunk:

    if ( empty( $_REQUEST['action'] ) || $_REQUEST['action'] != 'grunion_shortcode_to_json' ) {
    		wp_print_styles( 'grunion.css' );
    	}

    (I´ve copied these lines to the plugin file grunion-contact-form.php)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Grunion Contact Form
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic