Closed (fixed)
Project:
Facebook Like Button
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Jun 2011 at 10:04 UTC
Updated:
27 Jun 2011 at 10:02 UTC
Hi jerdiggity,
The property 'path' is only set in those sites where module Path is enabled.
So if you don't have a node with path.. it will show this error message:
Notice: Undefined property: stdClass::$uri in fblikebutton_node_view() (line 58 of
Instead of :
$likepath = drupal_get_path_alias($node->uri['path']);.
It's better to let Drupal decide the path like this:
$likepath = url("node/$node->nid", array('absolute' => TRUE)),.
Comments
Comment #1
corbacho commentedUps. This was meant to be in the issue queue of Facebook Like button.
Moving.
Comment #2
jerdiggity commentedThanks!
Committed to latest stable release.