Call to undefined drupal_get_path_alias() when logging out
Benjamin Melançon - November 19, 2007 - 10:45
| Project: | Trace |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
| Issue tags: | drupal_get_path_alias |
Jump to:
Description
Fatal error: Call to undefined function drupal_get_path_alias() in /var/www/d53/sites/all/modules/trace/trace.module on line 153

#1
OK, this is extremely weird. The function in question is perfectly valid: http://api.drupal.org/api/function/drupal_get_path_alias/5
And I get this error if I go to http://dev.wsf2008.net/ as an anonymous user but not when logged in (as user 1 anyway).
But I do not get the error if I go to http://dev.wsf2008.net/home (which is the same page).
Contemporaneous weirdness: I also got an undefined error on "trace_backtrace()" that I put into cache.inc, until I removed it, although it had been working fine minutes previously.
Insights?
#2
Moving this back to a bug.
Turning off error tracing -- it was set to "Errors (E_RECOVERABLE_ERROR, E_USER_ERROR)
Warnings (E_WARNING, E_USER_WARNING)" -- resolved the problem though.
Our site has locale enabled, i18n installed, as possible complicators.
#3
I don't think I ever managed to reproduce this. A fix (and more maintainers) to the 5.x branch are certainly welcome, though.
(A similar issue was mentioned in #141328: Drupal 5.x branch.)