If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
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.
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.