Hello,
I just updated the Social Share module and it caused an error to appear on all non-node pages (front page, views, etc.). I am using Drupal 7.16 and Social Share 7.x-1.12. The social share module is located in a block so that I could show it on non-node pages.

Below is the error message.

Notice: Undefined property: stdClass::$nid in _social_share_link() (line 65 of /home3/stratus4/public_html/drupal2/sites/all/modules/social-share/social_share.module).
Notice: Undefined property: stdClass::$nid in _social_share_link() (line 65 of /home3/stratus4/public_html/drupal2/sites/all/modules/social-share/social_share.module).
Notice: Undefined property: stdClass::$nid in _social_share_link() (line 65 of /home3/stratus4/public_html/drupal2/sites/all/modules/social-share/social_share.module).
Notice: Undefined property: stdClass::$nid in _social_share_link() (line 65 of /home3/stratus4/public_html/drupal2/sites/all/modules/social-share/social_share.module).
Notice: Undefined property: stdClass::$nid in _social_share_link() (line 65 of /home3/stratus4/public_html/drupal2/sites/all/modules/social-share/social_share.module).
Notice: Undefined property: stdClass::$nid in _social_share_link() (line 65 of /home3/stratus4/public_html/drupal2/sites/all/modules/social-share/social_share.module).
Notice: Undefined property: stdClass::$nid in _social_share_link() (line 65 of /home3/stratus4/public_html/drupal2/sites/all/modules/social-share/social_share.module).

I have hidden it for non-logged in users, but would really like to fix the error the right way. Any help would be appreciated.

Thank you,
Lauren

Files: 
CommentFileSizeAuthor
#1 undefined_error-1817716-1.patch830 byteswillvincent

Comments

Status:Active» Fixed
StatusFileSize
new830 bytes

This patch resolves the issue

I've issued a new release 7.x-1.13 that includes this fix.

Thank you for addressing this quickly! Seems to work great now.

Status:Fixed» Closed (fixed)