If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

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

    Hi,

    somehow – even though all plugins are uptodate – the integrated share this function is not working well (see http://www.valan.de/fahrrad/ (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: http://www.valan.de/fahrrad/ (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,
    Max

    #162648

    Hi,

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

    Regards,
    Ismael

    #163001

    http://imgur.com/bnHOL0Y,S8Sg2S8

    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?

    #163306

    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’ )) : ’’;
    

    Cheers!
    Josue

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

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