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.
| Comment | File | Size | Author |
|---|---|---|---|
| memcache.patch | 404 bytes | chipzz |
Comments
Comment #2
robertdouglass commentedThis looks like a better solution to #852794: Call to undefined function t() in ....../dmemcache.inc on line 236
Comment #3
catchI think it's OK to just not translate this.