Support » Plugin: WP Bootstrap Menu » Non Object Error – When site 404's

  • Hi…

    Not sure if i have induced this one or have only just noticed it.
    When a post does not exist and defaults to 404.php i get the following notice.

    Notice: Trying to get property of non-object in /home/denmorc/public_html/wp-content/plugins/wp-bootstrap-navmenu/wp-bootstrap-navmenu.php on line 60

    I currently have 5 links in the menu and the notice occurs 5 times.
    No errors when site is being navigated as normal.

    http://wordpress.org/plugins/wp-bootstrap-navmenu/

Viewing 1 replies (of 1 total)
  • I am presuming that the global $post is not returning.
    For the short term i have suppressed errors on that line.

    if(@$post->ID == $list->object_id)

    Thanks & look forward to your response.

Viewing 1 replies (of 1 total)
  • The topic ‘Non Object Error – When site 404's’ is closed to new replies.