When I enable the Media Gallery module, I get these errors:

# Notice: Undefined index: custom settings in field_view_mode_settings() (line 447 of my_path/modules/field/field.module).
# EntityFieldQueryException: Field storage engine not found. in EntityFieldQuery->queryCallback() (line 1048 of /my_path/includes/entity.inc).

CommentFileSizeAuthor
#51 media_gallery_warnings-1011042-51.patch737 bytesyched
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sgeets’s picture

+1

Branjawn’s picture

+1

Branjawn’s picture

Priority: Normal » Major
Furry Pancake’s picture

Does anyone have any insight to this problem?

drupal a11y’s picture

No but in case that my latest tries to enable the media-gallery with rc4 is killing the site (http://drupal.org/node/1012674) I think this issue is already fixed cause with RC3 some new bugs came up which were fixed with rc4.

Branjawn’s picture

Title: Errors when enabled in Drupal 7-rc3 » Errors when enabled in Drupal 7
Priority: Major » Critical

I am using Drupal 7.0 and it's still broken. Thus, changed the title of this issue to reflect all Drupal 7 releases. Also, moved to critical since D7 is now live and this is a problem that keep users from using Media Gallery.

ascii122’s picture

Just installed drupal 7 and was looking for a gallery system and tried this one. Same errors as above. Just for kicks I powered through and created a gallery but am still getting all kinds of errors including some having to do with pupload

Notice: Undefined index: tmpname in plupload_element_value() (line 113 of mypath/sites/all/modules/plupload/plupload.module).

pager:

Warning: Division by zero in pager_default_initialize() (line 282 of mypath/includes/pager.inc).

Notice: Undefined property: stdClass::$media_gallery_rows in media_gallery_view() (line 279 of mypath/sites/all/modules/media_gallery/media_gallery.module).

and so on.

This looks like *just* what I need for gallery in d7 and will start trying to debug things myself tonight. Hope you guys can sort it out first though.

Thanks

-z

gvc’s picture

After getting the original error as mentioned in the description, I added Entity API module - entity-7.x-1.x-dev, DRUPAL-7--1.

Now getting a Fatal error using Media Gallery in the Media Dev profile.

Below is the Error in Media Dev profile:

Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
FieldException: Attempt to create a field of unknown type list_text. in field_create_field() (line 107 of C:\xampp\htdocs\drupal7\modules\field\field.crud.inc).

JohnnyX’s picture

I can't test media gallery because media doesn't work with Drupal 7.0...
Seems media and media_gallery are very buggy and I have to wait until a usable/ working release is out

dropcube’s picture

Worked for me after applying this patch: #1017450: list_number became list_float

jerrac’s picture

I get the same error as in the OP. Even with that patch applied. Plus something else at the end of the Undefined Index errors.

Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
FieldException: Attempt to create a field of unknown type <em class="placeholder">list_number</em>. in field_create_field() (line 107 of mypath/drupaltest/modules/field/field.crud.inc).

I'm running a brand new install of D7 with just the basics enabled.

When I make a new gallery, the form displays these errors:

Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of mypath/drupaltest/modules/field/field.module).
Notice: Undefined index: media_gallery_columns in media_gallery_form_media_gallery_node_form_alter() (line 860 of mypath/drupaltest/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_rows in media_gallery_form_media_gallery_node_form_alter() (line 860 of mypath/drupaltest/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_image_info_where in media_gallery_form_media_gallery_node_form_alter() (line 860 of mypath/drupaltest/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_allow_download in media_gallery_form_media_gallery_node_form_alter() (line 860 of mypath/drupaltest/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_format in media_gallery_form_media_gallery_node_form_alter() (line 860 of mypath/drupaltest/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_expose_block in media_gallery_form_media_gallery_node_form_alter() (line 883 of mypath/drupaltest/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_columns in media_gallery_form_media_gallery_node_form_alter() (line 883 of mypath/drupaltest/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_rows in media_gallery_form_media_gallery_node_form_alter() (line 883 of mypath/drupaltest/sites/all/modules/media_gallery/media_gallery.module).
sw3b’s picture

#10 work for me ! Still have the error on #11, but at less it finally work.

I also notice when using with locale module theses errors when creating a node Gallery. It's not so bad because after refreshing the page the errors are gone.

Notice: Undefined index: media_gallery_format dans locale_field_node_form_submit() (ligne 405 dans /home/mysite/public_html/sw3bca/modules/locale/locale.module).
Notice: Undefined index: media_gallery_lightbox_extras dans locale_field_node_form_submit() (ligne 405 dans /home/mysite/public_html/sw3bca/modules/locale/locale.module).
Notice: Undefined index: media_gallery_columns dans locale_field_node_form_submit() (ligne 405 dans /home/mysite/public_html/sw3bca/modules/locale/locale.module).
Notice: Undefined index: media_gallery_rows dans locale_field_node_form_submit() (ligne 405 dans /home/mysite/public_html/sw3bca/modules/locale/locale.module).
Notice: Undefined index: media_gallery_image_info_where dans locale_field_node_form_submit() (ligne 405 dans /home/mysite/public_html/sw3bca/modules/locale/locale.module).
Notice: Undefined index: media_gallery_allow_download dans locale_field_node_form_submit() (ligne 405 dans /home/mysite/public_html/sw3bca/modules/locale/locale.module).
Notice: Undefined index: media_gallery_expose_block dans locale_field_node_form_submit() (ligne 405 dans /home/mysite/public_html/sw3bca/modules/locale/locale.module).
Notice: Undefined index: media_gallery_block_columns dans locale_field_node_form_submit() (ligne 405 dans /home/mysite/public_html/sw3bca/modules/locale/locale.module).
Notice: Undefined index: media_gallery_block_rows dans locale_field_node_form_submit() (ligne 405 dans /home/mysite/public_html/sw3bca/modules/locale/locale.module).

ascii122’s picture

http://drupal.org/node/953242

Seems to have fixed the index $i issue in plupload
Undefined variable: i in plupload_element_value()

and post #10 seems to have fixed some of the errors

when trying to add content to the gallery.

Still getting:

Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 198 of /all/modules/media_gallery/media_gallery.module).

* Notice: Trying to get property of non-object in taxonomy_form_term() (line 672 of /modules/taxonomy/taxonomy.admin.inc).
* Notice: Undefined index: field_name in _field_invoke() (line 189 of /modules/field/field.attach.inc).
* Notice: Trying to get property of non-object in taxonomy_form_term() (line 672 of /site/modules/taxonomy/taxonomy.admin.inc).
* Notice: Undefined index: field_name in _field_invoke() (line 189 of /site/modules/field/field.attach.inc).

Note: these go away when I disable media gallery.

I sure hope we can get this figured out. The gallery looks really great. Just building a site for a friend and he needs bigtime image galleries. Saw drupal 7 got released so I thought I'd give it a shot. Might have to go back to 6 and use views gallery or something soon. This was supposed to be a quicky web site for a friend, not a full time job :)

Best of luck & no hard feelings.. I know you guys put in a *lot* of work

-zachary

adam_b’s picture

+1 - I've built a completely new 7.0 build and all is fine until I try to enable media gallery, when I get the errors:
Notice: Undefined index: field_name in _field_invoke() (line 189 of /home/adambro3/public_html/adam-browne/modules/field/field.attach.inc).
and
Notice: Trying to get property of non-object in taxonomy_form_term() (line 672 of /home/adambro3/public_html/adam-browne/modules/taxonomy/taxonomy.admin.inc).

They go away when I disable the media_gallery module. I haven't tried creating a gallery, let alone adding content to it - and I haven't tried the patch in #10.

Dru_id’s picture

+1

drupal a11y’s picture

For me using the D7 v1.0 release with installing the latest dev version via cvs it´s fixed:
http://drupal.org/project/media_gallery/cvs-instructions

Tested it with images and youtube videos and it works great!!!

To see it live in action check out http://www.drupal-rocks.com in about 1-2 days.

ascii122’s picture

#16 thanks a lot

I ended up having to start a fresh d7 install and it worked out. Updating the module without reinstalling everything didn't work (still got the errors).

But after a completely fresh install everything looks peachy

Cheers

-z

ascii122’s picture

Hmm. Perhaps not. The HEAD version seems to work, images upload etc but no thumbnails are generated. The original files can be downloaded however.

also:
sites/all/modules/media_gallery/media_gallery.js not found among other things.

At one point those files were in the cvs
http://drupal.org/cvs?file=/modules/media/modules/media_gallery/media_ga...

It *almost* works ;)

#16 are you generating thumbs?

All I get are placeholders for any images beyond original. Not sure if it's a permissions thing, everything seems right. Gonna dig some more or move to node gallery and d6

http://berniesbronze.com/

biggordonlips’s picture

I'm new to CVS, I tried using TortoiseCVS and I can't tell which release I downloaded. Can someone walk me through exactly how to try this? I wonder if using the development release of drupal itself would work with the release version of Media Gallery

ascii122’s picture

#19 I'm not familiar with toirtoisecvs but here is a tar.gz of the HEAD cvs that semi-works on my site.

http://www.berniesbronze.com/media_gallery.tar.gz

Still not making thumbs of images though so .. ymmv

biggordonlips’s picture

I'm very close to switching to wordpress, thanks for the link

biggordonlips’s picture

now I have that problem

oriol_e9g’s picture

Same problem: Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of ...\modules\field\field.module).

oriol_e9g’s picture

Use Drupal 6.20, lot of drupal 7 modules are not ready.

drupal a11y’s picture

Beta2 is outdated and not useable with the D7-Final-Release I guess.
Please try the latest versions from cvs.

Or as alternative the setup that I run currently with the D7 v1.0:
Module Downloads here: http://www.drupalcenter.de/node/32712 (look for the ZIP-file and my post from "mori")

The Gallery in action:
http://www.drupal-rocks.com/Bilder-Galerien/gallery-20110109-first-galle...

drupal a11y’s picture

CVS-Version & Instructions are here:
http://drupal.org/project/media_gallery/cvs-instructions

On the main page below the headline:
Media Gallery
* View * CVS instructions

rod35’s picture

Mori,

Thanks a lot for you zip.
All is ok except when a try to add image to a gallery
Add image > Pop up ok > select a file from library or upload > no action.
Did you ever see this bug ?
Thanks in advance
Rod

rod35’s picture

I've got the error on Firebug:

The requested URL /drupal3/media-gallery/add-images/2/YYCTtNiKPMoOc2CESq-pV63jTLzFlvwIRHIPzI2NyCM was not found on this server.
jquery.js?v=1.4.4 (ligne 143)

I continue to find a issue.
Thanks

biggordonlips’s picture

I found a fix here- http://wordpress.org/download/

rod35’s picture

biggordonlips > ;-)
I tested Wordpress and media management is no more useful that Drupal.
I don't understand we can't attach media more one article... and Nextgen Gallery make doublon media
But it isn't the problem here. I try to solve drupal media management.
Someone try mori's package ?
Thanks

Kreativs’s picture

Subscribe

biggordonlips’s picture

NextGEN gallery is doing everything I need it to, what problem did you have with it?

tax15’s picture

Using Drupal 7.0. Get the error when Media Gallery is enabled.

Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of C:\xampp\htdocs\drupal7\modules\field\field.module).
EntityFieldQueryException: Field storage engine not found. in EntityFieldQuery->queryCallback() (line 1048 of C:\xampp\htdocs\drupal7\includes\entity.inc).

flits’s picture

Downloaded Mori's zipfile as directed in comment #25

Did a vanilla install of D7

Installation of all modules in that zip went smoothly except for media_gallery.

media gallery reported the same field_view_mode_settings() error reported repeatedly above.

However. The module installs. Galleries are enabled, I have added images and thumbnails have been generated.

I'll report back here if I find any further errors, but for now, it appears to be working as expected, if not installing as expected.

mori++ thank you.

zuzu83’s picture

same probleme

aarondesignedit’s picture

I tried a combination of things and this is what seems to work thus far for me with a fresh D7 install. I Downloaded Mori's zipfile mentioned in #20 but used the head version of media_gallery mentioned in #20. No errors as of yet.

adam_b’s picture

I tried using ascii122's #20 file and then Mori's #25 setup: I can create galleries with no problems - but in both cases, no thumbnails are being created. I can only see the actual image if I go to edit the media file.

ascii122’s picture

#36 it's amazing that a few folk have got it to work. I tried pretty much everything and never got the thumbs or cover page images to be created, while some got it to work.

I ended up going with node gallery and d6 for berniesbronze.com just because he needs a fast site. Too bad because I was really hot to try out d7. Also now he wants to sell stuff so no way am I ready for ubercart on d7 :) :)

