Module: Gallery Remote Protocol 2
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
About Download Know issues |
|
montlo02
Joined: 2011-05-16
Posts: 5 |
![]() |
I have this message : "Gallery Remote can find no protocol implementation at the URL http://lesmonatgne.toile-libre.org/gallery/. I activate the module, add .htaccess block and modify file modules/gallery/config/cookie.php... Where is the problem ??? Thank you very much. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
That URL returns a 404 page, so it doesn't exist. |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi montlo02! what nivekiam is trying to say is that there is absolutely no valid gallery installation in your /gallery/ folder at all: hence, also the gallery remote module cannot work. please make sure that please make sure that br, |
|
DixitS
Joined: 2009-10-08
Posts: 31 |
![]() |
I got this module installed and patched the coookie.php with the "false" statement and then adding the block into the .htaccess at the top (with the only exception being that my gallery runs on a domain with the /gallery3 instead of the /gallery you have in your mod rewrite). I keep getting an error on Gallery Remote trying to connect. Looking at the Gallery Remote log file it cant seem to connect to it. Here is the snippit of it with my domain name changed. You can see the 500 error on here as well. 1962375|TRACE|GalComm |No proxy 1962375|TRACE|GalComm |Trying protocol 2 for http://Domain.com/gallery3/ 1962375|TRACE|GalComm |Sending cookie: g3sid=f2058af2fe30b2cfdef5f806b0547ca24185280b%7Edd51652bb895100fdaa9c8a126856dc0; expires=Fri Jul 22 21:27:28 EDT 2011; path=/; domain=.domain.com 1962565|TRACE|GalComm |Accepting cookie: g3sid=dd51652bb895100fdaa9c8a126856dc0; expires=Fri Jul 22 21:36:08 EDT 2011; path=/; domain=.domain.com 1962565|TRACE|GalComm |Accepting cookie: g3sid=f2058af2fe30b2cfdef5f806b0547ca24185280b%7Edd51652bb895100fdaa9c8a126856dc0; expires=Fri Jul 22 21:36:08 EDT 2011; path=/; domain=.domain.com 1962565|TRACE|GalComm |tryComm /gallery3/gallery_remote2.php: 500 1962565|TRACE|GalComm |Trying protocol 2.5 for http://domain.com/gallery3/ 1962565|TRACE|GalComm |Sending cookie: g3sid=f2058af2fe30b2cfdef5f806b0547ca24185280b%7Edd51652bb895100fdaa9c8a126856dc0; expires=Fri Jul 22 21:36:08 EDT 2011; path=/; domain=.domain.com 1962682|TRACE|GalComm |tryComm /gallery3/main.php?g2_controller=remote.GalleryRemote&g2_form[cmd]=no-op: 404 1962682|ERROR|Gallery |No protocol implementation found I saw your statement above about trying the link of the website to see if you get a blank page by going to gallery_remote2.php, when I try this I get a 500 error page. If I disable the remote module, then try to hit the page via browser I get the page missing error from Gallery3 which tells me the rewrite module is pointing to the file correct, im assuming. I cant seem to figure out why Im getting a 500 error. Dixit |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi DixitS! try the following: btw: br, |
|
DixitS
Joined: 2009-10-08
Posts: 31 |
![]() |
Hi the0ne! When I enable the gallery remote module and hit the page via gallery_remote2.php I get a 500 Internal Server error page on my browser (IE or Chrome). Here is snippits of my .htaccess <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteBase /gallery3/ ErrorDocument 404 default RewriteRule ^main.php(.*)$ / [QSA,L,R=404] RewriteRule ^gallery_remote2.php(.*)$ index.php?kohana_uri=/gallery_remote$1 [QSA,PT,L] </IfModule> # Set some reasonable defaults for PHP. Most of these cannot be set # inside the script itself. For hosts that don't have .htaccess # support but do support per-dir php.ini files, these settings are # mirrored in php.ini Havent enabled debug logging in gallery remote client since Im getting the 500 Internal Server error on the browser and the client is getting the same thing. I can PM you my URL. Dixit |
|
montlo02
Joined: 2011-05-16
Posts: 5 |
![]() |
Hi theOne ! Thanks for advice ! And sorry, its a mistake, the address is : So, I try to access to http://lesmontagne.toile-libre.org/gallery/gallery_remote2.php and I have a 404 error ! Not surprising it doesn't work... I will try to find this file now. Thanks a lot. |
|
montlo02
Joined: 2011-05-16
Posts: 5 |
![]() |
I find the file in /gallery/modules/remote/patches/ and I copy this file in /gallery/ I have the same problem as DixitS. When I try to access to http://lesmontagne.toile-libre.org/gallery/gallery_remote2.php, I have a 500 error... And when I try to connect from GR, I have this one : So I don't know what to do... Can you help me please ? (I join the GR log file) |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi montlo02! please don't copy the file from the patches folder (it's only an old leftover that needs to be cleaned from the module). br, |
|
montlo02
Joined: 2011-05-16
Posts: 5 |
![]() |
Hi theOne! I don't understand : if I don't copy the gallery_remote2.php on /gallery/, I have a 404 error when I try to connect to http://lesmontagne.toile-libre.org/gallery/gallery_remote2.php, and it's normal, the file doesn't exist... So I can't have a blank page at this address... What am I suppose to do ? If I do only the changes mentionned by module admin page, GR doesn't work and I have the first message I post... Thanks again, and sorry for the inconvenience... |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi montlo02! the file doesn't have to exist. Quote:
<IfModule mod_rewrite.c> the line Quote:
RewriteRule ^gallery_remote2.php(.*)$ index.php?kohana_uri=/gallery_remote$1 [QSA,PT,L] will tell the web server that for any request to /gallery/gallery_remote2.php it will execute file index.php don't worry: this ain't black magic but a standard apache feature that is widely used and well documented. br, |
|
montlo02
Joined: 2011-05-16
Posts: 5 |
![]() |
OK! Now I understand. But we're back to square one... .............. What should I do? |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi montlo02! please get your setup fixed. br, |
|
ozzy68
Joined: 2010-09-08
Posts: 2 |
![]() |
Hi theOne I too am having trouble logging on using GR. i have triple checked through the files etc to see if all is spot on with what you have said previously above. Any suggestions would be very much appreciated. Ozzy68 |
|
ehran
Joined: 2007-05-24
Posts: 4 |
![]() |
hello ditto... installed the module, updated the .htaccess and getting an error 500 ... will be listening to any suggestion http://blog.ehran.com/gallery3/gallery_remote2.php thanks |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi ozzy68, hi ehran! both of your galleries return an error 500 when trying to connect using gallery remote: br, |
|
sagemaniac
Joined: 2003-03-26
Posts: 47 |
![]() |
Hi there, I did all changes as mentioned in the module's admin page. The gallery URL is valid. Manual browser input of But when I start Gallery Remote (version 1.5.1-b46 on a MAC) I get the "Gallery Remote can find no protocol ..." error message. Quote:
2011-09-11 17:16:35 +02:00 --- error: Translation scanner error. file: modules/moduleupdates/views/admin_moduleupdates.html.php, line: 20, context: array ( In my .htaccess I do have the last rewrite block enabled, which removes the /index.php/ from URLs. Commenting it out does not change anything though. |
|
sagemaniac
Joined: 2003-03-26
Posts: 47 |
![]() |
I installed a test gallery on another server - added one photo - installed remote module - and got the same GR error message. G3 Error logs told me Quote:
2011-09-11 23:29:50 +02:00 --- error: File not found: gallery_remote2.php changed RewriteBase to just "/" same error - but after closing & restarting & emptying cache in GR, all the sudden GR connected and worked as expected. It also needed a folder, couldn't create the first one in GR. So, on to the original server... |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi sagemaniac! nice to hear you could solve the problem! br, |
|
jnash
![]()
Joined: 2004-08-02
Posts: 814 |
![]() |
Think I found the error for this, although not sure how to fix, or what it impacts... Basically the git repository is foobar'd - it's not the complete code... so don't get it from git You need to get the zip or tar.gz from: http://www.t-horner.com/g3_remote then, you'll need to comment out the following line in 'gallery/modules/remote/libraries/GalleryRemoteReply.php' if($status!='') $reply->set('status', $status); change this to: After I did this, all worked well, tested and all... no more 500 errors... |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Hi, I got a 500 internal Server Error if i try to connect with Gallery Remote 1.5.1-b46 xxx.202.104.43 - - [10/Oct/2011:20:23:29 +0200] "HEAD /bilder/gallery_remote2.php HTTP/1.1" 500 - "-" "Gallery Remote 1.5.1-b46" If I take a look into var/log I found a error trace I do not understand. Following files are installed in my module dir: Because of my install dir "bilder" instead of "gallery" I patched my .htaccess as followed: I have no Idea where to start debugging. Bye |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi thomas! best is to login to gallery and in the same browser window try to access br, |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Hi, I found a conflict with other rewrite Rules in the .htaccess. The apache logs an the Headers show the 500 Error: Date: Mon, 10 Oct 2011 21:26:33 GMT 500 Internal Server Error If I test the Access to the main.php I will get the default error page. Now the var/log/ keeps silent. Any Ideas? Bye |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi thomas! no need to do any testing around main.php as it's not provided by the gallery remote g3 plugin. br, |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Hi, an important hint: Bye |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Hi, I have enabled rewrite logging. This looks fine. I did my test with a browser. Because I do not allow guestaccess to my gallery, I think requesting authentication is a correct behaviour. If I authenticate as e.g. admin I run into the 500 internal server error. Bye |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi thomas! can you temporarily disable the authentication and retry? br, |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Hi theOne, I have disabled the authentication. Now I got a blance page. In the log now a 500 internal server error is displayed directly. Here the log while trying with a unauthenticated browser: Here the log while trying with the Gallery Remote fat client. It seems that the fat client accesses the main.php. Attached you will find the error message from Gallery Remote. |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi thomas! your problem is the error 500. br, |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Hmm I have checked the hole Server and PHP config. I found nothing. Du you use any special PHP Features or Setting in your module? Bye |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi thomas! no special settings or features other than used by gallery3 are used. br, |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Hi theOne, I can not find any php error message. As you see, if you access the Module-URL there is no output. Any Ideas? Bye |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Hi theOne, I invest some time in code debugging and found an error. In modules/remote/libraries/GalleryRemoteReply.php line 49 Now if I try to access the URL, the server respose with a 200 and a message like "#__GR2PROTO__ status=104 status_text= " if I am authenticated. And the gallery fat client connects to the gallery if at least one Album is public. I wunder that such an error result in a 500 server error and not in a PHP "normal" error Bye |
|
jnash
![]()
Joined: 2004-08-02
Posts: 814 |
![]() |
Finally... woot, that was it, and now I'm mad at myself for not seeing that. Thanks poggenpower. |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi thomas! thanks for pointing out! br, |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Have someone an idea, why it throws a 500 internal server error and not a PHP error? Is reply a reserved word? Bye |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
poggenpower wrote:
Have someone an idea, why it throws a 500 internal server error and not a PHP error? The only way to know for sure is check your server's error log (not access log) that if logging is enabled (it is by default) that is the only place server errors (5xx errors) get logged. Quote:
Is reply a reserved word? What do you mean? |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Quote:
|
|
designingtime
Joined: 2010-06-04
Posts: 11 |
![]() |
double post |
|
designingtime
Joined: 2010-06-04
Posts: 11 |
![]() |
poggenpower wrote:
Hi theOne, this is almost identical to where I am at, but I also 'commented out the status line in the remote reply file (which now I have to undo??) what is the solution here, in plain English please? how do I fix this error? I downloaded the latest zip file, do you mean I have to download a 'more recent' file from GIT? If so, how DO YOU DOWNLOAD something from GIT without downloading the whole repository?? every time I dabble in Gallery, it sends me to the edge of insanity...... it is NOT a user friendly system |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi designingtime! i know that git sometimes can be a pain in the (...), that's why i provide a zip file of the gallery-remote-only package on my website. to update your local gallery-remote module i propose to: br, |
|
designingtime
Joined: 2010-06-04
Posts: 11 |
![]() |
thanks for the reply but I had already done this (but yes, did it again just in case) I am wondering if I should be using the option of PHPNuke under Gallery Type instead of standalone.... is that causing a 500 issue? if not that... I don't know what it is and am about to give up.... |
|
poggenpower
Joined: 2003-12-09
Posts: 13 |
![]() |
Hi, we are still at try and error level, because nobody can explain the 500 Error cause. So keep trying ... Bye |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
I've already stated several times, the ONLY place to find ANY explanation of 500 Internal Server errors is in the web server's error logs (possibly stored under /var/log/apache2/error.log and if you're on a shared server you probably don't have access to that and you'll need to ask your host. If nothing is getting logged there, then your server needs to be set to log such errors. |
|
designingtime
Joined: 2010-06-04
Posts: 11 |
![]() |
thanks both of you for the replies - I will investigate on the server then (& nivekiam, I'm sorry to hear you've "stated several times" I know how tiring that must be, almost as tiring as trawling through pages of forum posts ;) - isn't this 2011? why is that still 'the norm'?? alas, I digress. I'll give an update, either way... |
|
axis23
Joined: 2006-10-02
Posts: 8 |
![]() |
Hello, I have this gallery: www.ostadarskt.org/gallery and I want to upload photos with Gallery remote. I install this module but gallery remote program doesn't recognize subalbums. ¿ Isn't implemented yet ? Many thanks, for this module |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi axis23! basically subalbum handling is fully implemented. br, |
|
axis23
Joined: 2006-10-02
Posts: 8 |
![]() |
I found the problem, if directory name and internet address of an album are not the same, the directory tree on Gallery Remote doesn't show all albums. Many thanks |
|
axis23
Joined: 2006-10-02
Posts: 8 |
![]() |
I don't know if this is correct, but changing your code like this in controller/gallery_remote.php 154c154 Gallery Remote program display correct the hierarchy tree of my albums. Please test renaming your albums and test your code. Many thanks |
|
the0ne
![]()
Joined: 2011-05-02
Posts: 83 |
![]() |
hi axis23! for several reasons i think this approach is not the best. br, |
|