Closed (fixed)
Project:
ShareThis
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2016 at 08:07 UTC
Updated:
18 Jan 2017 at 15:24 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
ehanuise commentedOn further investigation, sharethis displays correctly and throws no erros on nodes.
The error only ahppens on the homepage, where I have the sharethis widged in a panel.
I have the error _and_ sharethis does not display in that panel.
No other errors in the log than the above warning.
I also get another error :
Notice : Undefined index: entity keys dans entity_extract_ids() (ligne 7901 dans /home/www.example.com/includes/common.inc).
Notice : Undefined index: entity keys dans entity_extract_ids() (ligne 7902 dans /home/www.example.com/includes/common.inc).
I thought it was unrelated, but if I create several instances of the sharethis widget in the panel, I get several instances of all three errors, so there is a link.
Comment #3
karlsheaThe error in sharethis_sharethis_content_type_render() is from
$entity_type = end($context[0]->type). That's always going to be a string, I don't know what the intention was there.Comment #4
lomasr commentedCant reproduce the error on my local . Please attach a screenshot of error.
Comment #5
karlsheaComment #6
karlsheaIt's inside a mini panel that's placed on the page through a block.
Although just this patch doesn't work either, the widget gets the wrong path. I think this page should really be a Panels override instead of a mini panel in a block, so it might not be a use case you're trying to support.
Comment #7
realgiucas commentedI got the same problem and error.
Is there a way tyo use sharethis in a panel page?
Comment #8
gg24 commentedComment #9
gg24 commentedComment #10
gg24 commentedComment #11
navneet0693 commentedThe patch solves it!
Comment #12
purushotam.rai commented@gg24 patch works fine for me too. Thanks for your efforts.
Comment #14
purushotam.rai commented