I mean it does say 'Media Gallery is in ALPHA status. It is used in production, but since it is based on ALPHA projects (D7 and media), we don't recommend using it on production sites. We know you will anyway, and that's why you're awesome. You've been warned.'

right on the front page of this module so It's not like we didn't know bugs were a big possibility :)

take care & good luck

-z (the ascii value for lower case z is 122!)

schackattack’s picture

i tried alle the above proposals...with no effect. i'm still getting the same undefined index notice. if it wasn't for this error i'd switch to d7 right away. and i would really like to see all the new things regarding image and file handling - especially mass uploading of images. i love what's been done otherwise. the look + feel and usability of drupal has really gotten a facelift with the newest official release. cudos to you.
does anyone have an eta on a working version of media gallery?

effulgentsia’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

For anyone who was experiencing this, please try again using Media beta3, and Media Gallery beta3, and report critical errors here. Please do not report Notices in this issue. Find or open a separate (non-critical) issue for that. But if there are errors shown that render the site unusable, please add that information to this critical issue. Thanks!

schackattack’s picture

Here's one. When trying to configure gallery settings at admin/config/media/galleries, I get this:

Fatal error: Cannot access empty property in [...]\modules\field\field.attach.inc on line 198.

Using the above mentioned beta versions.

Aonoa’s picture

