Closed (fixed)
Project:
Administration menu
Version:
7.x-3.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2011 at 09:00 UTC
Updated:
9 Mar 2012 at 14:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
realityloop commentedI'm experiencing this also
Comment #2
Scatterspell commentedI get this whenever I save any kind of configuration change.
Comment #3
Anonymous (not verified) commentedHi -
I'm seeing this warning on the Status Report page about 20 times in a error/warning window.
Frequency - every time I run:
- Tasks->Flush all caches
- Tasks->Run Cron
- Save changes to a View (Calendar)
This is the behavior I'm seeing for now. Will update if more information is available.
Thanks!
Comment #4
Anonymous (not verified) commentedsubscribing. anyone found a solution to this.?
Comment #5
AlternateRoute commentedsubscribing. it's a PITA
Comment #6
jonathanhuot commentedsubscribing
Comment #7
rdmunoz commentedI got the same: arning: Invalid argument supplied for foreach() in admin_menu_merge_tree() (line 210 of /home/content/67/3783067/html/refuge/sites/all/modules/admin_menu/admin_menu.inc).
after logging in as administrator. I also get the following from admin_menu/admin_menu.inc when I try to go to user preferences.
Fatal error: Unsupported operand types in /home/content/67/3783067/html/refuge/modules/user/user.admin.inc on line 696
This prevents me from going into the user preferences and this time its a site issue that will prevent me from showing content. This is a normal priority? I'm surprised no one else has brought this up?
Help?
Comment #8
stompersly commentedThis is painful, just hoping it will get assigned to someone. It happens so often when logged in as an Administrator. For example:
Cron ran successfully.
Error message
Warning: Invalid argument supplied for foreach() in admin_menu_merge_tree() (line 210 of drupal/sites/all/modules/admin_menu/admin_menu.inc).
I am on Administration menu 7.x-3.0-rc1, with Drupal core 7.8
As a work around I went to admin/config/development/logging and turned off all warnings and errors.
Comment #9
amcc commentedim getting the same thing - any update on this
Comment #10
amcc commentedto clarify what i've done to get this:
created a new menu under administration called "add content" and placed links to add different content types there rather than have them in the default place. This was done as these links are missing in the d7 version (they were helpfully there in the d6 version)
This error message started appearing after adding a new content type recently (though they didn't appear previously when adding a new content type). It will reappear when clearing the cache and sometimes when logging back in after a time.
In case anyone else is having this problem please post if you have a similar set of modules to me as this may help narrow down a conflict somewhere:
using: admin_menu-7.x-3.0-rc1.tar.gz
Address Field 7.x-1.0-beta2
Automatic Nodetitles 7.x-1.0
Backup and Migrate 7.x-2.2
Calendar 7.x-3.x-dev (2011-Nov-19)
Chaos tool suite (ctools) 7.x-1.x-dev (2011-Dec-10)
Commerce (Product Display Manager) 7.x-1.0-alpha3
Commerce Bulk Product Creation 7.x-1.0-rc4
Commerce Email 7.x-1.x-dev (2011-Dec-18)
Commerce Invoice 7.x-1.x-dev (2011-Dec-17)
Commerce PayPal 7.x-1.x-dev (2011-Nov-11)
Commerce Product Attributes 7.x-1.0-beta3
Commerce Repair 7.x-1.x-dev (2011-Sep-09)
Commerce VBO Views 7.x-1.1
Custom breadcrumbs 7.x-1.0-alpha1
Date 7.x-2.x-dev (2011-Dec-21)
Drupal Commerce 7.x-1.1
Entity API 7.x-1.0-rc1
Field collection 7.x-1.x-dev (2011-Dec-16)
IMCE 7.x-1.5
IMCE Wysiwyg bridge 7.x-1.0
Mollom 7.x-1.1
Panels 7.x-3.x-dev (2011-Dec-07)
Pathauto 7.x-1.0
References 7.x-2.x-dev (2011-Dec-17)
Rules 7.x-2.0
String Overrides 7.x-1.8
Token 7.x-1.0-beta7
Views 7.x-3.0
Views Bulk Operations (VBO) 7.x-3.0-beta3
Wysiwyg 7.x-2.1
Comment #11
stompersly commentedEvery time cron would run as mentioned in #8 I would get the following error in Drupal:
Warning: Invalid argument supplied for foreach() in admin_menu_merge_tree() (line 210...
As a work around I went to admin/config/development/logging and turned off all warnings and errors, but it was still filling up my logs. So I researched this php error and found a fix. I edited the file admin_menu.inc and changed from this:
to this
The extra check makes sure there is an array before doing the foreach() call.
It works great now. If I knew how to turn this into a patch I would, if someone else does it would be great!
Comment #12
omega.OFN commentedThank-you stompersly, I tried to ignore the messages, but just kept annoying me. The code change worked excellent!
Comment #13
queenvictoria commentedHi @stompersly. I've created the patch from your work which seems to be working for me too.
You can read about how to create a patch here.
http://drupal.org/node/707484
You can read more about getting the admin_menu source via git here.
http://drupal.org/project/admin_menu/git-instructions
I patched against the D7 version (7.x) which is probably a Bad Idea. So my git clone command was
git clone --branch 7.x-3.x http://git.drupal.org/project/admin_menu.gitthen I made your changes and
git diff > admin_menu-invalid-arg-admin_menu_merge_tree-1030856-13.patchComment #15
sunCommitted and pushed to 7.x-3.x and 8.x-3.x.
Comment #16
queenvictoria commentedAny ideas what I did wrong that caused the patch to fail?
Comment #17
sunThat particular error was a testbot failure, not related to your patch.
But that said, the admin_menu tests are not functional and known to be broken currently, so at least for this time, don't worry :)