Error locating gallery_remote2.php when uploading w/GR

mosofsky

Joined: 2004-03-18
Posts: 3
Posted: Thu, 2004-03-18 05:16

When I try to upload images using Gallery Remote, I get the following error in a dialog box:

"Error: Server contacted, but Gallery not found at this URL ( http://iclub.mit.edu/gallery/gallery_remote2.php )"

The strange thing is I had been able to upload over 2000 pictures before today using Gallery Remote. What do you think the cause of the problem is and how do you think I should fix it?

Many thanks!

gallery remote version: 1.3.1
the URL to your Gallery: http://iclub.mit.edu/gallery
the version of Gallery: v1.4.2
the version of PHP: 4.3.4
the version of Apache: 1.3
your operating system and hardware: XP / Dell machine
(if applicable) the web browser and version you are using: none, using Gallery Remote
any debug output or clues that you've already discovered: no clues

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2004-03-18 06:20

Can you post the log?

FAQ Gallery Remote:3

 
scriptures4life

Joined: 2003-12-04
Posts: 11
Posted: Thu, 2004-03-18 09:32

I am having the same problem:
Here is (i think) the relevant snippet 'o code

231633|TRACE|StatusBar |level: 0 - 1 pictures / 2,316 K - 0
 232144|TRACE|GalComm2  |Url: /modules.php?name=gallery&include=gallery_remote2.
php
 232224|TRACE|GalComm   |Sending cookie: lang=english; expires=Fri Mar 18 01:19:
31 PST 2005; path=; domain=www.coastalaviators.ca
 232224|TRACE|GalComm   |Sending cookie: user=MjphZG1pbjowOTZjNWI1NjI0MjdlMzMwNW
ViNTVmNjY4NTJlMzNhZToxMDo6MDowOjA6MDpUcmFuc3BhcmVudEJsdWU6NDA5Ng%3D%3D; expires=
Sat Apr 17 02:19:31 PDT 2004; path=; domain=www.coastalaviators.ca
 232224|TRACE|GalComm   |Sending cookie: PHPSESSID=c3204fd93c5c52c10ea404a821061
264; path=/; domain=www.coastalaviators.ca
 232244|TRACE|StatusBar |level: 0 - 1 pictures / 2,316 K - 0
 233866|TRACE|GalComm   |Accepting cookie: PHPSESSID=c3204fd93c5c52c10ea404a8210
61264; path=/; domain=www.coastalaviators.ca
 233876|TRACE|GalComm2  |&&&Resizing/compressing original image
 233876|ERROR|GalComm2  |com.gallery.GalleryRemote.GR2Exception: Server contacte
d, but Gallery not found at this URL ( http://www.coastalaviators.ca/modules.php
?name=gallery&include=gallery_remote2.php )
        at com.gallery.GalleryRemote.GalleryComm2$GalleryTask.requestResponse(Ga
lleryComm2.java:363)
        at com.gallery.GalleryRemote.GalleryComm2$UploadTask.uploadPicture(Galle
ryComm2.java:656)
        at com.gallery.GalleryRemote.GalleryComm2$UploadTask.runTask(GalleryComm
2.java:574)
        at com.gallery.GalleryRemote.GalleryComm2$GalleryTask.run(GalleryComm2.j
ava:275)
        at java.lang.Thread.run(Unknown Source)

 233876|INFO |GalComm2  |Error: Server contacted, but Gallery not found at this
URL ( http://www.coastalaviators.ca/modules.php?name=gallery&include=gallery_rem
ote2.php )
 236430|TRACE|StatusBar |level: 0 - 1 pictures / 2,316 K - 0

If it makes any difference, this is a phpnuked galley. I tried uploading the same pic by the web interface and it worked fine. It seems to be anything over 2000K comes up with this error. I have tried switching from netpbm to ImageMagick too server side. I also disabled the "keep the same name" function in gallery config options.

THANKS Paour!
-Dan

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2004-03-18 14:23

It definitely makes a difference that it's in PHPNuke. Does the URL given in the error work in PHPNuke? Probably your PHPNuke is not installed in the root of the web server.

 
mosofsky

Joined: 2004-03-18
Posts: 3
Posted: Wed, 2004-03-24 22:01
paour wrote:
Can you post the log?

FAQ Gallery Remote:3

 
the_newton

Joined: 2004-03-28
Posts: 1
Posted: Sun, 2004-03-28 14:57

I have the same problem using GR with Winxp, Apache 1.3.27-1.6.2 PHP 4.1.2-7.2.6 on a RedHat 7.2 system. Going to the url directly isn't a problem.

 
mosofsky

Joined: 2004-03-18
Posts: 3
Posted: Thu, 2004-04-01 05:46
paour wrote:
Can you post the log?

FAQ Gallery Remote:3

I could still definitely use some help. Did you see the log file I posted? Does it give you any ideas what might be wrong?

 
pfeffed
pfeffed's picture

Joined: 2004-04-02
Posts: 1
Posted: Fri, 2004-04-02 01:32

I am a fairly new gallery user (a month or two) who is also getting the gallery_remote2.php error also. I, like many other users, experienced no problems with my gallery for the first month or so during which time I was able to upload hundreds of pictures; however, suddenly, I started getting this error and have not been able to resolve it. I have a little addition to add which might shed some light on where the issue is starting. I found that if I tell gallery remote (under options--> preferences--> upload) to 'Resize before upload,' I can upload the images without any problems. However, I am stuck with compressed pictures on my site which is not ideal since people want to download/print the pictures directly from the site. I think this might be useful since it demonstrates that gallery can contact the gallery_remote2.php file but encounters a problem when it tries to upload the original image!

Since starting to get the error:

    I have made the 2MB change in the php.ini file
    I have made the suggested changes to the httpd.conf file.
    I am willing to give my l/p to a gallery site admin or moderator if he would like to see the problem and tinker. I would also be willing to give the admin full remote desktop access (and I mean full admin, pimp-daddy privilages) so he can have easy access to my sytem in order to better diagnose the problem.
    If I cannot resolve this issue soon, I might suck it up and get paid tech support (then post what they changed to put an end this continuing problem for many users)
    I have about five seconds before I throw this stupid computer out the window :x .

My System Configuration:

    Windows Server 2003
    Apache 2.0.48
    Gallery 1.4.2
    Gallery Remote 1.3.1
    ImageMagick 5.5.7 Q8
    PHP 4.3.5

Thank you all for your help.[/]

[/]

 
grnjelloman

Joined: 2003-01-06
Posts: 44
Posted: Sat, 2004-04-03 03:41

I am only getting the error when I try and upload mpeg movie files. I am also unable to upload them via the web interface.. The mpeg files are of larger size(2-3 megs).

Using:

gallery remote 1.3.2b8
gallery: 1.4.3-RC2-cvs-b7
embedded in postnuke: 7.2.3-Phoenix

EDIT!!!!

Found a fix for this... Make sure that in your config.php file in your gallery directory(or the field in setup) for images is an absolute path.. not just a path off of the gallery directory...

in other words:

I had in there /images

what I needed to put into there was:

/web/jellohaven/html/modules/gallery/images

and then gallery remote and the upload via the website started working..

 
Macdee

Joined: 2004-02-29
Posts: 7
Posted: Mon, 2004-04-05 18:48

My solution to this was to alter config.php such that the application had a higher timeout - the default was 30 seconds.