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

CommentFileSizeAuthor
#1 undefined_error-1817716-1.patch830 byteswillvincent
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

willvincent’s picture

Status: Active » Fixed
FileSize
830 bytes

This patch resolves the issue

willvincent’s picture

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

LaurenW’s picture

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

willvincent’s picture

Status: Fixed » Closed (fixed)