After the upgrade to Drupal 6.35 some sites are intermittently experiencing the following error:

Fatal error: Call to undefined function t() in includes/menu.inc on line 1538

There is a Secure Pages post about this here however this is also happening on sites without securepages installed so it's not that.

There seem to be a number of reports of it happening when users try to log in.

Comments

IFL Todd’s picture

Status: Active » Closed (fixed)

Marking this as closed and fixed, per this issue.

gcassie’s picture

Status: Closed (fixed) » Active

#2455675: Errors on some sites after update to drupal 6.35 paths secured by Secure Pages. dealt with a module the site I'm experiencing this on isn't running, so re-opening.

bsenftner’s picture

I am seeing this same issue on a D6.35 site. No Secure Pages module, the entire site is SSL. It seems like a race condition to me, as it is triggered by simply loading the home page. It is not always triggered, maybe 1% to 0.5% of the time.

rooby’s picture

Title: Fatal Error: menu.inc on line 1538 » Fatal Error: Call to undefined function t() in menu.inc on line 1538

I have also seen this on a site that isn't running securepages

rooby’s picture

Issue summary: View changes
gcassie’s picture

Disabling the page cache stopped these errors for us.

David_Rothstein’s picture

So the error on line 1538 occurs in menu_set_active_trail() - can anyone debug what's calling that in the early bootstrap and how that changed in 6.35?

The code added to the early bootstrap in 6.35 basically does:

require_once './includes/menu.inc';
drupal_load('module', 'filter');
....
menu_path_is_external()

But I don't see where either drupal_load() or menu_path_is_external() could call anything not handled by the above, or how menu_set_active_trail() would be reached.

Maybe https://www.drupal.org/drupal-6.35-release-notes should be updated with something about this, if it's possible to figure out exactly what triggers the issue.

rooby’s picture

There was a patch proposed at #2455675-23: Errors on some sites after update to drupal 6.35 paths secured by Secure Pages. that apparently fixes the problem and may give some insight into the issue.

sundevil’s picture

D6.37 w/ Secure Pages 6.x-1.11

Contributing information:
mysite.com (http://myDrupalsite.com) = Fatal Error: line 1538
https://myDrupalsite.com = no error every time

Secure Pages added and user*
Flush all caches
Cleared browser history Chrome, Safari, Firefox, Opera, IE
Works
Cannot recreate error

Looks like a canonical error.

sundevil’s picture

sundevil’s picture

hargobind’s picture

I'm experiencing this error as well on 6.37 without secure_pages. I have the statistics.module enabled which is leading to this error as you can see from the stack trace below.

Fatal error:  Call to undefined function t() in /includes/menu.inc on line 1538
Stack trace:
  1. {main}() /index.php:0
  2. drupal_bootstrap() /index.php:15
  3. _drupal_bootstrap() /includes/bootstrap.inc:1120
  4. bootstrap_invoke_all() /includes/bootstrap.inc:1221
  5. module_invoke() /includes/bootstrap.inc:691
  6. call_user_func_array:{/includes/module.inc:476}() /includes/module.inc:476
  7. statistics_exit() /includes/module.inc:476
  8. drupal_get_title() /modules/statistics/statistics.module:63
  9. menu_get_active_title() /includes/path.inc:190
 10. menu_get_active_trail() /includes/menu.inc:1631
 11. menu_set_active_trail() /includes/menu.inc:1596

I was able to trigger the error by visiting: http://www.example.com/user?destination=node%2F5

I have Normal Caching enabled on my site.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.

apaderno’s picture

Version: 6.35 » 6.x-dev