Posted by rogical on January 26, 2013 at 3:39pm
13 followers
| Project: | Menu token |
| Version: | 7.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in _menu_token_is_called_from_features() (line 186 of /var/www/default/internships/dev/sites/all/modules/menu_token/menu_token.module).
Comments
#1
Please review, btw #1413800: Undefined context notices when using PHP < 5.3.6
#2
#3
Works, is a simple patch. But does this mean the links are altered even if they're called from menu_links_features_export_render?
perhaps something like this would be better:
<?phpif (!isset($called)) {
$callstack = defined('DEBUG_BACKTRACE_IGNORE_ARGS') ? debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) : debug_backtrace(FALSE);
}
?>
#4
Problem caused by features integration (again). See #1289302: Features Integration
#5
The patch in #1 isn't correct either, though it may prevent the notice.
#6
Aargh. Patch at #5 works for me.
#7
Works
#8
I can confirm the patch from #5 works.
#9
Also confirm that patch from #5 works.
#10
Patch from #5 works also for me !
Thks !!
#11
You're welcome.
I just hope this gets committed soon. This has taken long enough already for something so simple.
#12
Had an idea to prevent the awkward debug_backtrace() call altogether. That's easy at least when the features module isn't installed.
Patch
#13
Committed to 7.x-1.x
#14
Thanks for committing. I like your #12 implementation better than previous patches.
#15
How do I apply this patch?Never mind, my php editor (Aptana Studio) did the job.#16
Automatically closed -- issue fixed for 2 weeks with no activity.