Title: Fixing &#8216;Array to string conversion&#8217; notice
Last modified: December 7, 2017

---

# Fixing ‘Array to string conversion’ notice

 *  Resolved [chongfury](https://wordpress.org/support/users/chongfury/)
 * (@chongfury)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fixing-array-to-string-conversion-notice/)
 * First off, love your plugin, it’s part of most of my projects. I updated to version
   2.1.5, today, and started receiving the following notice atop all of my CMS edit
   pages:
 * Array to string conversion {path to wck plugin}/wordpress-creation-kit-api/wordpress-
   creation-kit.php on line 181
 * When reviewing that line, I found that $this->args[‘post_type’] was the offender
   as it’s an array instead of a string. I simply modified it to reference the string(
   $this->args[‘post_type’][0]) instead of the array and that fixed things up.
 * Just wanted to flag for your dev team and anyone else that may run into this 
   issue.

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

 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fixing-array-to-string-conversion-notice/#post-9773788)
 * Hello [@chongfury](https://wordpress.org/support/users/chongfury/),
 * Thank you for your report.
 * I’ll send it over to developer team and they will look for a fix.
 * Regards.
 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fixing-array-to-string-conversion-notice/#post-9774451)
 * Hello [@chongfury](https://wordpress.org/support/users/chongfury/),
 * We will release an update fixing the issue later today.
 * Regards.
 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fixing-array-to-string-conversion-notice/#post-9777663)
 * WCK 2.1.6 which is fixing this issue was released.
 * Regards.

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

The topic ‘Fixing ‘Array to string conversion’ notice’ is closed to new replies.

 * ![](https://ps.w.org/wck-custom-fields-and-custom-post-types-creator/assets/icon-
   256x256.png?rev=2257602)
 * [Custom Post Types and Custom Fields creator - WCK](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/fixing-array-to-string-conversion-notice/#post-9777663)
 * Status: resolved