images inserted with G2Image disappear (inaccessible) after a time

Towncat

Joined: 2008-05-06
Posts: 5
Posted: Tue, 2008-05-06 07:55

Hello,

I have a test install of WP 2.5 with G2 integrated. I inserted fullsize images in the posts with links to the gallery picture. I turned off rewrites because that did not seem to work, so I get pretty ugly and long links. What happens is this: in a fairy tale like fashion, when I insert an image, it does appear in the post. However, a few hours later from another machine I only see a text link to the image. If I copy the image link to a browser, I get a security violation page.

Then I re-inserted the images, and they seemed to work fine. Lean back, sigh. Again, few hours later, from another machine, no images, only text link. This happened twice. Logging in of users seems to work OK all the time, and if I click the text link I can see the album as well, regardless of whether the inserted picture is shown or not.

The issue may be something to do with caches or expiration of something (cookies maybe?), judging from the time element -- but otherwise I have no clue.

Also, how can I check the exact version of my WPG2 and Gallery2? I am not sure what I had installed (this weekend, though, and I think it should be the newest version.)

Thanks,
tc.

Login or register to post comments
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Tue, 2008-05-06 12:36

In your Gallery2 Site Panel, what is the values for your Session Settings?

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

Login or register to post comments
Towncat

Joined: 2008-05-06
Posts: 5
Posted: Tue, 2008-05-06 13:48

It's three weeks for the duration of the session, and one week for inactivity timeout. (I have the Hungarian version, so I do not know what the original English terms were, but I guess that is it.)

Login or register to post comments
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Wed, 2008-05-07 00:02

Towncat,

Please see the note in topic -> http://gallery.menalto.com/node/77414

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

Login or register to post comments
Towncat

Joined: 2008-05-06
Posts: 5
Posted: Wed, 2008-05-07 16:48

Sorry, I get an "Access denied" page on the link...

Login or register to post comments
capt_kirk

Joined: 2006-01-24
Posts: 479
Posted: Wed, 2008-05-07 20:13
Towncat wrote:
Sorry, I get an "Access denied" page on the link...

Hmmm... I get "Access denied" too. And I'm a moderator...

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

Login or register to post comments
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Thu, 2008-05-08 11:39

Yeah someone marked the topic as SPAM while I was away on my Business Trip. Topic has now been restored..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

Login or register to post comments
Towncat

Joined: 2008-05-06
Posts: 5
Posted: Thu, 2008-05-08 14:04

OK, read it, tested it, but the symptoms seem to be the same, immediately after the change. (Logged out, deleted cache, logged in again, no pictures shown, and the image's link is still a sec. violation.)

This is what the link to the image looks like (without the domain): /gallery/main.php?g2_view=core.DownloadItem&g2_itemId=391&g2_GALLERYSID=c8df5760ef52933af39f5d7aa1f18ac5

Shouldn't the mystic number from the end of the link have disappeared after the change was applied? (I'm only guessing.)

I'm eager to do further testing if you have suggestions -- and I also need to tell you that I really appreciate the help and all that enermous work you had put into this project!

Thanks
tc.

Login or register to post comments
Towncat

Joined: 2008-05-06
Posts: 5
Posted: Thu, 2008-05-08 20:47

A further observation: on the machine where I inserted the pictures I still can see them in the post. It seems that a session ID is stored in the link, but that session ID is probably only valid for the session where I inserted the pictures, therefore it won't work when I am viewing it from any other session. This is just my thought, I'm not sure about how this actually works.

Login or register to post comments
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Sat, 2008-05-10 02:23

I am a little unclear about the role of Gallery2 sessions myself.. Just reading up on them so I can understand how to better integrate them. Unfortunately WP does not really have session handling which makes it a little difficult..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

Login or register to post comments