• When I use my WordPress search form and there is a result, the result displays correctly, but when there is no result I receive these error messages:

    Warning: Invalid argument supplied for foreach() in /etc/wp-includes/template-functions-category.php on line 395

    Warning: in_array(): Wrong datatype for second argument in /etc/wp-includes/template-functions-category.php on line 399

    What could be causing this? (my etc)

Viewing 1 replies (of 1 total)
  • Thread Starter pcmt

    (@pcmt)

    I have fixed this. It was my fault, not WordPress’s.

    But I’ve noticed that when a search is made the results show up in “reverse order”. Also if there is more than one page of results, the last page of results is shown, not the first. Are these WordPress’s normal behaviours or have I broken something?

Viewing 1 replies (of 1 total)
  • The topic ‘Search error’ is closed to new replies.