Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Nav walker displays correctly on every page except search.php

Discussion in 'Misc WordPress Requests' started by Peter Hardy-vanDoorn, Jan 12, 2018.

  1. Peter Hardy-vanDoorn

    Guest

    Reply To: Nav walker displays correctly on every page except search.php, by Peter Hardy-vanDoorn

    Well, the error says that the problem is on line 476, which in the example you gave is $item_output = $args->before;… therefore, the error is definitely being caused by $args.

    Trying to get property of non-object” means that $args is not an object – that means it is either an array, a number, a string or is empty.

    Like I said, add print_r( $args ); die(); to the line before that and see what is being output.

    If it is an array, add the line $args = (object)$args; to see if that fixes it (if it’s already an object on other pages, which is likely since it’s working, then that will cause no harm.)

    If it’s empty, well… I’m afraid that’s a whole load of extra hurt as you’ll have to try and find out what is causing it to be empty just in search.php. Start by disabling your plugins one at a time to see if one of them is conflicting.

    Reply To: Nav walker displays correctly on every page except search.php
     
    #1

Share This Page

Monarch Social Sharing Plugin