Title: urlencode error message
Last modified: August 30, 2016

---

# urlencode error message

 *  Resolved [Pete](https://wordpress.org/support/users/perthmetro/)
 * (@perthmetro)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/urlencode-error-message/)
 * I have the error message at the bottom of my search results page
 *     ```
       Warning: urlencode() expects parameter 1 to be string, array given in /home4/abc/public_html/xyz/wp-content/themes/generatepress/inc/template-tags.php on line 38
       ```
   
 * Here’s is the link to the same question on the theme author’s support website…
 * [https://generatepress.com/forums/topic/urlencode-error-message/#post-163004](https://generatepress.com/forums/topic/urlencode-error-message/#post-163004)
 * [https://wordpress.org/plugins/ultimate-wp-query-search-filter/](https://wordpress.org/plugins/ultimate-wp-query-search-filter/)

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

 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/urlencode-error-message/#post-6900890)
 * This is the theme and the plugin compatible issue. I think you should set the
   the argurment to false:
 *     ```
       $links = paginate_links( array(
       	'add_args' => false,
       ) );
       ```
   
 *  Thread Starter [Pete](https://wordpress.org/support/users/perthmetro/)
 * (@perthmetro)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/urlencode-error-message/#post-6900895)
 * Obviously there is a compatibility issue, but if there is nothing wrong with 
   this theme then is there a way you can fix the plugin to make it compatible?
 * This theme is one of the most popular themes in the WP theme repository.
 *  Thread Starter [Pete](https://wordpress.org/support/users/perthmetro/)
 * (@perthmetro)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/urlencode-error-message/#post-6900898)
 * Your above code didn’t fix the problem.
 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/urlencode-error-message/#post-6900936)
 * I never use the theme, and I don’t know how they handler the pagination.
    As 
   far as I can tell is you are using the default search template, and the plugin
   shouldn’t affect the search template. Do you have any customization on the search
   template?
 *  Thread Starter [Pete](https://wordpress.org/support/users/perthmetro/)
 * (@perthmetro)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/urlencode-error-message/#post-6901016)
 * I’m using a child theme. Of this theme, but both the child theme and the parent
   theme have the same issue. Other themes don’t have this issue. I’ll take it back
   to the theme developer.
 *  Thread Starter [Pete](https://wordpress.org/support/users/perthmetro/)
 * (@perthmetro)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/urlencode-error-message/#post-6901017)
 * The theme developer fixed the issue…

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

The topic ‘urlencode error message’ 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/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [template-tags.php](https://wordpress.org/support/topic-tag/template-tags-php/)
 * [urlencode](https://wordpress.org/support/topic-tag/urlencode/)

 * 6 replies
 * 2 participants
 * Last reply from: [Pete](https://wordpress.org/support/users/perthmetro/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/urlencode-error-message/#post-6901017)
 * Status: resolved