Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
IFL Todd CreditAttribution: IFL Todd commentedMarking this as closed and fixed, per this issue.
Comment #2
gcassie CreditAttribution: gcassie commented#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.
Comment #3
bsenftner CreditAttribution: bsenftner as a volunteer commentedI 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.
Comment #4
rooby CreditAttribution: rooby commentedI have also seen this on a site that isn't running securepages
Comment #5
rooby CreditAttribution: rooby commentedComment #6
gcassie CreditAttribution: gcassie commentedDisabling the page cache stopped these errors for us.
Comment #7
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commentedSo 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:
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.
Comment #8
rooby CreditAttribution: rooby commentedThere 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.
Comment #9
sundevil CreditAttribution: sundevil commentedD6.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.
Comment #10
sundevil CreditAttribution: sundevil as a volunteer commentedComment #11
sundevil CreditAttribution: sundevil as a volunteer commentedComment #12
hargobindI'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.
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.
Comment #14
apaderno