Title: Warning: urlencode() expects&#8230;
Last modified: August 24, 2016

---

# Warning: urlencode() expects…

 *  [rafal_konofalski](https://wordpress.org/support/users/polegly/)
 * (@polegly)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/warning-urlencode-expects/)
 * I have an issue with plugin.
    While editing page with this custom field all values
   are deleted when i click Update and it displays:
 * Warning: urlencode() expects parameter 1 to be string, array given in /usr/home/../../
   public_html/wp-content/plugins/advanced-custom-fields-table-field/acf-table-v5.
   php on line 165
 * Any ideas?
 * [https://wordpress.org/plugins/advanced-custom-fields-table-field/](https://wordpress.org/plugins/advanced-custom-fields-table-field/)

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

 *  Plugin Author [Johann Heyne](https://wordpress.org/support/users/jonua/)
 * (@jonua)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/warning-urlencode-expects/#post-6078645)
 * This is a strange warning because, the `urlencode()` function contains another
   function called `json_encode()` that is definitely returning a string and never
   an array `urlencode( json_encode( $data_field ) )`. This function is also on 
   line 169 and not 165. So the answers of the following two questions may help 
   me.
 * Do you have the current version of the plugin?
    Is your PHP version greater than
   or equal 5.2.0?
 * Thanks, Johann
 *  Thread Starter [rafal_konofalski](https://wordpress.org/support/users/polegly/)
 * (@polegly)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/warning-urlencode-expects/#post-6078666)
 * > Do you have the current version of the plugin?
 * Yes, just installed from wordpress.org
 * > Is your PHP version greater than or equal 5.2.0?
 * PHP 5.4
 *  Plugin Author [Johann Heyne](https://wordpress.org/support/users/jonua/)
 * (@jonua)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/warning-urlencode-expects/#post-6078919)
 * I could not replicate that issue. Is it still exists? May can you provide more
   details like a screenshot of the table editor?
 * I try a fix by changing that json_encode() function that returned an array with
   the WordPress equivalent wp_json_encode() in the next release.
 *  Thread Starter [rafal_konofalski](https://wordpress.org/support/users/polegly/)
 * (@polegly)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/warning-urlencode-expects/#post-6078923)
 * Yes, it is still exists. After typing datas to table and click Update i have 
   this → [http://prntscr.com/7235q4](http://prntscr.com/7235q4) and empty table.
 *  Plugin Author [Johann Heyne](https://wordpress.org/support/users/jonua/)
 * (@jonua)
 * [11 years ago](https://wordpress.org/support/topic/warning-urlencode-expects/#post-6078996)
 * I just released a new version of the plugin. If we are lucky this may solve your
   problem.
 *  Thread Starter [rafal_konofalski](https://wordpress.org/support/users/polegly/)
 * (@polegly)
 * [11 years ago](https://wordpress.org/support/topic/warning-urlencode-expects/#post-6078997)
 * Thanks, but no way! Now i have:
 * `Notice: Undefined index: use_header in /usr/home/pm/domains/bros.pm.usermd.net/
   public_html/wp-content/plugins/advanced-custom-fields-table-field/acf-table-v5.
   php on line 143 Warning: urlencode() expects parameter 1 to be string, array 
   given in /usr/home/pm/domains/bros.pm.usermd.net/public_html/wp-content/plugins/
   advanced-custom-fields-table-field/acf-table-v5.php on line 165`
 * after click Update
 *  Plugin Author [Johann Heyne](https://wordpress.org/support/users/jonua/)
 * (@jonua)
 * [11 years ago](https://wordpress.org/support/topic/warning-urlencode-expects/#post-6079000)
 * I think, this is an unique problem and I only can research it on the website 
   the issue exists.

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

The topic ‘Warning: urlencode() expects…’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields-table-field/assets/icon-256x256.png?
   rev=1962986)
 * [Table Field Add-on for ACF and SCF](https://wordpress.org/plugins/advanced-custom-fields-table-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields-table-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Johann Heyne](https://wordpress.org/support/users/jonua/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/warning-urlencode-expects/#post-6079000)
 * Status: not resolved