Page 1 of 1

Gallery2 Embed: gallery2: problems

Posted: Tue May 09, 2006 4:40 pm
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

Re: Gallery2 Embed: gallery2: problems

Posted: Tue May 09, 2006 5:02 pm
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

Posted: Tue May 09, 2006 5:30 pm
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

Posted: Wed May 10, 2006 9:21 pm
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??

Posted: Thu May 11, 2006 10:24 am
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

Posted: Thu May 11, 2006 7:01 pm
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...