Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #162322


    somehow – even though all plugins are uptodate – the integrated share this function is not working well (see (Purchase code hidden if logged out) -gang/).

    Warning: current() [function.current]: Passed variable is not an array or object in /var/www/web27/html/bikes/wp-content/plugins/woocommerce/classes/integrations/sharethis/class-wc-sharethis.php on line 90 – See more at: (Purchase code hidden if logged out) -gang/#sthash.iPllnsIE.dpuf

    If I leave the ShareThis-ID in the backend blank no warning is displayed but of course ShareThis then does not work.

    Best regards,



    I don’t see the error. Have you tried AddThis social plugin? You can refer to this link: (Purchase code hidden if logged out) -the-header/?replies=4#post-134606



    But ShareThis is already integrated. Why should I be the one where it is not working ;)) I would like to stick with ShareThis…. Any clue?


    Hey Max!

    I found a solution, try this:

    In woocommerce/classes/integration/class-wc-share-this.php at line 90, look for this line:

    $thumbnail = ( $thumbnail_id = get_post_thumbnail_id( $post->ID ) ) ? current( $attachment_image_src ) : ’’;

    Replace it by

    $thumbnail = ( $thumbnail_id = get_post_thumbnail_id( $post->ID ) ) ? current(wp_get_attachment_image_src( $thumbnail_id, ‘large’ )) : ’’;


Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Share This PlugIn not working properly’ is closed to new replies.