gallery_remote2.php error

fredriley

Joined: 2005-12-16
Posts: 19
Posted: Mon, 2006-01-09 20:00

Hi all

I'm sorry, both for forum users and myself, to have to post to these fora again, but what I'd hoped would be a wash 'n' go test of Gallery Remote has taken me 2 hours already without any positive result. I'm testing Gallery 2 on a standalone offline Windows XP portable (see attached phpinfo for details), and have installed the latest Gallery Remote on the same machine with the Java VM. In Gallery Remote I connect to the G2 installation at the URL http://127.0.0.1/gallery2/main.php and get the familiar (from what I can see on the fora) error about Gallery not being found at the URL:

http://127.0.0.1/gallery2/main.php/gallery_remote2.php

So far so normal, so it seems. So I've searched the fora and FAQs (see below) for possible solutions, and the suggested fixes are:

1. Create a fake gallery_remote2.php file in the G2 root. Done.
2. Enable mod_rewrite in Apache. Done.
2a. Then configure and activate URL Rewrite module in G2 Admin|Modules. Done.
3. Edit the GalleryRemote.properties file. No such file on disk.
4. Activate remote module in G2 Admin|Modules|Import. Activated.

The same error continues to appear. Does anyone have any other (polite) suggestions as to what I could do? Many TIA.

Documents read
--------------
FAQs:

http://codex.gallery2.org/index.php/Gallery2:FAQ#Gallery_Remote_can.27t_find_my_G2.2C_what.27s_wrong.3F

http://codex.gallery2.org/index.php/Gallery_Remote:FAQ#Connecting_to_a_G2_installation:_Server_contacted.2C_but_Gallery_not_found_at_this_URL

Forum threads:

http://gallery.menalto.com/node/31865
http://gallery.menalto.com/node/32694

<sigh>I do like the G2, its interface, and its stack of features, but it's been really, really hard work to install, configure and test, much harder than just about any other piece of software I've tested in the last decade. I'm sure we'll be using it and coughing up a donation, but I'm having to write a 10-page technical document describing how to get it installed, configured and running for our server administrator (and for myself, in the future). I do think the documentation needs pulling together and, even better, made available as offline docs. </sigh>

AttachmentSize
phpinfo().htm.txt38.85 KB
 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2006-01-09 20:23

Sorry you're having difficulties getting G2/GR to run correctly. You're certainly right about the shortcomings of the documentation. I'm sure we'd be more grateful for the manual you wrote, if it's general enough than any monetary donation :-)

Could you attach the GR log of trying to connect to the G2 server?

http://codex.gallery2.org/index.php/GalleryRemote:FAQ#Log.2C_what_log.3F

--
Gallery Remote developer

 
fredriley

Joined: 2005-12-16
Posts: 19
Posted: Tue, 2006-01-10 14:46
paour wrote:
Sorry you're having difficulties getting G2/GR to run correctly. You're certainly right about the shortcomings of the documentation. I'm sure we'd be more grateful for the manual you wrote, if it's general enough than any monetary donation :-)

I'll happily do both. We'll be using Gallery with Joomla for a national project, and as both are free I think it's only right that we donate something to both to help further development and express gratitude. I don't hold the purse strings, mind, but I can make a strong recommendation...

When I write the installation document I'll try to tidy it up for public consumption and post it here as a draft.

paour wrote:
Could you attach the GR log of trying to connect to the G2 server?

http://codex.gallery2.org/index.php/GalleryRemote:FAQ#Log.2C_what_log.3F

Ok, I've attached a log which should register one attempt to login to G2 at 127.0.0.1/gallery2/main.php at 14:53.

Cheers

Fred

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2006-01-10 14:59

Easy answer: you shouldn't specify main.php at the end of your URL, just http://127.0.0.1/gallery2/ .

Also please note that there is currently an unresolved issue between a Joomla-embedded G1 and GR. I don't think this would affect a Joomla-embedded G2.

--
Gallery Remote developer

 
fredriley

Joined: 2005-12-16
Posts: 19
Posted: Tue, 2006-01-10 16:10
paour wrote:
Easy answer: you shouldn't specify main.php at the end of your URL, just http://127.0.0.1/gallery2/ .

I did try that before posting to this forum but got a protocol error:

"no protocol implementation at the URL http://127.0.0.1/gallery2/index.php" etc.

I didn't mention it because I didn't want to muddy the waters. Anyway, I've tried again and got the same error. I've searched the fora for the phrase "no protocol implementation" and I see this error occurs with both GR and the upload applet but that there's no clearcut solution. The error also occurs with the URL http://127.0.0.1/gallery2/index.php unsurprisingly.

I suspect that this might be down to the Apache configuration, as if I go to http://127.0.0.1/gallery2/ in Firefox or IE I get a directory listing, rather than Apache picking up index.php by default. I did think that the error might be related to my testing offline, but the forum threads indicate that users are having the protocol problem with online installations. I did try to test if the Upload Applet gave the same error, but that just won't work offline.

I think the best thing to do is to install Gallery online in our Joomla installation and test it there and see if these problems recur. There's no further point in solving problems offline which might not arise online, or spending more time solving problems on a test platform when we've decided to go with Joomla and Gallery. I'll come back to this forum if/when I run into these or other problems online.

Quote:
Also please note that there is currently an unresolved issue between a Joomla-embedded G1 and GR. I don't think this would affect a Joomla-embedded G2.

Thanks for the warning.

Cheers

Fred

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2006-01-10 16:22

Yes, if index.php is not recognized as the index file, lots of things are not going to work, GR among them. Good luck.

--
Gallery Remote developer

 
fredriley

Joined: 2005-12-16
Posts: 19
Posted: Tue, 2006-01-10 17:07
paour wrote:
Yes, if index.php is not recognized as the index file, lots of things are not going to work, GR among them. Good luck.

Just for info, I've just now changed the Apache config, adding index.php to the default DirectoryIndex directive:

DirectoryIndex index.html index.html.var index.php

and restarted Apache, and when I tried 127.0.0.1/gallery2/ in IE and Firefox they both displayed the Gallery home page, not a directory listing as before. And finally Gallery Remote connects to the server - woo hoo!

So, for anyone coming to this thread experiencing the same problem, try editing the Apache config as above, restarting the server, then restarting Gallery Remote.

I'll add this fix to the documentation I'm writing.

Cheers

Fred

 
scottnemiro

Joined: 2006-05-02
Posts: 57
Posted: Mon, 2006-05-08 22:29

i am experiencing same prob... i dont understand where the DirectoryIndex line is located... which file?

 
fredriley

Joined: 2005-12-16
Posts: 19
Posted: Tue, 2006-05-09 09:17

The Apache config file is httpd.conf

 
gedekran

Joined: 2005-11-21
Posts: 1
Posted: Sat, 2006-12-16 18:25

I had the same error and the only thing that I had changed was a .htaccess file and when I removed it this error went away.

 
jaiak
jaiak's picture

Joined: 2007-02-27
Posts: 5
Posted: Fri, 2007-03-09 03:02

Hello again

I'm sorry for my insistence, but I have this error and I don't find the solution

I try the Gallery 2.1.2 and 2.2 RC-2, in the remote server powweb.com and the gallery installation work ok, but I can't connect with Gallery Remote, I add this line "DirectoryIndex index.php" in my "general" htaccess and the .htaccess into /pictures/ gallery... but don't work

can you help me?

Sorry for my bad english, thanks in advance and regards from spain!