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
Comment | File | Size | Author |
---|---|---|---|
#1 | undefined_error-1817716-1.patch | 830 bytes | willvincent |
Comments
Comment #1
willvincent CreditAttribution: willvincent commentedThis patch resolves the issue
Comment #2
willvincent CreditAttribution: willvincent commentedI've issued a new release 7.x-1.13 that includes this fix.
Comment #3
LaurenW CreditAttribution: LaurenW commentedThank you for addressing this quickly! Seems to work great now.
Comment #4
willvincent CreditAttribution: willvincent commented