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

---

# PHP Notice: Array to string conversion

 *  [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-notice-array-to-string-conversion-3/)
 * Hi!
 * I get this PHP notice:
 *     ```
       PHP Notice:  Array to string conversion in /wp-content/themes/hueman/functions.php on line 297
       ```
   
 * This error has already been reported here:
    [https://wordpress.org/support/topic/social-link-target?replies=2](https://wordpress.org/support/topic/social-link-target?replies=2)
 * It happens only when a social link get the `_blank` target.
 * `$item['social-target']` is an array when it must be a string.
 * In my opinion, the wrong way to fix it would be to replace $item[‘social-target’]
   by $item[‘social-target’][0] on this line.
 * Indeed, this same variable is passed to the function icl_t at line 152 of ot-
   functions.php. This function is used to translate the string (when a multilingual
   plugin is activated) and of course, we can’t translate an array. This is a source
   conflict reported several times on the Polylang forum.
    [https://wordpress.org/support/topic/help-with-error-message-5?replies=5](https://wordpress.org/support/topic/help-with-error-message-5?replies=5)
   [https://wordpress.org/support/topic/incompatibility-with-hueman-theme?replies=4](https://wordpress.org/support/topic/incompatibility-with-hueman-theme?replies=4)

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

 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-notice-array-to-string-conversion-3/#post-6608778)
 * Hi Chouby. This issue has been around for a while as evidenced by [these posts](https://wordpress.org/search/hueman+%5B%27social-target%27%5D).
   Perhaps it will be addressed in a future release.
 *  Thread Starter [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-notice-array-to-string-conversion-3/#post-6608786)
 * Yes, your search is less restrictive than the one I did so you found even more
   results.
 * I initially tested the latest stable version available on this repository (1.5.4).
 * I also tested the version available at [http://alxmedia.se/themes/hueman/](http://alxmedia.se/themes/hueman/)(
   2.2.3). I get the same error except that it has moved to line 303.
 * I don’t know the difference between 1.x here and 2.x on the author’s website.
   Also unfortunately, it seems that the development has not been active for the
   past 6 months. Wait and see…
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-notice-array-to-string-conversion-3/#post-6608793)
 * From the theme website:
 * > **Note**: The version of Hueman available on wordpress.org is a “lite” version,
   > and does not include sharing buttons, basic shortcodes and some other things
   > as it is seen as plugin territory.
 * Yes, it hasn’t been updated for several months. Unfortunate since it had an active
   download trend earlier this year.

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

The topic ‘PHP Notice: 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/php-notice-array-to-string-conversion-3/#post-6608793)
 * Status: not resolved