Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
krysty2k9 CreditAttribution: krysty2k9 commentedSame problem ... Can be fixed fast?
Comment #2
Moloc CreditAttribution: Moloc commentedIt 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?
Comment #3
therobyouknow CreditAttribution: therobyouknow commented@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
Comment #4
krysty2k9 CreditAttribution: krysty2k9 commented@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
Comment #5
Horoshiy CreditAttribution: Horoshiy commentedsame problem
only if permission "Administer files" cheked, it will be access to media gallery, but now, unregistered users can edit and delete images.
Comment #6
oteno CreditAttribution: oteno commentedsame problem here
i need urgent a solution...
no Panopoly
latest media, media_gallery and file entity modules (all from 12/13/2012)
Comment #7
Moloc CreditAttribution: Moloc commentedWhen 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)
Comment #8
oteno CreditAttribution: oteno commentedI hope i have correctly applied the patch, but i am getting the error:
Comment #9
krysty2k9 CreditAttribution: krysty2k9 commentedWorks! 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
Comment #10
oteno CreditAttribution: oteno commentedWorks! Thanks a lot...
Comment #11
brayo4 CreditAttribution: brayo4 commentedthx Moloc, patch in # 7 works.
Comment #12
Bernsch CreditAttribution: Bernsch commentedComment #13
therobyouknow CreditAttribution: therobyouknow commentedMoloc - thank you very much!!! Patch in #7 works for me too!
Comment #14
Moloc CreditAttribution: Moloc commentedAs the patch in 7 was committed yesterday, i set this issue to fixed.