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
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
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.
Yes, it is still exists. After typing datas to table and click Update i have this → http://prntscr.com/7235q4 and empty table.
I just released a new version of the plugin. If we are lucky this may solve your problem.
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
I think, this is an unique problem and I only can research it on the website the issue exists.