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

ctrnz - August 21, 2008 - 14:40

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

Freso - August 24, 2008 - 08:29
Component:Miscellaneous» Code
Category:support request» bug report

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

Freso - August 24, 2008 - 08:29

#4

drewish - September 11, 2008 - 23:28

#5

drewish - September 11, 2008 - 23:43
Version:6.x-1.1» 6.x-1.x-dev
Status:active» patch (code needs review)

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

AttachmentSize
translation_overview_280060.patch1.3 KB

#6

drewish - September 11, 2008 - 23:49
Version:6.x-1.x-dev» 6.x-2.x-dev
Status:patch (code needs review)» fixed

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

AttachmentSize
translation_overview_280060.patch1.38 KB

#7

Anonymous (not verified) - September 25, 2008 - 23:52
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.