WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
[resolved] undefined index id (16 posts)

  1. dalibu
    Member
    Posted 2 years ago #

    Hi - I have debug mode on, and WordPress is saying there is an error on this .php file:
    Notice: Undefined index: id in /wp-content/plugins/easy-fancybox/easy-fancybox.php on line 351

    Could you help me fix it?

    Thank you.

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    IT's just a notice, not an error. But if you install the development version, these notices should be gone.

  3. dalibu
    Member
    Posted 2 years ago #

    You are right it is a notice, not an error. Sorry I missed that. I tried the development version but it did not help. I turned off debugging mode for now, maybe it will go away next time I try.

  4. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    What is the exact notice you get with the development version?

  5. jrf
    Member
    Posted 1 year ago #

    Same here. Using the latest released version, not development.

    The error is Notice: Undefined index: id in /hsphere/local/home/funale/test.verlaatverdriet.nu/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 351

    The fix for this would be to replace line 350-352:

    foreach ($value['options'] as $_value)
    					if ($_value['id']) register_setting( 'media', $_value['id'] );
    				break;

    with:

    foreach ($value['options'] as $_value)
    					if (isset($_value['id']) && $_value['id']) register_setting( 'media', $_value['id'] );
    				break;

    Hope this helps!

    Smile,
    Juliette

  6. jrf
    Member
    Posted 1 year ago #

    Actually, there are quite a few more undefined notices in the latest release version. Check the Settings -> Media page when the plugin is first activated....

  7. jrf
    Member
    Posted 1 year ago #

    Pfff... same goes for the javascript code generated... bloody hell... I see why the thing ain't working now...

  8. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Juliette, if you could upgrade to the dev release, and report any remaining notices, that would help more. In any case, there are notices not errors and should not interfere with normal operation of the plugin. If it is not working, there is another conflict going on.

    Please see http://wordpress.org/extend/plugins/easy-fancybox/other_notes/ for trouble shooting tips.

  9. jrf
    Member
    Posted 1 year ago #

    Hi Rolf,

    As a principle, I don't install dev releases as that's what they are: development. If you've patched it, tested it and are happy with it: release it.

    I can send you a fixed file based on the latest public release as I solved nearly all the notices and warnings for testing purposes. You can do a file compare with your dev version to see if you caught them all...

    In any case, there are notices not errors and should not interfere with normal operation of the plugin. If it is not working, there is another conflict going on.

    That's nonsense. The notices were actually interfering with the workings of the plugin as the generated javascript which is included in the pages is littered with them, thereby completely breaking your plugin.

    It's one thing to know WordPress inside and out, but quite another to write proper PHP code....

  10. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    That's nonsense. The notices were actually interfering with the workings of the plugin as the generated javascript which is included in the pages is littered with them, thereby completely breaking your plugin.

    Are you seriously letting PHP blurt out errors and (even notices) in public code?!? There are error logs for that, you know?

    That's a serious security vulnerability you are running there... Better mop up your own mess before shouting at others about writing bad code.

  11. jrf
    Member
    Posted 1 year ago #

    Are you seriously letting PHP blurt out errors and (even notices) in public code?!? There are error logs for that, you know?

    That's a serious security vulnerability you are running there... Better mop up your own mess before shouting at others about writing bad code.

    Ever heard of a test-environment ?

  12. viniciusferrao
    Member
    Posted 1 year ago #

    I'm having a lot of garbage in my server logs due PHP Notice. And this one is getting really serious.

    RavanaH; can you release an updated version with this fixes please?

    Take a look at only one second log:

    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: type in /usr/share/wordpress/wp-content/themes/if/framework/content-fields/rewrite-object.php on line 66
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: type in /usr/share/wordpress/wp-content/themes/if/framework/content-fields/rewrite-object.php on line 38
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: pages in /usr/share/wordpress/wp-content/plugins/wordpress-post-tabs/wordpress-post-tabs.php on line 98
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: -Select- in /usr/share/wordpress/wp-content/themes/if/framework/theme-functions/filters-and-actions.php on line 76
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: -Select- in /usr/share/wordpress/wp-content/themes/if/framework/theme-functions/filters-and-actions.php on line 76
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: default in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 80
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: default in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 80
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: default in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 80
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: default in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 80
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: default in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 80
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 79
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 80
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 81
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 86
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: autoAttributeAlt in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 177
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: autoAttributeAlt in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 177
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 206
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: default in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 206
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 207
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: noquotes in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 209
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: noquotes in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 209
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: noquotes in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 209
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: noquotes in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 209
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: noquotes in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 209
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 206
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 207
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 206
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 207
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: standard in /usr/share/wordpress/wp-content/themes/if/header-default.php on line 54
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: noquotes in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 209
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 208
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 206
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 207
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: id in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 206
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: input in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 207
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
    [18-Mar-2013 21:45:37] PHP Notice:  Undefined index: hide in /usr/share/wordpress/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 100
  13. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    viniciusferrao, as I mentioned at the top of this thread, if you upgrade to the dev release, these notices will be gone.

  14. jrf
    Member
    Posted 1 year ago #

    @RavanH: I realise you've fixed it in the dev version. Might it be time for a new release so everyone can enjoy the notice-free version automatically ?
    Would save peeps reported and you the nuisance of having to respond ;-)

  15. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    There is much I want to do before the next version has all the options I am planning to implement. But you're right... a half-way release might not be bad.

    Please let me know if you find any issues (apart from the empty page under the Appearance admin section). If it's stable, I might launch this one (without the empty page) in a week or so.

  16. viniciusferrao
    Member
    Posted 1 year ago #

    Thanks RavanH.

    I can confirm that using the devel version solves the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic