WordPress.org

Forums

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

  1. tablefortwoblog
    Member
    Posted 1 year 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! :)

    http://wordpress.org/plugins/ultimate-category-excluder/

  2. tablefortwoblog
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

Tags

No tags yet.