This error is thrown in D 6.4 when using "show fields" in creating a new content type.

warning: in_array() [function.in-array]: Wrong datatype for second argument in /kunden/96674_30449/webseiten/drupal/sites/all/modules/wymeditor/wymeditor.module on line 157.

Comments

Anonymous’s picture

Hi !

I did not succeed to reproduce this warning.
I tested with the 6.x-2.x-dev send on september 24th 2008. (Uggh ! Seems that version number have not been changed !)

So could you please update your WYMeditor module and then give another try. And if it fails again please add a comment with an accurate operating mode in order to help you !

Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)
zoo33’s picture

Status: Postponed (maintainer needs more info) » Active

I see this too. The problem is that apperently $form[$key]['format']['#element_validate'] isn't always an array. The corresponding line in _wymeditor_input_format_alter() could be changed into:

<?php
        if (!empty($form[$key]['format']['#element_validate']['filter_form_validate'])) {
?>
zoo33’s picture

Oh, crap. That's obviously wrong. Try this:

<?php 
        if (is_array($form[$key]['format']['#element_validate']) && in_array('filter_form_validate', $form[$key]['format']['#element_validate'])) {
?>
fall_0ut’s picture

Status: Active » Fixed

Thanks Zoo33 for your code.

This line is corrected, please verify the development version.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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