notice: Undefined property: stdClass::$menu
webchick - May 8, 2008 - 17:12
| Project: | Token |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
If you add 'token' to the list of modules to be enabled in hook_profile_modules(), you get the following on install:
notice: Undefined property: stdClass::$menu in /Applications/MAMP/htdocs/6x2/sites/all/modules/token/token_node.inc on line 55.

#1
Some other module must be calling node_token_values('node') at install time - is your profile creating nodes (perhaps with pathauto enabled)? http://drupal.org/node/67921 warns against enabling modules in profile_modules() if they depend on other modules actually being active. The referenced issues http://drupal.org/node/164458 and http://drupal.org/node/176003 suggest it should be fixed in Drupal 6, but this sounds like a manifestation of that issue.
I would say that most likely either:
1. This is an unfixed scenario of the core install bug, or
2. The issue is with whatever module (or install code) is calling (or triggering) the call to node_token_values().
Can you identify how node_token_values() is getting called?
#2
9 weeks with no response - closing.