Download & Extend

Undefined index: node in _service_links_link() when displaying node content through Panels

Project:Service links
Version:7.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I'm not sure if it's related to Panels or if it's because there aren't any other node links, but this line:

<?php
      $node
->content['links']['node']['#links'] = array_merge($node->content['links']['node']['#links'], $links);
?>

is looking for a sub array "node" which doesn't exist. The #links array is in

<?php
$node
->content['links']['#links']
?>

I've included a snapshot of the node object to review. I can supply a patch, but I don't know if this issue is specifically with Panels, and if so, how to detect Panels to fix it.

AttachmentSize
Screen Shot 2011-12-15 at 8.10.17 PM.png81.34 KB

Comments

#1

I am seeing this error along with another one related when showing nodes associated with an OG group through panel:

Notice: Undefined index: node in _service_links_link() (line 191 of /home/biydng/public_html/sites/all/modules/service_links/service_links.module).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in _service_links_link() (line 191 of /home/biydng/public_html/sites/all/modules/service_links/service_links.module).

Did you fix your error?

#2

nobody click here