Ultimate Category Excluder
[resolved] On my search results page, UCE gives a php error (4 posts)

  1. tablefortwoblog
    Posted 2 years ago #

    When I go to my search results page for any search I do, I get this PHP error:

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/ultimate-category-excluder/ultimate-category-excluder.php on line 146

    You can see an example here: http://www.tablefortwoblog.com/?s=granola

    Thanks for any help/solutions! :)


  2. tablefortwoblog
    Posted 2 years ago #

    Hmm, and I just checked the settings and the column for "exclude from search," every field has this error:

    Warning: in_array() expects parameter 2 to be array, null given in /wp-content/plugins/ultimate-category-excluder/ultimate-category-excluder.php on line 59

  3. Michael Clark
    Posted 2 years ago #

    Yeah, you need to exclude at least one category in the search column, save your settings, then uncheck that category from the search column, and save the settings. That should fix it. Let me know if it doesn't. Mike

  4. tablefortwoblog
    Posted 2 years ago #

    Thanks! It worked and fixed it :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ultimate Category Excluder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.