Gallery2 Embed: gallery2: problems

Creating and modifying plugins.
Post Reply
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Gallery2 Embed: gallery2: problems

Post by Andyman77 »

Hiya, hopefully this will be easy to fix as I'm a bit lost.

I have Gallery2 build 2.1.1 installed on a subdomain of my site.

Gallery.andyramblings.co.uk, this works fine.

However, when I try and use the embed gallery I cannot get it to work.
I get the following error:

Code: Select all

Warning: loadg2(mounted-storage/home7/sub001/sc13854-AEQJ/www/gallery2/embed.php): failed to open stream: No such file or directory in /mounted-storage/home7/sub001/sc13854-AEQJ/www/se/plugins/serendipity_event_g2embed/serendipity_event_g2embed.php on line 121

Fatal error: loadg2(): Failed opening required 'mounted-storage/home7/sub001/sc13854-AEQJ/www/gallery2/embed.php' (include_path='.:/usr/local/lib/php:/mounted-storage/home7/sub001/sc13854-AEQJ/www/se/:/mounted-storage/home7/sub001/sc13854-AEQJ/www/se/bundled-libs/') in /mounted-storage/home7/sub001/sc13854-AEQJ/www/se/plugins/serendipity_event_g2embed/serendipity_event_g2embed.php on line 121
The serendipity folder is located in the folder

www/se

Gallery 2 is:

www/gallery2

not too sure what to do to get it to work.

TIA

Andy
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Gallery2 Embed: gallery2: problems

Post by garvinhicking »

Hi!

Hm, it looks like you would need the plugin to use a path like "/mounted-storage/home7/sub001/sc13854-AEQJ/www/gallery2/embed.php" and not "mounted-storage/home7/sub001/sc13854-AEQJ/www/gallery2/embed.php". Notice the leading slash.

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/
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

that was a serious 'DOH' moment there. :oops:
Http path had to be the URL to the gallery site.
A good plugin, but just a little bit untidy.

check Here
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
GaVinci
Regular
Posts: 11
Joined: Tue Jan 31, 2006 8:01 am

Post by GaVinci »

I had the same problem, which i have now resolved, but now that it works, I can only view the main page.. Hence, when I click on an album, it just takes me to the main page of my blog. not the album gallery.. you can try it Here

I am using S9Y ver. 1.0-beta2 with Apache mod-ReWrite and Gallery version = 2.1 core 1.1.0 also with mod-rewrite on.

As far as the plugin is concerned, I have the absolute file path right for the place where my gallery resides, and the HTTP path for Galleryembed.php, set to the gallery's http path. Should the Galleryembed.php be placed in the Serendipity folder??
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The problem is this: The output that is presented on your blog comes from Gallery. The links that your gallery spews out are like

Code: Select all

<a href="People-and-Places/">
That would mean it uses your current directory as a start. Instead the links need to read

Code: Select all

<a href="/People-and-Places/">
so I think you must configure your Gallery installation to not use relative paths, but use full "/" prefixed output. It's sadly not a thing that can be "fixed" within the serendipity plugin.

HTH,
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/
GaVinci
Regular
Posts: 11
Joined: Tue Jan 31, 2006 8:01 am

Post by GaVinci »

Thank You Garvin.. I thought it had something to do with the mod-rewrite.. I turned mod rewrite off in the Gallery settings.. works like a charm now...
Post Reply