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

rogical’s picture

Status: Active » Needs review
StatusFileSize
new572 bytes
rogical’s picture

Version: 7.x-1.0-beta4 » 7.x-1.x-dev
basvredeling’s picture

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:

if (!isset($called)) {
    $callstack = defined('DEBUG_BACKTRACE_IGNORE_ARGS') ? debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) : debug_backtrace(FALSE);
}
a.ross’s picture

Problem caused by features integration (again). See #1289302: Features Integration

a.ross’s picture

The patch in #1 isn't correct either, though it may prevent the notice.

johnpitcairn’s picture

Aargh. Patch at #5 works for me.

infines’s picture

Works

basvredeling’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm the patch from #5 works.

geraldito’s picture

Also confirm that patch from #5 works.

microniko’s picture

Patch from #5 works also for me !
Thks !!

a.ross’s picture

You're welcome.

I just hope this gets committed soon. This has taken long enough already for something so simple.

a.ross’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.04 KB

Had an idea to prevent the awkward debug_backtrace() call altogether. That's easy at least when the features module isn't installed.

Patch

a.ross’s picture

Status: Needs review » Fixed

Committed to 7.x-1.x

basvredeling’s picture

Thanks for committing. I like your #12 implementation better than previous patches.

daganray’s picture

How do I apply this patch? Never mind, my php editor (Aptana Studio) did the job.

Status: Fixed » Closed (fixed)

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