• Resolved sanja jelic

    (@sanjaje)


    hi,
    i have an error with new uploaded pictures, one set for each photo above gallery and one above header. pictures uploaded previously are ok.
    when i deactivate plugins there is just change when i deactivate yeost SEO, the lines above the header is gone but one above gallery is still there.

    Notice: Array to string conversion in /…/wp-content/plugins/carousel-without-jetpack/carousel/jetpack-carousel.php on line 252

    on that line is $img_meta = json_encode( array_map( 'strval', $img_meta ) );

    i have test site here: link to a test site

    tried to find an sollution but havent found any.
    does somebody have an idea?

    best regards
    sanja

    https://www.ads-software.com/plugins/carousel-without-jetpack/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hay..

    Just add this code

    if ( isset( $img_meta['keywords'] ) ) {
    			unset( $img_meta['keywords'] );
    		}

    above
    $img_meta = json_encode( array_map( ‘strval’, $img_meta ) );

    Thread Starter sanja jelic

    (@sanjaje)

    thank you, that was it ??

    Hi,

    I had the same php notice and this solution also works well for me.

    Does anybody know if this change will be applied to future versions of the plugin ‘carousel without Jetpack’ or will my change be overwritten with any new next version of the plugin?

    Thanks, cheers,
    Igor

    Hi,

    I had the same problem and your fix worked well.

    Many thanks,

    Malcolm

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Notice: Array to string conversion in… above gallery and header’ is closed to new replies.