Warnings
10o - July 8, 2008 - 21:04
| Project: | Translation Overview |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
I cannot get this module to work. The table is empty and the following warnings display:
* warning: array_fill() [function.array-fill]: Number of elements must be positive in .../includes/database.inc on line 235.
* warning: implode() [function.implode]: Invalid arguments passed in .../includes/database.inc on line 235.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND ((n.nid = n.tnid OR n.tnid = 0) AND n.language <> '' AND n.language IS NOT' at line 2 query: SELECT COUNT(*) FROM if02_node n LEFT JOIN if02_node nt ON n.nid = nt.tnid AND nt.language = 'nl' WHERE n.type IN () AND ((n.nid = n.tnid OR n.tnid = 0) AND n.language <> '' AND n.language IS NOT NULL) in .../modules/translation_overview/translation_overview.module on line 166.Any ideas what's wrong?

#1
Do You have any of content types enabled for translations?
Check those settings:
At least two languages enabled
Under Content type workflow - Multilanguage support "Enabled, with translation" checked.
#2
In #280060: Warnings it was confirmed to be the missing multilanguage support for a content type... so perhaps instead of spitting out all those warning, make a
drupal_set_message()(possibly 'warning' or 'error') reminding them of this?#3
#283863: Warnings prevent me to use this module I mean.
#4
marked #300269: There is an error after install and enable Tranlator overview modules as a duplicate
#5
here's a test to warn you if you don't have any translatable node types.
#6
committed that to DRUPAL-6--1 and this version to HEAD.
#7
Automatically closed -- issue fixed for two weeks with no activity.