Closed (fixed)
Project:
Media Gallery
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2010 at 16:18 UTC
Updated:
26 Jun 2012 at 22:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
JacobSingh commentedDoes this fix it?
Comment #2
bjalford commentedStill 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.
Comment #3
JacobSingh commentedHmm... can you try with the latest head (and not the patch)?
Comment #4
bjalford commentedNot 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).
Comment #5
radoeka commentedSubscribe (I encounter the same problem, using beta2)
Comment #6
AgnesCB commentedGetting 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:
in many instances and combinations (full listing attached).
It ends on:
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...
Comment #7
kevinsullivan commentedI 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."
Comment #8
kevinsullivan commentedI 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."
Comment #9
AgnesCB commentedI 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...).
Comment #10
Aonoa commentedI am having the same problem on a fresh D7 RC1 site and latest head.
Comment #11
peronas commentedSubscribing, having the same issue with a fresh install of D7 RC1 and latest from head
Comment #12
dgastudio commented+1
Comment #13
Aonoa commentedIt 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.
Comment #14
Aonoa commentedJust 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. :-)
Comment #15
peronas commentedSo 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.
Comment #16
Aonoa commentedAah, 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
Comment #17
Aonoa commentedComment #18
Scott J commentedYes! Thank you.
Comment #19
lsolesen commentedWhat is the status of this patch. @Aonoa says it fixes the issue. Has it been committed? Does beta7 fix the issue?
Comment #20
mile23I'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).Comment #21
moloc commentedSome 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.
Comment #22
moloc commentedThere 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.