[TYPO3-shop] tt_products and single-tree multilanguage problems

jogvan jo at atlanticvideo.dl
Sat Feb 9 17:39:21 CET 2008


Hi List

I am setting up at single-tree multilanguage site, and I have problems with 
tt_products in my 'non-default' language.

I use tt_product for products presentation only (no basked, payment etc. - 
only list and single view).
Everything works fine in my default language, but when I select 'English' 
(my second language) no products are shown in FE and I get this error at the 
top of my page:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result 
resource in /var/lib/typo3/typo3_src-4.1.3/t3lib/class.t3lib_db.php on line 
810

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result 
resource in /var/lib/typo3/typo3_src-4.1.3/t3lib/class.t3lib_db.php on line 
796

Warning: Cannot modify header information - headers already sent by (output 
started at /var/lib/typo3/typo3_src-4.1.3/t3lib/class.t3lib_db.php:810) in 
/var/lib/typo3/typo3_src-4.1.3/typo3/sysext/cms/tslib/class.tslib_fe.php on 
line 2907

----

I have this in my TS template:

TS constant:
plugin.tt_products.file.templateFile = fileadmin/templates/res/ 
produkter.html
plugin.tt_products.maxW_popup = 800
plugin.tt_products.maxW_single = 150
plugin.tt_products.clickEnlarge_list = 0
plugin.tt_products.color1 = #7885A3
plugin.tt_products.maxW_list = 100
plugin.tt_products.maxH_list = 100

 TS setup:

config {
  sys_language_mode = content_fallback
  sys_language_overlay = hideNonTranslated
  sys_language_uid = 0
  linkVars = L
  language = fo
  locale_all = fo_FO
  locale = fo_FO
  htmlTag_langKey = fo
  language_alt = fo
}


// English language config
[globalVar = GP:L = 4]
    config.sys_language_uid = 4
    config.language = en
    config.htmlTag_langKey = en
    config.locale_all = en_EN
[global]


plugin.tt_products {
  alwaysInStock = 1
  separateImage = 1
  language = noTranslation
  pid_list = 88,94,95
}

-----


I use this page structure on my site:

xxx
|
|---|page 1
    |
    |-----SysFolder containing products for page 1
    |
    | page 2
    |
    |-----SysFolder containing products for page 2
    |
    | page 3
    |
    |-----SysFolder containing products for page 3


On page 1 - 3 I have inserted plugin: tt_products and a localizations in 
English also containing tt_product. Both plugins (default language and 
localization of the page) have the same Startingpoint - the SysFolder inside 
the page.

In the SysFolders I have all the Products records and 'Products (alternative 
language)', but the 'alternative language' don't show up in FE - I only get 
the long error message.


What am I missing / doing wrong ?


Thanks in advance
Jogvan Olsen


---------
I am using:
Typo3 - ver. 4.1.3
TemplaVoila 1.3.3
Tt_products 2.5.4
fh_library 0.0.19
table 0.1.9
sr_language_menu  1.2.4








More information about the TYPO3-project-tt-products mailing list