In my setup, I run cron.php with PHP CLI, on a box seperate from the webservers. Apparently, I forgot to enable the memcache php extension on the box cron.php runs on, and I got the following error:

# sudo -u www-data /usr/local/bin/wf-drupal-cron clint.be
[24-Sep-2010 09:48:53] PHP Fatal error: Call to undefined function t() in /mnt/nfs/sites/clint4/sites/all/modules/memcache/dmemcache.inc on line 236

What it boils down to, is that due to differences in how cron.php and index.php are structured, the common.inc file is not yet included at this point, and it falls over.

Patch attached.

CommentFileSizeAuthor
memcache.patch404 byteschipzz

Comments

robertdouglass’s picture

Status: Active » Needs review
catch’s picture

Status: Needs review » Closed (won't fix)

I think it's OK to just not translate this.