1) D7 beta 3 with:
- Styles 1-dev
- media beta2
- media gallery beta1
- wysiwyg 2-dev
- multiform 1-dev
- entity beta 2
- TinyMCE

Steps:

1) Enable Styles and file styles - no issues
2) Enable Entity Metadata, Entity CRUD API and Multiple forms - no issues
3) Enable wysiwyg - no issues
4) Enable Media - no issues
5) Configuration wysiwyg profiles
6) Enable TinyMCE for full html
7) Enable Media gallery module results in a load of these messages:
Notice: Undefined index: custom settings in field_view_mode_settings() (line 434 of /var/aegir/media8/modules/field/field.module).

Comments

Status:Active» Needs review
StatusFileSize
new701 bytes

Does this fix it?

Status:Needs review» Needs work
StatusFileSize
new1 KB

Still getting the same errors when enabling the media gallery module. I've attached my drush make file I'm using to test this so anyone else can test the same setup.

Hmm... can you try with the latest head (and not the patch)?

Not getting error when enabling module using HEAD and no patch but when I go to add content page it shows the following multiple times but disappears after several refreshes....

# Notice: Undefined index: custom settings in field_view_mode_settings() (line 434 of /var/aegir/media24/modules/field/field.module).
# Notice: Undefined index: media_gallery_thumbnail in field_info_max_weight() (line 796 of /var/aegir/media24/modules/field/field.info.inc).

Subscribe (I encounter the same problem, using beta2)

StatusFileSize
new31.98 KB

Getting the same errors when I turn on Media Gallery.

Installed and turned on:
Drupal 7 beta3
Entity 7 beta2
Styles 7 alpha4
Media 7 dev (trying to work around http://drupal.org/node/976598, with limited success)
Mutliple Forms beta1
Media Gallery beta2

When I turn on media gallery I get:

    * Notice: Undefined index: default_widget in _field_info_prepare_instance_widget() (line 374 of xxx/modules/field/field.info.inc).
    * Notice: Undefined index: default_formatter in _field_info_prepare_instance_display() (line 342 of xxx/modules/field/field.info.inc).
    * Notice: Undefined index: default_formatter in _field_info_prepare_instance_display() (line 342 of xxx/modules/field/field.info.inc).
    * Notice: Undefined index: default_widget in _field_info_prepare_instance_widget() (line 374 of xxx/modules/field/field.info.inc).
    * Notice: Undefined index: default_widget in _field_info_prepare_instance_widget() (line 382 of xxx/modules/field/field.info.inc).
    * Notice: Undefined index: module in _field_info_prepare_instance_widget() (line 385 of xxx/modules/field/field.info.inc).
    * Notice: Undefined index: default_formatter in _field_info_prepare_instance_display() (line 342 of xxx/modules/field/field.info.inc).

in many instances and combinations (full listing attached).

It ends on:

   * PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_data_media_gallery_expose_block0.media_gallery_expose_bloc' in 'where clause': SELECT field_data_media_gallery_expose_block0.entity_id AS entity_id, field_data_media_gallery_expose_block0.revision_id AS revision_id, field_data_media_gallery_expose_block0.bundle AS bundle, fcet.type AS entity_type FROM {field_data_media_gallery_expose_block} field_data_media_gallery_expose_block0 INNER JOIN {field_config_entity_type} fcet ON fcet.etid = field_data_media_gallery_expose_block0.etid WHERE (field_data_media_gallery_expose_block0.media_gallery_expose_block_value = :db_condition_placeholder_0) AND (field_data_media_gallery_expose_block0.deleted = :db_condition_placeholder_1) AND (fcet.type = :db_condition_placeholder_2) AND (field_data_media_gallery_expose_block0.bundle = :db_condition_placeholder_3) ; Array ( [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => 0 [:db_condition_placeholder_2] => node [:db_condition_placeholder_3] => media_gallery ) in field_sql_storage_field_storage_query() (line 600 of xxx/modules/field/modules/field_sql_storage/field_sql_storage.module).

The last part seems gallery specific. But I do see similar errors (default widgets) when I try to configure settings for the Media module though, so something might be broken further upstream. And then again, maybe not, since uninstalling Gallery gets rid of those issues...

I confirm the same errors. I went ahead and left the module enabled to see what would happen. I can add media galleries without errors, and I appear to be able to add images to these galleries, however the images do not display. Some record of them is being made, though, because if I try to add them again, I get an error saying, essentially, "duplicate."

I confirm the same errors. I went ahead and left the module enabled to see what would happen. I can add media galleries without errors, and I appear to be able to add images to these galleries, however the images do not display. Some record of them is being made, though, because if I try to add them again, I get an error saying, essentially, "duplicate."

I was able to create galleries and add images, and things mostly display correctly. I think (I do see images).

But a smaller numbers of the above warnings pop up again and again every time I hit a page that is gallery/image related (modules admin, changing image display settings...).

Version:7.x-1.0-beta1» 7.x-1.0-beta2

I am having the same problem on a fresh D7 RC1 site and latest head.

Subscribing, having the same issue with a fresh install of D7 RC1 and latest from head

+1

It seems as long as this error/notice persists, I am unable to get galleries to display any images. Seeing as this is the only error my D7 logs. I can add images which will appear in the "library", but the gallery remains empty however much I attempt to add media.

Priority:Normal» Major

Just adding that the "Undefined index: custom settings in field_view_mode_settings() (line 434 of /var/www/example.com/modules/field/field.module)" error still exists after upgrading D7 to RC2.

Please fix? This module is not working for me currently. :-)

StatusFileSize
new2.38 KB

So I was able to get this working for me, I've created a patch of my changes against the current head, but it needs further verification outside of just me. A portion of the .install file has changed so uninstall the module if you currently have it installed then apply the patch to a copy of head and install.

The attached patch resolved my undefined index issues resulting in both field_view_mode_settings() and field_info_max_weight(). However, I was still having issues with adding media not actually being added to the gallery. This was a result of the ajax calls failing with 404s, due to the fact that I didn't have clean URLs enabled.
Once I enabled clean URLs adding/editing/removing media is working. If you are having issues with the media not being added to the gallery even though it successfully uploads check your clean URL settings.

The only thing I'm still having an issue with is images appearing in the lightboxes, the lightbox overlay comes up but the image isn't being displayed, but this is another issue for another thread.

Aah, excellent! Thank you ever so much. The patch fixes the undefined index issue as far as I can tell at the moment, and clean urls was indeed the culprit for media not being added to the gallery. I will do more testing.

Best regards,
Ao

Priority:Major» Normal

Yes! Thank you.

Status:Needs work» Needs review

What is the status of this patch. @Aonoa says it fixes the issue. Has it been committed? Does beta7 fix the issue?

I'm interested in this as well. I keep getting:

Notice: Undefined index: #theme in theme_media_gallery_media_item_lightbox() (line 179 of /var/www/drupal/sites/all/modules/media_gallery/media_gallery.theme.inc).

Some lines from the patch seem to be fixed/commited in beta7. As there are no new comments (the oldest one is from 2010), i assume, that this issue is no longer valid.
Mile23: please open a new issue for your problem, as your issue does not seem to be related to this one.

Status:Needs review» Fixed

There are the same error reportings in the issue queue. It seems, that the issue got fixed with beta3/5. Therefore i set the status to fixed. If you still get this issue, feel free to reopen.

Status:Fixed» Closed (fixed)

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