kirki icon indicating copy to clipboard operation
kirki copied to clipboard

Undefined variable: option_name & default after update from 0.8.3 to 0.8.4

Open DevelopOnline opened this issue 11 years ago • 4 comments

( ! ) Notice: Undefined variable: option_name in C:\wamp\www\wp\wp-content\themes\new\lib\kirki\includes\Helpers\helpers.php on line 78
( ! ) Notice: Undefined variable: default in C:\wamp\www\wp\wp-content\themes\new\lib\kirki\includes\Helpers\helpers.php on line 78

why below lines were deleted from lines 93 & 94 of includes\Helpers\helpers.php (ver 0.8.3)?!

    $option_name  = $fields[$option]['settings'];
    $default      = $fields[$option]['default'];

DevelopOnline avatar Apr 08 '15 05:04 DevelopOnline

Hey there!

Can you please try using the master branch and let me know if this still occurs? I can't replicate this issue...

Can you also post your configuration here? Are you using 'option' as the 'options_type' in your config?

aristath avatar Apr 08 '15 19:04 aristath

Hi, After update to master branch, I still see the following message:

 ( ! ) Notice: Undefined variable: default in C:\wamp\www\wp\wp-content\themes\new\lib\kirki\includes\Helpers\helpers.php on line 78

I use default options_type : theme_mod

DevelopOnline avatar Apr 09 '15 02:04 DevelopOnline

Thanks for checking!

Should be fixed now. :+1:

aristath avatar Apr 09 '15 12:04 aristath

Nice :+1:

DevelopOnline avatar Apr 10 '15 04:04 DevelopOnline