Title: Warning: urlencode() expects parameter 1 to be string
Last modified: August 31, 2016

---

# Warning: urlencode() expects parameter 1 to be string

 *  Resolved [ThorWEB](https://wordpress.org/support/users/thorweb/)
 * (@thorweb)
 * [10 years ago](https://wordpress.org/support/topic/warning-urlencode-expects-parameter-1-to-be-string/)
 * Sometimes I get this error at bottom when showing results on new page:
 * Warning: urlencode() expects parameter 1 to be string, array given in /home/…./
   theme/includes/functions.php on line 765
 * [https://wordpress.org/plugins/ultimate-wp-query-search-filter/](https://wordpress.org/plugins/ultimate-wp-query-search-filter/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [10 years ago](https://wordpress.org/support/topic/warning-urlencode-expects-parameter-1-to-be-string/#post-7358741)
 * Well, like the warning suggested , the problem is on your `theme/includes/functions.
   php`, so you should ask the support from the theme support instead.
 *  Thread Starter [ThorWEB](https://wordpress.org/support/users/thorweb/)
 * (@thorweb)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/warning-urlencode-expects-parameter-1-to-be-string/#post-7358833)
 * I fixed it, I can’t remember how hahaha… the problem was that when I searched
   for a category with 2 or more words (or spaces)… but now it’s fine.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Warning: urlencode() expects parameter 1 to be string’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-wp-query-search-filter_fcfcfc.
   svg)
 * [Ultimate WP Query Search Filter](https://wordpress.org/plugins/ultimate-wp-query-search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-wp-query-search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ThorWEB](https://wordpress.org/support/users/thorweb/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/warning-urlencode-expects-parameter-1-to-be-string/#post-7358833)
 * Status: resolved