Notice: Undefined index: features in total_control_menus_content_type_render() (line 52 of /home/admin/public_html/amg.emc2innovation.com/sites/all/modules/total_control/plugins/content_types/menus.inc).

Seems a bit pointless to report this without any info to back it up :(

This error appears only on the dashboard.

  • Drupal 7.12
  • Panels 7.x-3.0
  • Views 7.x-3.1
  • VBO 7.x-3.0-beta3
  • Page manager 7.x-1.0-rc1
  • plus lots, lots more...

Comments

jenlampton’s picture

Status: Active » Postponed (maintainer needs more info)

The error is relating to menus you may or may not have set up on your site. Do you have a menu named "Features"? If so, have you configured the pane yet to either show or not show that menu? It's fine either way, I just need to know what configuration you have that generates the error so that we can fix it :)

eckersley’s picture

Greetings. I too have just encountered this, having just installed Total Control. Total Control generated about 30 errors related to Skinr, which I then removed, bringing the number down to 2 problems related to menus. I removed a custom menu I had set up, and that got me down to only one:

Notice: Undefined index: features in total_control_menus_content_type_render() (line 52 of /Users/XYZ/Sites/xyz/sites/all/modules/total_control/plugins/content_types/menus.inc).

I disabled the Features module and made sure there was no occurrence of it in my menos, but the error still comes up. I have been clearing the caches.

Would love to use Total Control but this would disqualify it.

Any help would be greatly appreciated.

eckersley’s picture

A quick postscript to my note directly above: I noticed that Features had in fact created a menu item that survived the removal of the module. Once I got rid of that, the error went with it too. However, as soon I created a new custom menu, called Reporters, the problem returned, now for that menu item. Is there a way to create custom menus that are compatible with Total Control?

Notice: Undefined index: menu-reporters in total_control_menus_content_type_render() (line 52 of /Users/XYZ/Sites/xyz/sites/all/modules/total_control/plugins/content_types/menus.inc).

eckersley’s picture

Title: Undefined index: features » Undefined index:
Status: Postponed (maintainer needs more info) » Needs work

The good news is I found a workaround to get rid of the error message by editing the Total Control Administer Menus table:
Click on the top right link of the main dashboard page to Edit Panel and then click Configure on the Admin – Menus table. Click Finish and this seems to define our undefined index!

kingfisher64’s picture

I get the same notice and I have features enabled with no links in the features menu.

Notice: Undefined index: features in total_control_menus_content_type_render() (line 52 of C:\wamp\www\websites\development\sandbox\sites\all\modules\total_control\plugins\content_types\menus.inc).

jenlampton’s picture

Title: Undefined index: » Notice: Undefined index: features
Status: Needs work » Active

Updating title, and setting status to active since there's no patch here yet.

jenlampton’s picture

Status: Active » Needs review
StatusFileSize
new1.27 KB

And here's a patch - please test and let me know if this solves the problem for you :)

kingfisher64’s picture

patch works great jen, thank you.

just to clarify the issue, in plugins > content types > menus.inc the #7 patch removes the

(line 52 of /home/admin/public_html/amg.emc2innovation.com/sites/all/modules/total_control/plugins/content_types/menus.inc).

rellimevad’s picture

Nice - works here too. Drupal 7.12, Total Control 2.3-beta1.

Thanks for the patch (and for the great module).

sebyoga’s picture

This is a nice Module and Nice Patch :)

Think you for you review.

Drupal : 7.12

Best regards,

Sébastien

jenlampton’s picture

Status: Needs review » Reviewed & tested by the community

Looks like you meant to update the status, thanks for the reviews guys!

jenlampton’s picture

committed to dev.

jenlampton’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

emcniece’s picture

After 4 months I return, only to find a patch! Applies beautifully... you guys ROCK. Great work!