Closed (fixed)
Project:
Panopoly
Version:
7.x-1.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2012 at 04:25 UTC
Updated:
23 Feb 2013 at 00:18 UTC
Jump to comment: Most recent
There is this problem:
Notice: Undefined index: path in panopoly_admin_menu_link_alter() (line472 of/usr/local/var/www/panopoly/profiles/panopoly/modules/panopoly/panopoly_admin/panopoly_admin.module)
Comments
Comment #1
populist commentedThis was fixed with a quick !empty() check in panopoly_admin. Not sure why $item['path'] ends up being false, but so it does:
Comment #2
populist commentedAfter some more digging, $item['path'] is empty because defaultcontent.module injects content that way. Since only Panopoly Demo has this trouble, I updated that module with a fix as well so we should be good to go.
Comment #4
fox mulder commentedHi populist!
I don't understand Your solution. Since we are using Panopoly rc3 this notice appears after submitting all of the node edit forms of nodes that create menu entry. Panopoly Demo is uninstalled.
I don't know what does the function panopoly_admin_menu_link_alter(&$item) make, but all of $item arrays have a 'link_path' key instead of 'path'.
Can You help me fix this?
Comment #5
populist commentedMy answer in #2 was a little hasty. As it turns out, link_path is often set and the code change in #2 should solve your troubles. It just isn't in RC3, but will be in RC4!
Comment #7
Anonymous (not verified) commentedFox Muldaur - In line472 of what ever your path is www/panopoly/profiles/panopoly/modules/panopoly/panopoly_admin/panopoly_admin.module)
change line 472 from - if (strpos($item['path'], 'panopoly/settings/')) {
to
if (!empty($item['path']) && strpos($item['path'], 'panopoly/settings/')) {
It worked for me.