Status: Postponed (maintainer needs more info) » Active

Removed my post since it was only about a notice.

Best regards,
Ao

Aonoa’s picture

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

+1

Aonoa’s picture

I do not get these errors with Media beta3 and Media Gallery beta3.

Best regards,
Ao

sw3b’s picture

I'm in beta 3 and got theses errors on activation ! But look like it work !!!

Notice: Undefined index: media_gallery_thumbnail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail dans field_info_max_weight() (ligne 797 dans /home/someusername/public_html/mysite/modules/field/field.info.inc).

hoobuba’s picture

After enabling the module I will get an error on the confirmation page

Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of D:\x Projects\WebSites\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of D:\x Projects\WebSites\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of D:\x Projects\WebSites\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of D:\x Projects\WebSites\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of D:\x Projects\WebSites\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of D:\x Projects\WebSites\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of D:\x Projects\WebSites\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of D:\x Projects\WebSites\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of D:\x Projects\WebSites\drupal7\modules\field\field.module).
Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of D:\x Projects\WebSites\drupal7\modules\field\field.module).
EntityFieldQueryException: Field storage engine not found. in EntityFieldQuery->queryCallback() (line 1048 of D:\x Projects\WebSites\drupal7\includes\entity.inc).

I tried it in stable and dev drupal releases.

