• Resolved Apfelbiss

    (@apfelbiss)


    Hello,

    when analyzing a site (WP 4.9.9) with this Plugin with WordPress debug turned on, it says:

    PHP Notice: Undefined index: accordionmenu in /xyz/wp-content/plugins/nextend-accordion-menu/widget.php on line 26

    At PluginTests it also says:

    [14-Dec-2018 08:32:31 UTC] PHP Notice: edit_form_advanced is deprecated since version 5.0.0! Use block_editor_meta_box_hidden_fields instead. This action is still supported in the classic editor, but is deprecated in the block editor. in /wp-includes/functions.php on line 4147
    [14-Dec-2018 08:32:32 UTC] PHP Notice: edit_form_advanced is deprecated since version 5.0.0! Use block_editor_meta_box_hidden_fields instead. This action is still supported in the classic editor, but is deprecated in the block editor. in /wp-includes/functions.php on line 4147

    Do these notices have any effect today?
    Will this be fixed within the next version?

    Thank you in advance.

    • This topic was modified 5 years, 11 months ago by Apfelbiss.
Viewing 1 replies (of 1 total)
  • Plugin Author Gabor

    (@nextendweb_gabor)

    Hi @apfelbiss!

    The “Undefined index: accordionmenu” error should only appear on a website, if you don’t have any menus created, but in the Appearance -> Widgets you are putting an Accordion Menu into a widget position. Maybe if you don’t have any menus selected, so please check your Appearance -> Widgets to see if you have empty Accordion Menus there!
    If this won’t help, we will need some deeper debugging, so in that case please write to us in here:
    https://nextendweb.com/contact-us/nextend-accordion-menu-support/?platform=WordPress

    And the plugintests website’s notice is a false positive, because we are not using edit_form_advanced, but we are removing them if they are used. Since we support lower WordPress versions too, at some websites that edit_form_advanced could be used and in that case we will need to remove them, while on WP5+ websites as they aren’t used, they just won’t be removed, so in that case nothing happens in this part of the code.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP notices: Undefined index & deprecated’ is closed to new replies.