Title: Notice: Array to string conversion Error
Last modified: August 30, 2016

---

# Notice: Array to string conversion Error

 *  [ericreynolds007](https://wordpress.org/support/users/ericreynolds007/)
 * (@ericreynolds007)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-error/)
 * The following error displays for the bowes code plugin. Any idea on how to fix
   the error?
 * > Notice: Array to string conversion in /home/user/public_html/wp-content/plugins/
   > bowe-codes/includes/shortcodes.php on line 269
 * The code on lines 266-269:
 *     ```
       // let people add their shortcode settings..
       		$all_shortcodes_settings = apply_filters( 'bowe_codes_shortcodes_settings', $all_shortcodes_settings );
   
       		$this->codes_settings = array_intersect_assoc( $all_shortcodes_settings, $this->codes );
   
       	}
       ```
   
 * [https://wordpress.org/plugins/bowe-codes/](https://wordpress.org/plugins/bowe-codes/)

Viewing 1 replies (of 1 total)

 *  [Garrett Hyder](https://wordpress.org/support/users/garrett-eclipse/)
 * (@garrett-eclipse)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-error/#post-6428233)
 * Hey [@ericreynolds007](https://wordpress.org/support/users/ericreynolds007/),
 * Super old I know, but maybe future users can benefit.
 * From this old thread;
    [https://wordpress.org/support/topic/php-notice-39?replies=2](https://wordpress.org/support/topic/php-notice-39?replies=2)
   I found [@imath](https://wordpress.org/support/users/imath/) fixed in trunk with
   this changeset; [https://plugins.trac.wordpress.org/changeset/1060579](https://plugins.trac.wordpress.org/changeset/1060579)*
   Doesn’t look like he pushed it live though.
 * So all that’s needed is to replace array_intersect_assoc with array_intersect_key
   like so;
    `$this->codes_settings = array_intersect_key( $all_shortcodes_settings,
   $this->codes );`
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘Notice: Array to string conversion Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bowe-codes.svg)
 * [Bowe Codes](https://wordpress.org/plugins/bowe-codes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bowe-codes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bowe-codes/)
 * [Active Topics](https://wordpress.org/support/plugin/bowe-codes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bowe-codes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bowe-codes/reviews/)

## Tags

 * [array error](https://wordpress.org/support/topic-tag/array-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Garrett Hyder](https://wordpress.org/support/users/garrett-eclipse/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-error/#post-6428233)
 * Status: not resolved