Download & Extend

undefined constant DEBUG_BACKTRACE_IGNORE_ARGS

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

Status:active» needs review

Please review, btw #1413800: Undefined context notices when using PHP < 5.3.6

AttachmentSize
1899696.patch 572 bytes

#2

Version:7.x-1.0-beta4» 7.x-1.x-dev

#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:

<?php
if (!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.

AttachmentSize
menu_token-undefined_constant_notice-1899696-5.patch 734 bytes

#6

Aargh. Patch at #5 works for me.

#7

Status:needs review» reviewed & tested by the community

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

Status:reviewed & tested by the community» needs review

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

Patch

AttachmentSize
menu_token-undefined_constant_notice-1899696-12.patch 1.04 KB

#13

Status:needs review» fixed

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

Status:fixed» closed (fixed)

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

nobody click here