Closed (fixed)
Project:
Voting like button
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Oct 2018 at 09:25 UTC
Updated:
29 Oct 2018 at 08:54 UTC
Jump to comment: Most recent
After installation of module, every time when user pages opening there is an alert - Undefined property: stdClass::$nid in votinglike_entity_view(). Even if voting tab is disabled for users pages.
Comments are disabled for users pages on my site.
I've found that this alert is because of code (line 53 of votinglime.module file):
$comment_node = node_load($entity->nid);
I think there should be some error handling if node_load($entity->nid) is null.
And I think that chkecks like those:
if (!variable_get('votinglike_user_enabled', TRUE)) {
Should be mayed before seting $comment_node variable.
BTW - module is grate, thanks for work =)
PS - sorry for bad English =)
Comments
Comment #2
quyenla commentedThe bug has been fixed in 7.x-1.1