Ready to get started?Download WordPress


Search error (2 posts)

  1. pcmt
    Posted 8 years ago #

    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)

  2. pcmt
    Posted 8 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.