Download & Extend

Fatal error accessing empty property in addtoany_handler_field_addtoany_link.inc

Project:Share Buttons (AddToAny) by Lockerz
Version:7.x-3.1
Component:Code
Category:bug report
Priority:major
Assigned:micropat
Status:closed (fixed)

Issue Summary

Hi,

When I updated my views from 7.x-3.0-rc1 to 7.x-3.0-rc3, It gave me WSofD. The message I have got was:
Notice: Undefined variable: teaser in addtoany_handler_field_addtoany_link->render() (line 22 of /var/www/html/multiinstall/learn-drupal/sites/all/modules/addtoany/views/addtoany_handler_field_addtoany_link.inc).

Please take a look.

Thanks,
Perry.

Comments

#1

Status:active» needs review

This patch worked for me, but it needs to be reviewed and committed...

http://drupal.org/node/1079696#comment-4927908

P.

#2

Also related issue : http://drupal.org/node/1316274

#3

Title:Addtoany falis with the new views update.» Fatal error accessing empty property in addtoany_handler_field_addtoany_link.inc

A fatal error occurs when using addtoany with views-7.x-3.0-rc3: "Fatal error: Cannot access empty property in addtoany/views/addtoany_handler_field_addtoany_link.inc on line 19".

Patch attached.

AttachmentSize
1346668-update-addtoany-for-views-7x-rc3-3.patch 1.35 KB

#4

Simplified #3 and included a required node access check.

AttachmentSize
1346668-update-addtoany-for-views-7x-rc3-4.patch 1.43 KB

#5

Patch at #4 by keithm works fine for me

#6

Status:needs review» reviewed & tested by the community

#7

Assigned to:Anonymous» micropat
Status:reviewed & tested by the community» fixed

Fixed in dev thanks to keithm's patch: #1346668-4: Fatal error accessing empty property in addtoany_handler_field_addtoany_link.inc

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here