Title: Array to String Conversion
Last modified: August 22, 2016

---

# Array to String Conversion

 *  Resolved [ruelluna](https://wordpress.org/support/users/ruelluna/)
 * (@ruelluna)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/array-to-string-conversion-1/)
 * I get this error
 * Notice: Array to string conversion in [directorides]/functions.php on line 303

Viewing 1 replies (of 1 total)

 *  Thread Starter [ruelluna](https://wordpress.org/support/users/ruelluna/)
 * (@ruelluna)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/array-to-string-conversion-1/#post-5890457)
 * This error occurs when the target to a new window is selected.
    The return value`
   $item['social-target']` is an array, thus printing it would cause array to string
   conversion.
 * Quick fix is to get the first element of the array `$item['social-target'][0]`

Viewing 1 replies (of 1 total)

The topic ‘Array to String Conversion’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [ruelluna](https://wordpress.org/support/users/ruelluna/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/array-to-string-conversion-1/#post-5890457)
 * Status: resolved