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?

Comments

ctrnz’s picture

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.

Freso’s picture

Component: Miscellaneous » Code
Category: support » bug

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?

Freso’s picture

drewish’s picture

drewish’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.3 KB

here's a test to warn you if you don't have any translatable node types.

drewish’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Needs review » Fixed
StatusFileSize
new1.38 KB

committed that to DRUPAL-6--1 and this version to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.