Markup: Gallery Image not displaying images

Creating and modifying plugins.
Post Reply
Bees
Posts: 3
Joined: Sat Jan 12, 2008 11:28 pm

Markup: Gallery Image not displaying images

Post by Bees »

I've successfully installed Serendipity and Gallery2 and have uploaded photos into the gallery.

I've also installed the Gallery2 Embed plugin and I think this is working ok.

I've just installed the Markup: Gallery Image plugin and have posted some test entries in my blog using the [GImage] markup. These posts are just showing [PHOTO]. When I click on them it opens up Gallery2 within the browser window, but outside the blog.

My blog is at benbrody.dyndns.org/blog

My gallery is at benbrody.dyndns.org/gallery2

The configurations are as follows (and saved in my gallery2):

Image

Image

Any suggestions would be great as I'm stumped trying to sort this out.

Thanks,
Ben.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Markup: Gallery Image not displaying images

Post by garvinhicking »

Hi!

What does the HTML source use as the <img> tag? Does it lead to a wrong URL?

Sadly your server is down, so I can'T have a look on my own.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Bees
Posts: 3
Joined: Sat Jan 12, 2008 11:28 pm

Post by Bees »

Hi Garvin,

Thanks for the reply.

The [IMG] tags are for example:
http://benbrody.dyndns.org/blog/index.p ... size=thumb

If I open this link directly in my browser I get the following message:
Warning: fopen(/media/webpages/g2data/tmp/Inverary Castle Turret.thumb.jpg) [function.fopen]: failed to open stream: No such file or directory in /usr/share/serendipity/www/plugins/serendipity_event_galleryimage/serendipity_event_galleryimage.php on line 403

The following directories are set with www-data as the owner and group and permission 755:
/media/webpages/g2data
/media/webpages/g2data/tmp

My site should be back online now - I moved ISP yesterday.

Many thanks,
Ben.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Did you try that for files without a space in their filename? This could cause trouble.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Bees
Posts: 3
Joined: Sat Jan 12, 2008 11:28 pm

Post by Bees »

I realise now that the text within the [GIimage] markup needs to match exactly the relative path on the server where the image is stored, plus the exact filename (the Name fields from Gallery2). It's nothing to do with the Title given to the ablum or image in Gallery2.

I renamed the screenshots with underscores and they work fine.

I also found that becuase my camera defaults to saving files with a .JPG extension rather than .jpg I also need to specify IMG_xxxx.JPG in the markup tag (e.g. Islay2007/IMG_3248.JPG).

So thanks for your help solving this one!

Ben.
Post Reply