Thanks

yareckon’s picture

this is still an issue

NPC’s picture

For issue with display of thumbs, try this method: http://drupal.org/node/1030942#comment-3970440

yched’s picture

Status: Needs review » Postponed (maintainer needs more info)

- "Undefined index: media_gallery_thumbnail in field_info_max_weight()" :
fixed in #1001624: Avoid "Undefined index" notice in field_info_max_weight() function of modules/field/field.info.inc

- "EntityFieldQueryException: Field storage engine not found."
see #999530: Upgrade Media Gallery for Media's new File Entity (EntityFieldQueryException: Field storage engine not found)

yched’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
737 bytes

"Undefined index: custom settings in field_view_mode_settings()"
Attached patch should fix this.

Liutauras’s picture

Status: Postponed (maintainer needs more info) » Needs review

#25 Thanx mori!
Your zip file helped to make it go
Now media gallery works (upload, thumbnails, ajax popup) awesom

brodiebrodie’s picture

Quote from Rod "All is ok except when a try to add image to a gallery
Add image > Pop up ok > select a file from library or upload > no action.
Did you ever see this bug ? "

Hi Rod, did you ever find a solution to this ??

Cheers

Brodie

likewhoa’s picture

subscribing

JohnnyX’s picture

I can add images (should be uploaded to files/ directory directly) but not displayed in gallery.

