[Plugin: Easy FancyBox] WP_DEBUG – Options need defining
-
Dear RavanH,
I’m currently experiencing the WSoD (White Screen of Death) on one of my WP installs and I’m trying to reduce the number of issues that could cause it. I am running a large number of plugins and yours happens to be one of them.
I’m running my local WP install in
define('WP_DEBUG', true);
mode, this can be added to wp-config.php and I’m turning on 1 plugin at a time. I found the following issue/s;
* A number of options have not been defined.
Notice: Undefined index: enable in D:\websites\site.local\wp-content\plugins\easy-fancybox\easy-fancybox.php on line 46
I have done a small quick messy hack to resolve the issue locally for me, but there may well be a better way as you will know your plugin much better than me.
I used the follow to remove 1 of a number of “undefined” errors
// check for any enabled sections $do_fancybox = false; foreach ($easy_fancybox_array as $value) { if (isset($value['options']['enable']['id'],$value['options']['enable']['default'])) if ( '1' == get_option($value['options']['enable']['id'],$value['options']['enable']['default']) ) { $do_fancybox = true; break; } }
If you could please check your plugin with WP_DEBUG mode on resolve any messages that come up for the next release, this would be amazing.
Thank you for your time and creating a great plugin.
Thanks,
=-)
- The topic ‘[Plugin: Easy FancyBox] WP_DEBUG – Options need defining’ is closed to new replies.