WordPress.org

Support

Support » Plugins and Hacks » Undefined index Notice/Error

Undefined index Notice/Error

  • Whenever I place “define(‘WP_DEBUG’, true);” in wp-config.php I get undefined index notice. Is there any quick way of solving this problem? I know it’s not a critical bug, but it would be great to have it solved.

    Notice: Undefined index: googlefonts_font1 in .... google-fonts.php on line 802
    Notice: Undefined index: googlefonts_font2 in .... google-fonts.php on line 802

    http://wordpress.org/extend/plugins/wp-google-fonts/

Viewing 1 replies (of 1 total)
  • Thanks @ken90. We’ll address this in the upcoming release. In the mean time, if you want you can edit the following line, which should take care of the issue.

    On line 802 replace:

    if($this->options[$option]){

    with:

    if(isset($this->options[$option]) && $this->options[$option]){

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index Notice/Error’ is closed to new replies.