• Resolved George Nagy

    (@gpnagy)


    Tried to implement the simplest incarnation of this plug-in using the code provided

    <?php $nav = new NavigableWP('Title of Navigation', $args); ?>

    It came back with these errors:

    Warning: Invalid argument supplied for foreach() in /home3/public_html/wp-content/plugins/navigable/class-wp-nav.php on line 30

    Warning: Invalid argument supplied for foreach() in /home3/public_html/wp-content/plugins/navigable/class-nav.php on line 199

    Any thoughts? Seems like it would a useful plugin, if it worked.

Viewing 1 replies (of 1 total)
  • Plugin Author ainth

    (@ainth)

    In this case the problem is that the menu titled ‘Title of Navigation’ doesn’t exist in WordPress so when the plugin tried to fetch the data for that menu it didn’t find anything.

    If you went into the control panel in Appearance->Menus and created it like so: https://d.pr/IPAM then you should be good to go. In the current version there will be a notice when the menu doesn’t exist that should clarify things.

    Sorry about the delayed response – I haven’t been working with WP recently and didn’t get an email notification for the post either ??

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Navigable] Getting an error’ is closed to new replies.