David_Rothstein’s picture

This issue seems to be about too many things at once. I suggest we get @yched's patch committed and then perhaps close it in favor of other issues?

In any case, if you are seeing issues where you are able to install the module but images you upload don't display or don't display correctly, that doesn't seem related to this issue and is probably a duplicate of #1020922: Images aren't displayed and are instead replaced by a generic file icon (when used with the Styles 7.x-2.x branch) instead.

Let's at least keep this issue focused on errors that occur when you are actually installing or enabling the module :)

bisonbleu’s picture

I found this other issue (http://drupal.org/node/1008328#comment-4025558) & applied the suggested patch to the Update module (core) because I was getting other errors (related to permissions) & could not update modules.

The good news is Galleries now work ! Have a look http://renaudjoubert.com/d7one/galleries

About the current issue, I was getting the same error as in #47 after Flushing all caches.

Notice: Undefined index: custom settings in field_view_mode_settings() (line 631 of /home/xxx/public_html/d7one/modules/field/field.module).

yched's patch in #51 fixes that. I can now flush all I want and all is well. :-) Thanks!

Could those 2 issues be linked ?

yched’s picture

@bisonbleu : no, those are two separate issues.

Someone should mark #51 RTBC :-)

Branjawn’s picture

Funny, I visited the link given in #57 and it doesn't work. whoops!

bisonbleu’s picture

Works for me... ?
Try http://drupal.org/node/1008328 and go to post #52

Branjawn’s picture

I meant the non-Drupal link.

bisonbleu’s picture

@ Branjawn Oups! Of course...
I'm also trying/testing the Omega/Gamma theme but it generates a fatal error. Back to Bartik for now, Try again... http://renaudjoubert.com/d7one/galleries :-)

tsjuster’s picture

Hello

I'm new on the forum. I tried to install media gallery and get a lot of undefined index errors. Now I uninstalled every module and deleted them. Then I uploaded the modules form the zip of Mori. But I still get those errors.
I can use the media library, but the gallery didn't work. I can make galleries. Then I click "Add media". Go to Library. Click on an image I had uploaded. Till there everything works fine. But when I click on "Submit", the popup goes away but nothing happend. No media added to the gallery.
Any ideas?

lelizondo’s picture

Applying http://drupal.org/node/1008328#comment-4025558 and the patch in #52 #51 didn't work for me. I get

    * Notice: Undefined index: media_gallery_columns in media_gallery_form_media_gallery_node_form_alter() (line 863 of media_gallery/media_gallery.module).
    * Notice: Undefined index: media_gallery_block_rows in media_gallery_form_media_gallery_node_form_alter() (line 886 of media_gallery/media_gallery.module).
David_Rothstein’s picture

Status: Needs review » Fixed

So it looks like @yched's patch from #51 actually got committed a while ago, as part of this larger commit:
http://drupalcode.org/project/media_gallery.git/commit/20c93f8db598654b9...

So, I'm marking this issue fixed for now. It's not totally clear that that change will fix all the problems people had enabling the module; however, we are putting out a new beta release of Media Gallery in the next couple of days that contains a whole bunch of other fixes also. Once that's released, if people use it and still have problems that show up specifically when the module is being enabled, feel free to reopen this issue (or start a fresh one and link to it from here).

JohnnyX’s picture

I try to upload images in a test installation and get the following error:

    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined index: in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined index: tmpname in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined index: tmpname in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined index: tmpname in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined index: tmpname in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined index: tmpname in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined variable: i in plupload_element_value() (Zeile 112 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Notice: Undefined index: name in plupload_element_validate() (Zeile 140 von /home/drupal-7.0/sites/<MYSITE>/modules/plupload/plupload.module).
    Nur Dateien mit folgenden Erweiterungen sind zulässig: jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp mp3 mov m4v mp4 mpeg avi ogg wmv ico.
    Notice: Undefined index: #field_parents in field_widget_field() (Zeile 521 von /home/drupal-7.0/modules/field/field.form.inc).

I'll try it again in a clean installation soon...

Status: Fixed » Closed (fixed)

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

PePiToO’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta5
Status: Closed (fixed) » Active

I first installed the module media gallery beta5 and media beta 4 without error, could create a gallery and upload images but couldn't view any thumbnail when previewing the gallery.
I then disabled/enabled the module again which gave me the following error :

EntityFieldQueryException: Field storage engine not found. in EntityFieldQuery->queryCallback() (line 1048 of /includes/entity.inc).

Also, when creating a gallery :

Notice: Undefined index: media_gallery_columns in media_gallery_form_media_gallery_node_form_alter() (line 882 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_columns in media_gallery_form_media_gallery_node_form_alter() (line 887 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_rows in media_gallery_form_media_gallery_node_form_alter() (line 882 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_rows in media_gallery_form_media_gallery_node_form_alter() (line 887 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_image_info_where in media_gallery_form_media_gallery_node_form_alter() (line 882 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_image_info_where in media_gallery_form_media_gallery_node_form_alter() (line 887 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_allow_download in media_gallery_form_media_gallery_node_form_alter() (line 882 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_allow_download in media_gallery_form_media_gallery_node_form_alter() (line 887 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_format in media_gallery_form_media_gallery_node_form_alter() (line 882 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_format in media_gallery_form_media_gallery_node_form_alter() (line 887 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: #language in media_gallery_form_media_gallery_node_form_alter() (line 887 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_expose_block in media_gallery_form_media_gallery_node_form_alter() (line 909 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_expose_block in media_gallery_form_media_gallery_node_form_alter() (line 914 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_columns in media_gallery_form_media_gallery_node_form_alter() (line 909 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_columns in media_gallery_form_media_gallery_node_form_alter() (line 914 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_rows in media_gallery_form_media_gallery_node_form_alter() (line 909 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_rows in media_gallery_form_media_gallery_node_form_alter() (line 914 of /home2/pepitowo/public_html/dev/cm/sites/all/modules/media_gallery/media_gallery.module).

Same thing is hapening if I uninstall and reinstall the all the media module.

David_Rothstein’s picture

Version: 7.x-1.0-beta5 » 7.x-1.x-dev
Status: Active » Closed (fixed)

@PePiToO: If you were enabling/disabling the media-related modules a lot, you likely ran into this bug in the Media module: #970696: Disabling and re-enabling media module throws exceptions, leaves website in unusable state.