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.
The topic ‘Fixing ‘Array to string conversion’ notice’ is closed to new replies.