somehow – even though all plugins are uptodate – the integrated share this function is not working well (see http://www.valan.de/fahrrad/ace-kardanantrieb-cruiser-sram-5-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/ace-kardanantrieb-cruiser-sram-5-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.
I don’t see the error. Have you tried AddThis social plugin? You can refer to this link: http://www.kriesi.at/support/topic/placing-addthis-social-icons-into-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?
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’ )) : ’’;
The topic ‘Share This PlugIn not working properly’ is closed to new replies.