Call to undefined function trace_hook() (2)
mcload - February 8, 2009 - 02:24
| Project: | Trace |
| Version: | 6.x-1.0-alpha2 |
| Component: | Tracing - Hook invocations |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Arto |
| Status: | closed |
| Issue tags: | trace_hook |
Jump to:
Description
When I try to view an unexisting page address with / at the end (like www.mysite.com/drupal/nonexistingpage/ ), Trace is crashing and giving the error message "Fatal error: Call to undefined function trace_hook() in C:\Project\drupal\sites\all\modules\trace\trace.module on line 124". It should give a 404 error. There is no problem, when the address does not have / at the end (like www.mysite.com/drupal/nonexistingpage ). Page gives 404 error as expected.

#1
Not sure what was causing this, but the recent 6.x-1.0 release should fix it by always having that function available in all contexts where tracing could take place. (See also the duplicate #375063: Call to undefined function trace_hook().)
#2
#3
Automatically closed -- issue fixed for 2 weeks with no activity.