SOLVED - Unable to Launch Gallery Remote - Multisite Install

tberman333
tberman333's picture

Joined: 2007-12-26
Posts: 41
Posted: Wed, 2008-12-03 23:21

I am having problems with GR on my site. I always had it installed on my local PC (running Windows XP SP3), but today when I installed the latest update it would not launch anymore... There was no error message, and GR showed as running in my Processes (in Windows Task Manager), but it never actually launched.

Then I decided to try to launch it via the Java Webstart from my site. When I did that, I got an error message that said the program could not launch... it seems like there is a file missing on my web server, but I am unsure how to add it. I have attached the java logs to this post.

Any help would be greatly apprecited!

Thanks in advance.

Gallery version 2.3
PHP version 4.3.11 cgi-fcgi
Webserver Apache
Database mysqlt 5.0.67-log
Toolkits ImageMagick, Gd
Operating system Linux
Browser Firefox 3.0.3
Link to [url= http://mylesjay.com/info.php]php info[/url]

AttachmentSize
GR_Log.txt4.33 KB
 
tberman333
tberman333's picture

Joined: 2007-12-26
Posts: 41
Posted: Thu, 2008-12-04 02:23

After more thought, I figured out the problem with launching GR from my site. My gallery is setup as a multisite, so the URL for the module folder is not the same as the URL for my Gallery. Is there anyway to tell GR (or Java Webstart) to download the JAR file from a location other than the default?

Thanks for the help!

Gallery version 2.3
PHP version 4.3.11 cgi-fcgi
Webserver Apache
Database mysqlt 5.0.67-log
Toolkits ImageMagick, Gd
Operating system Linux
Browser Firefox 3.0.3
Link to [url= http://mylesjay.com/info.php]php info[/url]

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2008-12-04 15:09

That's interesting, I didn't expect it would create problems in multi-site mode...

As a work-around, I would suggest you alter the file gallery2/modules/remote/GalleryRemoteWebStart.inc and hard-code the line that starts with $codebase to match the URL that works for accessing the jars in your installation.

Alternately, you could add aliases in your Apache config files or .htaccess.

--
Gallery Remote developer

 
tberman333
tberman333's picture

Joined: 2007-12-26
Posts: 41
Posted: Thu, 2008-12-04 16:02

Thanks for the help paour.

I need a little more assistance here though... I don't know much about code, so I am unsure how to do this. I tried to update that line of the GalleryRemoteWebStart.inc to read:

$codebase = http://myurl.com/Gallery/gallery2/;
and also tried:
$codebase = $urlGenerator->http://myurl.com/Gallery/gallery2/;

Note that the modules directory is in that location on my server.

When I make either of these changes and click on "Run using Webstart", it does not start the download, but rather just brings me to a blank webpage (with no error message). The URL for the new page is http://mylesjay.com/gallery2/main.php?g2_view=remote.GalleryRemoteWebStart

If on the other hand I try to access this directly in my browser: http://myurl.com/Gallery/gallery2/modules/remote/applets/GalleryRemote.jar

I get the pop up window that says a new version of Gallery Remote is available (version 1.5.1-b43), but the application does not launch with that.

I think the better solution that you mentioned though would be to update the .htaccess file with an alias. This way, if there are updates to GR, where the GalleryRemoteWebStart.inc file is updated, I will not need to worry about making the change again (if that ever happens).

Do you have any idea of what I would need to add to the .htaccess file to set this?

Thanks again for the help! Also, if you find a bug that would cause this multisite problem and need me to help test it in anyway, please let me know.

Gallery version 2.3
PHP version 4.3.11 cgi-fcgi
Webserver Apache
Database mysqlt 5.0.67-log
Toolkits ImageMagick, Gd
Operating system Linux
Browser Firefox 3.0.3
Link to [url= http://mylesjay.com/info.php]php info[/url]

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2008-12-04 16:30

Sorry to have incorrectly assumed you were fluent in PHP...

You can change that line to:
$codebase = 'http://myurl.com/Gallery/gallery2/modules/remote/';

Instructions for aliases would imply knowledge of your web server structure, so I won't go there. It's pretty simple, you can look up the Alias command in the Apache documentation. Just take a look at your Apache error log to figure out which paths you have to alias, and your access log, to find out what you should redirect them to...

--
Gallery Remote developer

 
tberman333
tberman333's picture

Joined: 2007-12-26
Posts: 41
Posted: Thu, 2008-12-04 17:30

Thank you very much! That worked for me.

I am going to play around with the aliases a little and see if I can figure it out, but for now at least I got this working.

Gallery version 2.3
PHP version 4.3.11 cgi-fcgi
Webserver Apache
Database mysqlt 5.0.67-log
Toolkits ImageMagick, Gd
Operating system Linux
Browser Firefox 3.0.3
Link to [url= http://mylesjay.com/info.php]php info[/url]