[SOLVED] Dissapearing Images

whoopn

Joined: 2009-09-24
Posts: 7
Posted: Thu, 2009-09-24 22:05

So I made my gallery and uploaded a bunch of stuff and all was well. It was quite impressive actually.

However all of the sudden every image is missing its thumbnail, resize, and original..its like they don't exist anymore. Ideas? Is the DB corrupt or something?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Thu, 2009-09-24 22:41

Edit permissions?

edit the .htaccess file at the root of your gallery3 directory, like so:
http://gallery.menalto.com/node/90854#comment-322026

If not, post a link to your site.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
whoopn

Joined: 2009-09-24
Posts: 7
Posted: Thu, 2009-09-24 23:30

nivekiam...this is twice in one day you've answered my question, thank you very much!

I also found the issue was linked to Album permissions as well...it seems (just like in windows authentication) that a "deny" overrides "allows" and by default the Everybody group has the default admin and guest in it (i wanted to PWD protect this site). Is there a way to bump admin out of the everybody group? I made another group and called it admin and that is working for me.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Thu, 2009-09-24 23:35

No, actually in Galley permissions don't work that way. If you deny Everybody and allowed the Registered users group, then anyone who logs in will get access. It's not possible to move ANYONE out of the Everybody or Registered user's groups. Those are protected, special groups. And Admin ALWAYS has access, it's not possible to cut off an admin's access, period.

If you want to make it so guests can't view your site, remove the permissions for the Everybody group and that should be enough. It really does sound like what I was describing before.

If you PM me a link and login credentials for your site and I'll take a look to confirm.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
welberger

Joined: 2006-01-03
Posts: 22
Posted: Fri, 2009-09-25 10:05

I got the same problem.

I just installed Gallery3 Beta 3 and imported all my Gallery2 content to the new installation. Everything worked just fine and all the albums with all the pictures showed just as they should.

