Support » Plugin: Lightbox with PhotoSwipe » add_submenu_page notice as of WP 5.3

  • Resolved xsonic



    After upgrading to WP 5.3 I get a notice:

    Notice: add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.) in /var/www/vhosts/ on line 4903

    On line 569 you should remove the icon definition from add_options_page.

    add_options_page uses add_submenu_page, which has no icon definition.

    Thanks, regards,


Viewing 5 replies - 1 through 5 (of 5 total)
  • @xsonic hi, exactly the same error notice after i upgraded to 5.3.0, did you give a solution as above on line 569? i can’t find any add_options_page in functions.php, please advise, thanks.

    Plugin Author Arno Welzel


    Release 2.12 should fix this.

    Plugin Author Arno Welzel


    @martinxun03 the fix was not in functions.php but in the code of my plugin. And it was not about functions.php in a theme but in the core code of WordPress which introduced a new parameter for a function call which I did not use correctly. Older WordPress versions didn’t have this extra parameter, so it was just ignored and I didn’t notice that I added a parameter which should not be there.

    Hey @awelzel, thanks for the quick fix.

    Great plugin btw, thanks for maintaining it!

    Moderator Jan Dembowski


    Forum Moderator and Brute Squad

    @xsonic Unless it’s spam, abuse or something broken in the forums please do not report topics again.

    It is not a means to get faster support, it only gets forum moderators attention and no one else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘add_submenu_page notice as of WP 5.3’ is closed to new replies.