• I installed a new version of plugin 1.3 and received such an error. what to do?

    Notice: Undefined index: on_click in /var/www/…/wp-content/plugins/cookie-notice/cookie-notice.php on line 1723

    Notice: Undefined index: on_click in /var/www/…/wp-content/plugins/cookie-notice/cookie-notice.php on line 1724

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same issue here. Line 1723 of cookie-notice.php is:

    if ( ! is_bool( $options[$param] ) )

    The code makes the incorrect assumption of the existence of all old parameters. The fix is to add an isset check first:

    if ( isset( $options[$param] ) && ! is_bool( $options[$param] ) )

    Downgrading the plugin is your best bet until the author(s) fix this.

    Thread Starter sarosuf

    (@lubimow)

    thanks

    Plugin Author dFactory

    (@dfactory)

    This should be fixed in just released 1.3.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined index: on_click’ is closed to new replies.