When viewing the admin/build/views page, image_attach's form_alter function generates two PHP notices because the $form array contains no #value element in 'type', only #default_value:

  • notice: Undefined index: #value in /.../image_attach.module on line 172.
  • notice: Undefined index: #value in /.../image_attach.module on line 173.
    [type] => Array
        (
            [#type] => select
            [#title] => Storage
            [#options] => Array
                (
                    [all] => <All>
                    [Normal] => Normal
                    [Default] => Default
                    [Overridden] => Overridden
                )

            [#default_value] => all
        )

Comments

cannedbrain’s picture

Version: 6.x-1.x-dev » 6.x-1.0-alpha3

I'm using Image 6.x-1.0-alpha3 on drupal 6.4. Image attach quit working after I uninstalled & reinstalled Image. phpmyadmin reported there was "no index defined" in image & image_attach tables. I could recreate image table as suggested here (parent article) but still clueless on how to fix image_attach.

cannedbrain’s picture

Well, based on the information I gathered from googling, I went ahead and created 2 indexes in image_attach table, PRIMARYKEY that contains 'nid' field and INDEX containing 'iid' field. So far so good, but I have no idea how to write a patch for it.

sun’s picture

Status: Active » Closed (won't fix)

This does not seem to be valid anymore.