Then I edited the permissions and changed quite a few from everybody to family (that's the group for members of my family) and all of a sudden neither the album entry picture nor the pictures inside the album would display. At the place they should display I can see the frame and even the filenames but not the picture.

Then I changed the permissions back so the group everybody had access to the album and all of the pictures would display again. Ok - I thought, let's try this again and I again changed permissions so only the family group would have access. And guess what: the same happened again - no pictures, just the frames and the filenames.

If it's necessary I would send you the login information and all via pm.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Fri, 2009-09-25 13:42

welberger, did you read this entire post and click the link I refer to above?
http://gallery.menalto.com/node/90854#comment-322026
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
welberger

Joined: 2006-01-03
Posts: 22
Posted: Fri, 2009-09-25 16:05

Hallo nivekiam,
sorry to have to tell that I did as you advised and edited .htaccess - but with no success at all. I even tried different paths for the rewrite parameter but the only thing what happened was an internal server error (with the wrong paths that is).
Thank you anyway for asking.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Fri, 2009-09-25 16:09

welberger, if you PM (click Write to author) login details for gallery and FTP (or preferably SSH) I can take a look. We want to get to the bottom of this and the more info we can gather the better off we'll be.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
whoopn

Joined: 2009-09-24
Posts: 7
Posted: Fri, 2009-09-25 16:41

I sent you a PM!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Fri, 2009-09-25 16:53

whoopn, the URL you sent doesn't work.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Fri, 2009-09-25 17:10

Welberger, thank you for the trust. I fixed you up for those 2 albums. I think I found another bug, but need to test with the latest code.

Please make sure you upgrade to the latest experimental code:
http://codex.gallery2.org/Gallery3:Upgrading

Basically, your internet address and directory name didn't match.

Directory name: "My Album"

Internet address: "My-Album"

I renamed the directory name in G3's interface from "My Album" to "My-Album" and that didn't up date the file system so through FTP I renamed that directory in your /var/albums, /var/resizes and /var/thumbs directory.

o.k. I can't duplicate this with current code. Were these albums you imported from G2? Did they have spaces in the URL in G2? G3 doesn't allow that and I think the G2 Import module changes the URL, but maybe it's not mapping the directory correctly.

I'll try some more things, but please let us know exactly what steps you went through and if you can duplicate this problem using the latest experimental code. The problem may have been fixed.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Fri, 2009-09-25 18:40

Whoopn, please do this:
http://gallery.menalto.com/node/90854#comment-322026

Also upgrade to the latest experimental code:
http://codex.gallery2.org/Gallery3:Upgrading

If it's still broken, PM me FTP (or better yet SSH) login details
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
welberger

Joined: 2006-01-03
Posts: 22
Posted: Fri, 2009-09-25 23:31

Hi nivekiam,

no problem with the trust - I think it's welkl invested into this project!

Now my steps to get to the newest version and a working gallery3 (with all my albums displaying):
1. I deleted all the existing folders and files - including the var folder
2. I copied the newest version (gallery-gallery3-0abd6f63bc8a1976a62bc4b57bbabe10d62b5c8d) into my gallery3 folder
3. I installed the new version
4. I set the language to German
5. I included the modules "Gallery2Import", "Show random image" and "message when album changed"
6. Via settings / gallery 2 import I start the import
7. I set the permissions per album
8. the same thing happens - some of the albums (indeed the same I told you before) don't show their pictures.

Ok - now I look into the album names in Gallery2 - and as you guessed some of the foldernames include blanks (including those 2 folders I mentioned).

At least now I know where to look for myself.

Thanks for your help.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Fri, 2009-09-25 23:53

I think I've nailed it down:
http://gallery.menalto.com/node/91427#comment-322280

Going to do a little more digging and testing and submit a bug report tonight.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Sat, 2009-09-26 14:17

ticket created:
https://sourceforge.net/apps/trac/gallery/ticket/812
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
whoopn

Joined: 2009-09-24
Posts: 7
Posted: Fri, 2009-10-02 02:21

Figured it out!!!

The issue is in the permissions for the whole gallery

If I choose to allow the everybody group to view the images then all is well, however if I dissallow that group to view the images then all thumbnails disappear even for the logged in admin user. The reason is admin is in the everyone group and any new user gets added to the new group. According to nivekiam, allows superceed denies so there is no way to change this behavior...unless you unlock the everyone group so we can edit them.

Anyway, i removed those restrictions and now its all good!

 
welberger

Joined: 2006-01-03
Posts: 22
Posted: Fri, 2009-10-02 06:09

Hi whoopn

i hate to disappoint you - but this can't be the reason. After I fixed the problems with my folders - the albums/folders which didn't show their pictures had a space in their names - I could perfectly see all the pictures in all the albums. Even in those which were not allowed for the everyone group.

So I think there must be a problem elsewhere.

Best

 
smashkins
smashkins's picture

Joined: 2009-09-30
Posts: 7
Posted: Fri, 2009-10-02 11:23

Hi nivekiam. I am having the same problem with permissions.
I have done a clean installation beta3 on dreamhost server.
I created a Test Album from ADD -> Add Album.
I uploaded an image from ADD -> Add Photos. It view all.
After i create FamilyGroup and i set the Test Album permission view from everyone to FamilyGroup only.
I logout.
Everyone don't see the Test album (ok).
I login with andrew->a member of FamilyGroup
andrew don't see the test album.File links only.
andrew logout.
Admin login.
Admin don't see the test album but file links only, like Andrew.
I copy the image link to the clipboard and past it to the address bar.
I see :"No input file specified. " But the path is correct.
I set permissions to everyone and i see the image and the test album.

i try to do this:
http://gallery.menalto.com/node/90854#comment-322026

but nothing..

what is this ??? :D

my album is:
http://foto.smashkins.net

Thank you for your help

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Fri, 2009-10-02 13:33

@whoopin, Admin can ALWAYS see EVERYTHING. It's impossible to restrict an admin. You've got part of the issue, read the bug ticket for the full thing:
https://sourceforge.net/apps/trac/gallery/ticket/812

I'm betting your internet address doesn't match the directory or file name and then you are trying to restrict viewing.

@smashkins, if you are trying to restrict viewing, for the time being your internet address has to match the directory or file name of the album or photo. See the bug ticket for more details:
https://sourceforge.net/apps/trac/gallery/ticket/812

As far as your "No input file specified" error, I've only seen that when PHP is ran as CGI and something is not setup correctly.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
smashkins
smashkins's picture

Joined: 2009-09-30
Posts: 7
Posted: Sat, 2009-10-03 10:55

I searched in this forum and my problem is the same of this:
http://gallery.menalto.com/node/89245

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Wed, 2009-10-28 03:33

It's been fixed. Upgrade to the latest experimental code:
http://codex.gallery2.org/Gallery3:Upgrading
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
welberger

Joined: 2006-01-03
Posts: 22
Posted: Thu, 2009-10-29 07:25

Ok - I downloaded the latest version, installed it and did the upgrade. Everything works fine BUT:
I can't login anymore - if I click on the login button Firefox just displays a blank page and IE says something about server error.

What happened here? Did I do something which wasn't meant to be done?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Thu, 2009-10-29 12:21

welberger, make sure you follow the tips for unpacking the code. Unpack the new code into a new directory, move your var directory into that new directory, delete/rename your old directory and rename your new directory to be the same as the old.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
welberger

Joined: 2006-01-03
Posts: 22
Posted: Thu, 2009-10-29 19:47

Hi,

thank you very much - it worked like a charm. But if this new upgrade functionality doesn't work like it's supposed to do then that's the place where to look after isn't it?

Anyway - i just wanted to seize the opportunity and thank you very very much for the work you put into Gallery as well as into the support of the users. It's great to experience such enthusiasm.

Just to experience this makes Gallery for me one of the best programs out there.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16501
Posted: Thu, 2009-10-29 19:52
Quote:
But if this new upgrade functionality doesn't work like it's supposed to do then that's the place where to look after isn't it?

I don't understand the question.

If you are using git:
http://codex.gallery2.org/Gallery:Using_Git

It will manage this stuff for you.

If you unpack the code over itself, the upgrader does not delete/rename files (what if it deleted a file you had modified, you'd be pissed). That's why there are the tips for unpacking the code on this page:
http://codex.gallery2.org/Gallery3:Upgrading

The reason this is happening is because files got reorganized and with the Kohana framework system we are using and it's cascading file system it still sees those old files and tries to load them, causing this problem you had.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
welberger

Joined: 2006-01-03
Posts: 22
Posted: Thu, 2009-10-29 20:14

Ok - sometimes it would be good if I would use my ability to read ;-)