• 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)
  • Same here, Any idea what could be wrong?

    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?

    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.