Fatal error: Call to undefined function drupal_get_path_alias() in /var/www/d53/sites/all/modules/trace/trace.module on line 153

Comments

mlncn’s picture

Category: bug » support

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?

mlncn’s picture

Category: support » bug

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.

Arto’s picture

Title: call to undefined drupal_get_path_alias by trace when logging out » Call to undefined drupal_get_path_alias() when logging out
Status: Active » Closed (won't fix)
Issue tags: +drupal_get_path_alias

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.)