Title: Notice: Array to string conversion
Last modified: December 20, 2017

---

# Notice: Array to string conversion

 *  [Aldo](https://wordpress.org/support/users/ab_lu/)
 * (@ab_lu)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-4/)
 * Hello,
 * We get the following notice, when using the plugin:
 * Notice: Array to string conversion in /web/app/plugins/tiled-gallery-carousel-
   without-jetpack/tiled-gallery.php on line 373
 * Any idea?
 * Thanks
    Aldo

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

 *  [Valen Correa](https://wordpress.org/support/users/quitoxic/)
 * (@quitoxic)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-4/#post-9974353)
 * Same here, Any idea what could be wrong?
 *  [gordon.cunningham](https://wordpress.org/support/users/gordoncunningham/)
 * (@gordoncunningham)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-4/#post-9988117)
 * The problem is that the images’ metadata now contain an array of info that the
   plugin doesn’t handle. The JetPack code that this plugin is based on hasn’t been
   updated. JetPack had the same problem a while back and it was fixed in an earlier
   version of WP. However, knowing that hasn’t allowed me to figure out a fix – 
   I’m not a programmer. Anyone know what’s become of the author?
 *  [gordon.cunningham](https://wordpress.org/support/users/gordoncunningham/)
 * (@gordoncunningham)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-4/#post-9988242)
 * I think I found the fix. In checking the recent fix for JetPack, the issue was
   the expansion of the metadata array. In the plugin, edit the tiled-gallery.php
   file and change line 373, which originally reads:
 * `$img_meta = json_encode( array_map( 'strval', $img_meta ) );`
 * to
 * `$img_meta = json_encode( array_map( 'strval', array_filter( $img_meta, 'is_scalar')));`
 * So far this has fixed the issue here, as well as a problem with internal server
   errors when editing galleries and saving the page.
 * Good luck!

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/tiled-gallery-carousel-without-jetpack_8c777c.
   svg)
 * [Tiled Galleries Carousel Without Jetpack](https://wordpress.org/plugins/tiled-gallery-carousel-without-jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tiled-gallery-carousel-without-jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tiled-gallery-carousel-without-jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/tiled-gallery-carousel-without-jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tiled-gallery-carousel-without-jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tiled-gallery-carousel-without-jetpack/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [gordon.cunningham](https://wordpress.org/support/users/gordoncunningham/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-4/#post-9988242)
 * Status: not resolved