Download & Extend

fatal error with undefined tt function

Project:Taxonomy Block
Version:master
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

PHP Fatal error: Call to undefined function tt() in /Blah/Blah/Blah/Blah/sites/all/modules/taxonomy_block/taxonomy_block.module on line 87

Also using:
admin_menu
backup_migrate
cck
contemplate
filefield
galleria
gmaplocation
google_analytics
imageapi
imagecache
imagefield
content form jammer
taxonomy_manager
token
ubercart
uc_taxes_floridasurtax
views
views_showcase

Have fun!

Comments

#1

Currently, You need to install i18n module since Taxonomy Block now supports multi-languages feature.

I will add a checking to detect if you use i18n or not, patch will apply to next version.
Thanks for bug report.

#2

Version:6.x-1.0-alpha5» 6.x-1.0-beta1

6.x-1.0-BETA1: Fixed: check if i18n module available

Now, Taxonomy Block can run with or w/o i18n module, but if you need Taxonomy Block translate its term then you have to install i18n module.
Enjoy!

#3

Status:active» closed (fixed)

Fixed.

#4

Version:6.x-1.0-beta1» 6.x-1.0-beta4
Status:closed (fixed)» active

Fatal error: Call to undefined function tt() in C:\xampp\htdocs\drupal\sites\all\modules\taxonomy_block\taxonomy_block.module on line 99

I have this error with 6.x-1.0-beta 4 version. My case, I have enabled the module and enabled one of block in a region in a page before i18n module. After I installed i18n module, the page can't be loaded and I get this error.

Would somebody help to figure it out? Thanks!

#5

Priority:critical» normal

The case was that I had just enabled Internationalization module without enabling String translation moudle within the package of Internationalization module.
After I enabled both two moudles, it works again.

I have just a rough scan of codes for i18n module, I think the checking should check module_exists("i18nstrings") than checking module_exists("i18n") since tt() function was defined in there. Am I right?

#6

Title:fatal error» fatal error with undefined tt function
Version:6.x-1.0-beta4» master
Status:active» needs review

Created a patch to check the right module and replace tt with i18nstrings, because tt is obsolete.

regards pebosi

__________
Bug found playing bingo

AttachmentSize
taxonomy_block-501140.patch 1.89 KB
nobody click here