Setup:
- Panopoly 1.x RC3 Drupal 7 Distro
- Media_Gallery 2.x dev and dependencies

Created a gallery successfully, uploaded images. While logged in as an admin, it is viewable.

When logged out, gallery is empty. Using direct URL link to any particular item in gallery gives standard "not authorised" message.

Comments

krysty2k9’s picture

Same problem ... Can be fixed fast?

Moloc’s picture

It seems, that anonymous users do not have the permission to view files.

Permissions --> View file details (For viewing file details, not for downloading files. Includes the following stream wrappers: ...)

Does this fix the problem?

therobyouknow’s picture

@Moloc - sorry no - the permissions are already enabled for View file details for anonymous user/unauthenticated user. The checkboxes are already checked/ticked to enable and the problem still occurs. But thanks for your response so far...

@krysty2k9 in what Drupal 7 distribution do you see this problem? The ordinary plain/core/"vanilla" drupal.org Drupal 7 or a particular distro? This will help us understand whether or not the problem is distribution specific. Though I suspect the bug is in the File Entity code as possibly a development version may be used with Media Gallery 2.x

krysty2k9’s picture

@Moloc - View file details is checked for all roles (anonymous, register and admin)

@therobyouknow - I use media_gallery 7.x-2.x-dev on a fresh install of Drupal 7.17 with media 7.x-2.0-unstable7 module and Plupload 7.x-2.x-dev

Horoshiy’s picture

same problem
only if permission "Administer files" cheked, it will be access to media gallery, but now, unregistered users can edit and delete images.

oteno’s picture

same problem here
i need urgent a solution...
no Panopoly
latest media, media_gallery and file entity modules (all from 12/13/2012)

Moloc’s picture

When i tried it yesterday, i was using the patch at #1824652: use new file_entity_access functions instead of media_access. Can someone of you confirm, that it will work with this patch? (It seems, that this is the case(?): #5 is the old usage without the patch)

oteno’s picture

I hope i have correctly applied the patch, but i am getting the error:

Notice: Undefined property: stdClass::$fid in media_gallery_field_formatter_view() (Zeile 108 von X:\xampp\htdocs\mysite\sites\all\modules\media_gallery\media_gallery.fields.inc).
EntityMalformedException: Fehlende Paketeigenschaft auf einem Element des Types file. in entity_extract_ids() (Zeile 7633 von X:\xampp\htdocs\mysite\includes\common.inc).
krysty2k9’s picture

Works! Thanks Moloc :)

Problem Nr.2 - when I try to add a facebook comment block I get "Warning: [URL] is unreachable.". The URL is linked my gallery which is created with media_gallery module. I use www.drupal.org/project/fb module for Facebook integration. The same problem happens with facebook like button. Any suggestions?

For a better understanding check this link: http://dulciuribune.ro/produse/tort-de-botez/db-1-001

oteno’s picture

Works! Thanks a lot...

brayo4’s picture

thx Moloc, patch in # 7 works.

Bernsch’s picture

Status: Active » Reviewed & tested by the community
therobyouknow’s picture

Moloc - thank you very much!!! Patch in #7 works for me too!

Moloc’s picture

Status: Reviewed & tested by the community » Fixed

As the patch in 7 was committed yesterday, i set this issue to fixed.

Status: Fixed » Closed (fixed)

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