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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JacobSingh’s picture

Status: Active » Needs review
FileSize
701 bytes

Does this fix it?

bjalford’s picture

Status: Needs review » Needs work
FileSize
1 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.

JacobSingh’s picture

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

bjalford’s picture

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).

radoeka’s picture

Subscribe (I encounter the same problem, using beta2)

AgnesCB’s picture

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...

kevinsullivan’s picture

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."

kevinsullivan’s picture

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."

AgnesCB’s picture

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...).

Aonoa’s picture

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.

peronas’s picture

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

dgastudio’s picture

+1

Aonoa’s picture

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.

Aonoa’s picture

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. :-)

peronas’s picture

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.

Aonoa’s picture

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

Aonoa’s picture

Priority: Major » Normal
Scott J’s picture

Yes! Thank you.

lsolesen’s picture

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?

Mile23’s picture

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).

Moloc’s picture

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.

Moloc’s picture

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.