Lightbox Plus Colorbox
[Plugin: Lightbox Plus] Warning messages (5 posts)

  1. swinggraphics
    Posted 3 years ago #

    LBP is only active plugin.

    It would be nice if these were cleared up. Still works anyway!

    On activation:

    The plugin generated 1825 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    On saving settings:

    Notice: Undefined index: use_custom_style in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 212

    Notice: Undefined index: disable_css in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 213

    Notice: Undefined index: use_php_four in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 214

    Notice: Undefined index: lightboxplus_multi in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 215

    Notice: Undefined index: use_inline in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 216

    Notice: Undefined index: slideshow in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 237

    Notice: Undefined index: slideshow_auto in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 238

    Notice: Undefined index: use_caption_title in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 242

    Notice: Undefined index: gallery_lightboxplus in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 243

    Notice: Undefined index: multiple_galleries in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 244

    Notice: Undefined index: use_class_method in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 245

    Notice: Undefined index: no_auto_lightbox in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 247

    Notice: Undefined index: text_links in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 248

    Notice: Undefined index: no_display_title in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 249

    Notice: Undefined index: lightboxplus_multi in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 254

    Notice: Undefined index: use_inline in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 290

    Notice: Undefined index: use_custom_style in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 330

    Notice: Undefined index: lightboxplus_multi in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 343

    Notice: Undefined index: use_inline in /Users/greg/Sites/b+f/wordpress/wp-content/plugins/lightbox-plus/lightboxplus.php on line 350


  2. macmeister
    Posted 3 years ago #

    Same issue here. Fortunately it still works. Received these exact errors on 3.4 and now 3.4.2. Have they cured this? Is an alternative necessary? Still digging...

  3. swinggraphics
    Posted 3 years ago #

    Getting 10 different "PHP Notice: Undefined index: blah" message when loading most pages of my site. Guess I'll turn off logging. Yikes that gets long fast.

  4. tzdk
    Posted 3 years ago #

    Nagging dev. is better option I think. When you need to debug you should be able to.

    I tried to uninstall, delete data/files. Upon reinstall I got a bunch of notices in admin of Lightbox, but they went away after saving settings. All ok on front. When I re-enter settings page and click around there are many notices but restricted to that area.

    PHP Notice:  Array to string conversion in C:\UniServer\www\wp2\wp-content\plugins\lightbox-plus\admin\lightbox.admin.php on line 339

    I see a million times, zero on front. About 2.8kb is added to debug.log for every refresh of settings page, but only that line.

    I use almost latest PHP 5.4 on local test site - version might have something to do with what is reported as a "Notice". WP 3.6 beta or not could also play a role.

    Or may be there are evil combinations of settings spitting out more notices than normal?

  5. SteveBondy
    Posted 2 years ago #

    I hate to resurrect an old thread, but since I just ran into this a couple days ago it's clearly still a problem.

    The warnings are generated because not all option settings are defined/initialized. This happened in my case because I skipped several releases of LB Plus. To resolve it I added code to utility.class.php to check each option and set a default value if the option was not previously set.

    The updated file, for lightbox-plus version 2.6 can be downloaded here. I've renamed the PHP file to TXT so it will load in your browser. Save that as utility.class.php in your plugins/lightbox-plus/classes folder. Save the original just in case.

    It's possible there are other settings that need initializing but this got rid of all the messages for me.

    Hope that helps somebody else.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.