Aperture -> Gallery ?

cider@speakeasy.org

Joined: 2005-12-12
Posts: 2
Posted: Mon, 2005-12-12 01:02

Anyone know if there is (or will be) a way to export images directly from Apple's Aperture application to a Gallery site? I know Aperture has it's own templates and whatnot but I already have put quite a bit of work into customizing my Gallery install and would rather not start over again with Aperture.

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Wed, 2005-12-14 03:30

If they make an export api available someone could write a G2 module to read from it. The easiest thing to hope for would be completion of the XML-RPC (should be early next year) and export plugins for Aperture similar to the export plugins for iPhoto. A plugin would probably be fairly easy to create.

Can you find any mention of exporting or plugins in the Aperture help or docs? Its not a tool most of of have our hands on just yet :)

 
Ebby

Joined: 2006-01-07
Posts: 8
Posted: Sat, 2006-05-27 19:03

Aperture does have a plugins folder with several applescripts and a program.
Don't know what you can do with it though. If you want the scripts, I can give you a link.

There is no real development info or SDK AFAIK.

 
eye1marie

Joined: 2006-05-21
Posts: 13
Posted: Thu, 2006-11-09 22:08
Ebby wrote:
Aperture does have a plugins folder with several vca logo applescripts and a program.
Don't know what you can do with it though. If you want the vca
scripts, I can give you a link.

There is no real development info or SDK AFAIK.

Thanks for the information, gonna google for further answers and scripts downloads.

bump! havent had any luck yet..

 
Makea

Joined: 2005-05-11
Posts: 7
Posted: Mon, 2006-09-25 18:33

Aperture export api available in version 1.5:
http://www.apple.com/aperture/resources/exportapi.html

 
AdrianB
AdrianB's picture

Joined: 2003-08-25
Posts: 38
Posted: Tue, 2006-10-10 15:35

So, who will be the first to write an Export Plugin for Aperture -> Gallery?

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Fri, 2006-10-20 22:02

The Aperture SDK just got released.

I'd like to write a plugin to export images from Aperture into Gallery2.

Can somebody point me to some documentation / example source code perhaps that describes the protocol for uploading images Gallery2?

I found this - http://zwily.com/iphoto/ - but I think it was written with Gallery1 in mind.

I'm looking to build one from scratch that takes advantages of all the features of Gallery2.

thanks!

 
AdrianB
AdrianB's picture

Joined: 2003-08-25
Posts: 38
Posted: Fri, 2006-11-03 10:52
khans wrote:
I'd like to write a plugin to export images from Aperture into Gallery2.

Can somebody point me to some documentation / example source code perhaps that describes the protocol for uploading images Gallery2?

Here's the documentation for the Gallery2 APIs:

http://codex.gallery2.org/index.php/Gallery2:API

Is that what your looking for?

 
wolphcry
wolphcry's picture

Joined: 2006-11-06
Posts: 3
Posted: Mon, 2006-11-06 21:41

Any luck? A Aperture export would be great. It's the only thing holding me back from moving to Aperture.
And if someone had done it, THANK YOU!

 
wolphcry
wolphcry's picture

Joined: 2006-11-06
Posts: 3
Posted: Mon, 2006-11-06 21:42

Any luck? :)

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Tue, 2006-11-14 12:46

I just wrote an ApertureToGallery plugin for Aperture (works with both gallery v1 and v2).

Email me offline at khans at ubermind dot com if you're interested in trying it out.

thanks.

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Wed, 2006-11-15 15:01

khans: Very cool! You might get a lot more feedback if you posted it online. If you're willing to give it an open source license, I can give you access to the gallery-contrib project on sourceforge so that you can share it there. I'd love to try it out but I don't have a copy of Aperture on my Mac :(

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Thu, 2006-11-16 06:19

thanks ckdake :-)

I'm in the process of setting up www.apertureplugins.com and I'll have the plugin available there shortly. For now it's available at

http://www.uberkhans.com/~khans/ApertureToGallery-0.98.1.zip

Still toying with the idea of releasing it as open source, shareware, or full on commercial with support (really depends on how much time I have to devote to it).

I'd take the plunge and pick up a copy of aperture. Combination of Aperture <-> Gallery is a killer combination.

 
AdrianB
AdrianB's picture

Joined: 2003-08-25
Posts: 38
Posted: Thu, 2006-11-16 10:24
khans wrote:
Combination of Aperture <-> Gallery is a killer combination.

Yes, I really think so too. I can't wait to get new Mac so I can start using it. Nice to hear about the plugin.

 
AdrianB
AdrianB's picture

Joined: 2003-08-25
Posts: 38
Posted: Thu, 2006-11-16 10:28

eye1marie: What Ebby wrote isn't true anymore, Aperture has and export API since 1.5 (as Makea wrote).

 
wolphcry
wolphcry's picture

Joined: 2006-11-06
Posts: 3
Posted: Thu, 2006-11-16 17:42

Thanks Khans,
I been using your plug in for a few days now with out problem. It's very nice to have the complete package now.

 
Annunaki

Joined: 2006-11-17
Posts: 2
Posted: Fri, 2006-11-17 21:12

Hi,

Khans, wonderful plugin, thanks a ton, really saves me a lot of time exporting everything, uploading to my site, creating album, adding pictures, ...

I have a little request though. When you have to select the albums / subalbums to which you want to add your Photo's, it's nearly impossible to see what album you have selected. Expecially if you have album names like I do ( Langs Vlaamse Wegen 001, Langs Vlaamse Wegen 004 ) where the album number is added to the end of the name.

Otherwise, I love it :-)

Regards,

Annunaki

-------------
Langs Vlaamse Wegen Video Podcast voor den Wandelfanaat.

 
jorge2k

Joined: 2006-10-04
Posts: 1
Posted: Sun, 2006-11-19 18:33

hi,

i cant conect to my gallery 2 from the aperture export plugin (403 error forbiden)

the login and the password are correct, and i think that this is the gallery url http://jorge2k.kontikion.com/gallery2/main.php

any clues?

Pd: the export plugin export the metadata? the gallery2 read the keywords from the aperture library?

 
Annunaki

Joined: 2006-11-17
Posts: 2
Posted: Sun, 2006-11-19 19:15

Hi,

I actually tried the plugin again this weekend, but this time it only imported 2 pictures into my Gallery2 gallery. It didn't give any errors at all though, it just imported 2 of the 35 Pictures. I tried it again, and then it didn't import any pictures at all :-(

Regards,

Annunaki

-------------
Langs Vlaamse Wegen Video Podcast voor den Wandelfanaat.

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Mon, 2006-11-20 17:09

Updated version:

http://www.uberkhans.com/~khans/ApertureToGallery-0.98.2.zip

new in this version:

- now uploads captions
- gallery browser columns are resizable
- gallery 1 upload now works

for those that are having problems with the plugin, if you could please launch Console.app and send me the trace that the plugin is logging.

thanks.

 
marook

Joined: 2002-11-16
Posts: 1
Posted: Sun, 2006-11-26 18:35

Hi,

I'm trying to connect to a Gallery 2 installation, embedded in XOOPS, and does not have any success.
Console outputs:
2006-11-23 20:59:58.450 Aperture[8147] - (void)observeValueForKeyPath: selection ofObject: <NSArrayController: 0x1112650>[object class: ATGGallery, number of selected objects: 0] change:context:
2006-11-23 20:59:58.451 Aperture[8147] - (void)observeValueForKeyPath: selection ofObject: <NSTreeController: 0x1bcccd00>[object class: ATGAlbum] change:context:

Edit: After opgrading the xg2 installation to 2.1, it now connects and I can see and create albums. The uploading does not seem to work, though...

 
sussox

Joined: 2005-09-22
Posts: 4
Posted: Sun, 2006-11-26 16:44

Im trying to log in to my gallery2 and only get: Gallery Response error: could not parse response.

If i check the console:

2006-11-26 17:42:21.931 Aperture[5516] - (void)observeValueForKeyPath: selection ofObject: <NSArrayController: 0x124df640>[object class: ATGGallery, number of selected objects: 0] change:context:
2006-11-26 17:42:21.932 Aperture[5516] - (void)observeValueForKeyPath: selection ofObject: <NSTreeController: 0x124de430>[object class: ATGAlbum] change:context:
2006-11-26 17:42:22.506 Aperture[5516] - (void)observeValueForKeyPath: selection ofObject: <NSArrayController: 0x124df640>[object class: ATGGallery, number of selected objects: 1] change:context:
2006-11-26 17:42:22.507 Aperture[5516] - (void)observeValueForKeyPath: selection ofObject: <NSTreeController: 0x124de430>[object class: ATGAlbum] change:context:
2006-11-26 17:42:23.646 Aperture[5516] - (NSDictionary *)_parseResponseData:(NSData *)value - responseString #__GR2PROTO__
server_version=2.8
debug_core_version=7,3
debug_module_version=1.0.6
status=0
status_text=Login successful.
debug_user=admin
debug_time=0.009s

Seems like its logging in but then something happens.. Any ideas?

 
skivvie

Joined: 2006-01-25
Posts: 3
Posted: Sun, 2006-11-26 22:57

Gallery 1.5.2, Aperture 1.5.1, ApertureToGallery 0.98.2 (UPDATE, upgraded to Gallery 1.5.5pl1 and still no love).

I keep getting the following error when adding the gallery:

2006-11-26 13:45:57.259 Aperture[640] - (void)observeValueForKeyPath: selection ofObject: <NSArrayController: 0x1e984130>[object class: ATGGallery, number of selected objects: 1] change:context:
2006-11-26 13:45:57.259 Aperture[640] - (void)observeValueForKeyPath: selection ofObject: <NSTreeController: 0x1e98dfb0>[object class: ATGAlbum] change:context:
2006-11-26 13:45:57.260 Aperture[640] - (void)observeValueForKeyPath: selection ofObject: <NSTreeController: 0x1e98dfb0>[object class: ATGAlbum] change:context:
2006-11-26 13:45:57.822 Aperture[640] - (NSDictionary *)_parseResponseData:(NSData *)value - responseString <HTML>
<HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator,
and inform them of the time the error occurred
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<HR>
<ADDRESS>
Apache Server at skivvies.com
</ADDRESS>
</BODY>
</HTML>

Any ideas? Man, I will PAY for this plugin... i can't wait to get it working. I've been wanting this for a long time!

 
bmoraes

Joined: 2006-11-26
Posts: 1
Posted: Sun, 2006-11-26 22:34

Great work Khans!!! Thanks a lot!!

One thing I noticed, when creating a new album, sometimes the upload does not work (although it creates the album). I tried again, this time selecting the newly created (existing) album and the upload worked perfectly!!!

 
Theilgaard

Joined: 2006-11-27
Posts: 2
Posted: Tue, 2006-11-28 11:00

I have been testing this a few days, but had a series of different problems. It works now, since I isolated the issues, so this is a summary of what i did, and a few suggestions/questions on how to improve the plug-in.

It worked for one or a few images in one selection, but not if I selected a lot of images. I also had to select a lower quality for the export, or else it would fail.

So I ended up on a guess that I somehow ran into the 2 MB limit for file uploads through PHP.

Then I tried again using a lower quality setting where I knew that my images each would be smaller than 2 MB, but again it failed if I selected too many images.

Now I changed the upload limit on the server to 127 MB, as described here: http://loudblog.de/forum/viewtopic.php?pid=188

So now it works. BTW I got permission errors in the console, so if others is having these it might be a limitation in the upload.

------
So now I have a few questions and sugegstions:

Does the plug-in upload all the exportet images in one "post" or does it make a "post" for each image? It seems to do the first thing, but I think the correct thing would be to do the latter, in order to avoid the upload limit as much as possible.

It would be nice if the plug-in could remember the last selected Export Name Format, instead of it always selecting the first in the list.

This is defenately a great plug-in!

Thanks,

Søren

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Sat, 2006-12-02 23:36

theilgaard:

The plug-in uploads generates a POST request for each image. If, however, one of the images in the set fails to upload, it will abort the entire operation.

Good tip on remembering the last selected export name format - shouldn't be that hard to incorporate.

I'll try to break my gallery 2 install (re: the 2 gb limit) so that I can plug in some better error handling so the user gets a much more descriptive error message if the upload fails for that particular reason.

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Sat, 2006-12-02 23:40

skivvie:

If you're getting that error when entering in a new gallery, it might be related to the url you are using.

What url are you using for your gallery?

(make sure it doesn't have main.php in it - i.e. http://www.example.com/gallery or http://www.example.com/gallery2 instead of http://www.example.com/gallery2/main.php etc.).

 
Theilgaard

Joined: 2006-11-27
Posts: 2
Posted: Mon, 2006-12-04 09:49

khans, I can now clear something up.

I think I have uploaded a lot of images in the same session I created an album, and that fails.

If I activate the plug-in in Aperture, select my web-site (as you describe above), and create a new album, any posting to this album, or creation of sub-albums fail. The plug-in shows the sub-album, and let me select it, but it is never created on the server.

If I exit the plug-in, activate it again, and the create the sub-album, it will be created. I also have to exit the plug-in if I created a new album I want to post to.

BTW, when I create a new album, it will be selcted in gray, and if I the click on it, it is deselected, and then I can select it in blue. It's when I do this, and create sub-albums, which I select using this procedure, and the interface actually looks like it is created on the server, all sub-albums is not created. (The first album created, even though this might be a sub-album, is created on the server, but I have to exit the plug-in first).

 
welcher

Joined: 2005-09-12
Posts: 5
Posted: Mon, 2006-12-04 15:40

Hello. First, thanks for this BRILLIANT plugin. Significantly streamlines my workflow. One small problem I'm having is that the g_title field of the item table in the DB is not getting populated. It doesn't in the iPhoto plugin either, if I recall, so if you're basing off that, that might be the root of the problem.

In the Windows world from where I recently migrated, the XP uploader thingie gave me the option of populating this field with either the full filename, or with the filename minus the extension. When I first used your plugin, I thought that fancy renaming stuff at the bottom was going to offer even MORE functionality, but after uploading some photos, I don't see where any of this information is actually entered into the DB.

It would be great if we could get that g_title field populated. My theme (a slider derivitive) uses that to display the title.

Thanks again for the great plugin!

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Mon, 2006-12-04 23:46

welcher:

try setting the caption field for the photo in aperture. If you're using the latest version of the plugin, that should propogate to the title field in Gallery2.

 
skivvie

Joined: 2006-01-25
Posts: 3
Posted: Tue, 2006-12-05 05:47
khans wrote:
skivvie:

If you're getting that error when entering in a new gallery, it might be related to the url you are using.

What url are you using for your gallery?

(make sure it doesn't have main.php in it - i.e. http://www.example.com/gallery or http://www.example.com/gallery2 instead of http://www.example.com/gallery2/main.php etc.).

Nothing wonky, just http://www.skivvies.com/photos

 
Richard Flynn

Joined: 2006-12-02
Posts: 3
Posted: Tue, 2006-12-05 16:30

Hi khans; thanks for this plugin - it looks really promising.
Is there any chance (possibly a user-set option?) that the plugin could map the IPTC Headline field from Aperture onto the Title field in Gallery and the (IPTC) Caption field onto the Description in Gallery?

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Wed, 2006-12-06 18:50

skivvie:

Quote:

The problem you're running into is totally related to your gallery install. Looks you might be doing some url mapping (url re-writing and the sort) because

http://www.skivvies.com/photos/main.php

which is what the ApertureToGallery plugin uses to upload photos totally barfs.

(Not Found

The requested URL was not found on this server.

Apache Server at skivvies.com)

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Wed, 2006-12-06 18:58

Richard:

The gallery remote gallery plugin (which is what ApertureToGallery talks to) provides the ability to send over

g2_form[caption]
g2_form[extrafield.Description]

And the Aperture SDK provides the ability to get at the IPTC information so this should be fairly easy to implement.

I'll try to roll this into the next version.

Appreciate the feedback!

 
Richard Flynn

Joined: 2006-12-02
Posts: 3
Posted: Thu, 2006-12-07 17:48

Thanks khans; I'm really looking forward to seeing how you develop this. Keep up the good work, and keep us all posted on your progress!

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Tue, 2006-12-12 17:39

Finally got around to putting the website up and fixing some of the outstanding bugs in the plugin.

0.98.3 is now available at

http://www.apertureplugins.com

It fixes the following problems:

- can now create an album and upload photos to it in the same "session"
- export button was incorrectly being disabled when a newly created Gallery v1 album was selected

New in this release:

- sophisticated logging system that can be turned on via a simple user default (preference). Will help in the diagnosis of any problems that people run into.

enjoy :-)

and as always feedback / comments much appreciated - anything that will help to make this a better product.

thanks.

 
Richard Flynn

Joined: 2006-12-02
Posts: 3
Posted: Tue, 2006-12-12 18:14
khans wrote:
Finally got around to putting the website up and fixing some of the outstanding bugs in the plugin.

0.98.3 is now available at

http://www.apertureplugins.com
{snip}

Brilliant, thanks! How do we get to the preference for the logging system? I've looked around but can see nothing obvious. Am I missing something?

It seems to be working a lot more solidly - I had a problem before where it appeared not to upload photos above a certain size (fairly small) but that seems to be working now (could have been my imagination though).

Have you had further thoughts about eventual distribution of this plugin? I would be happy to pay (something reasonable) for a fully-featured and fully-functioning version (not that the current version isn't fully-functioning in what it does). But of course I'd be even more happy if I didn't have to!

Should we be checking this thread or the apertureplugins.com site for future updates?

Richard

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Tue, 2006-12-12 19:41

thanks Richard.

The logging support that's built in is more of a developer convenience right now, and less of a status indicator on where it is in the upload process.

I wouldn't suggest turning it on, unless you run into a problem where the debug trace could assist in tracking it down.

That said, here's how you turn it on.

In a terminal window type in the following:

defaults write com.apertureplugins.export.ApertureToGallery LoggingLevel 4

to turn on maximum logging.

To turn off logging, type in the following in a terminal window:

defaults remove com.apertureplugins.export.ApertureToGallery LoggingLevel

Aperture will need to be restarted for the changes to take effect. The logs that are generated are visible in Console.app.

I'm still toying with the idea of how I want to distribute this. It'll either be donation ware or it'll be for purchase but priced very nominally.

I'm in the process of setting up a blog on www.apertureplugins.com. Best way to check for updates would be to grab the rss feed on that. Until that is setup, I'll continue to post updates to this thread (and to the website).

thanks!

 
digitalsynthesis

Joined: 2006-12-14
Posts: 1
Posted: Thu, 2006-12-14 21:49

I'm very much in favor of this plugin, having a few galleries myself. I also own the superb FlickrExport for Aperture plugin by Fraser Speirs. I would pay a similar amount for this plugin if it did the following things and did them well:

  • Allowed permission setting BEFORE uploading, so that permissions are already set once uploaded (for instance, I want everyone to see an album, but only people in the Friends group to view the full resolution, others see only the allowed downsampled resolutions, etc).
  • Allowed the replacement of already existing images intelligently a la FlickrExport for Aperture
  • Figured out if you were going to exceed your quota during the transfer and illustrated this graphically (quota versus usages versus upload total size) and warned you on upload if this would occur (with the option to cancel early, of course)
  • Supported the transfer of existing tags as keywords
  • Supported renaming each image individually during upload
  • Was bulletproof with uploading and all possible error conditions on the gallery side, and allowed rollbacks or picked up where it left off once the condition was fixed.

To me, that's worth $20 plus a nominal fee for each significant upgrade. If you could get just the permission bit added I'd pay $10 plus a small fee for each additional feature, summing up to about $20. But that's me. Take a good look at Fraser's plugin and of course without ripping off his design, see if you can incorporate the positive functionality into your app, and there's money in your pocket. :)

 
drewbono

Joined: 2006-06-10
Posts: 4
Posted: Fri, 2006-12-15 02:11

@kans

"Still toying with the idea of releasing it as open source, shareware, or full on commercial with support (really depends on how much time I have to devote to it)."

Have you decided what type of license you'll be using. If you decide to open source it, I'd love to help with the development.

 
allanmarcus

Joined: 2005-12-17
Posts: 21
Posted: Fri, 2006-12-15 06:00

Anyone know if the image's keywords are exported to gallery when the plug in is used?

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Sat, 2006-12-16 05:05

digitalsynthesis: That's great feedback. Thank you. I'm going to look into incorporating your suggestions into the plugin.

drewbono: I'm almost positive that it's not going to be open source, unless I stop working on it altogether. It's either be free or there will be a nominal charge for it.

allanmarcus: image keywords are currently not exported to gallery. Based on my limited research, I didn't see that the Gallery remote plugin (which is what this plugin uses on the server side) had a mechanism to add keywords.

thanks.

 
Ebby

Joined: 2006-01-07
Posts: 8
Posted: Mon, 2006-12-18 20:19

Wow! I forgot about this thread. I just found the plugin on the main page and it is AWESOME!
This is so cool. Thanks guys.

 
schmenzer

Joined: 2006-12-19
Posts: 1
Posted: Tue, 2006-12-19 04:29

Looks very useful it I can get it to work. I am getting a 406 error when I try to add a url to the Galleries window.

http://www.gasworksdesign.com/gallery

as soon as I hit "Add" I see and error box with...

Connection failed
HTTP Error 406: unacceptable.

in it.

I have a new install of 2.1.2.

Any ideas?

Thanks.

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Tue, 2006-12-19 05:04

Hi schmenzer,

Can you turn on logging and send me a trace please.

The process for enabling logging is described in the thread above and/or on the AperturePlugins.com blog.

Please email it to support at apertureplugins dot com and I'll take a look.

thanks!

 
cruaux

Joined: 2006-11-20
Posts: 5
Posted: Wed, 2006-12-20 06:03

Hello khans,

I've tried installing the Aperture plugin several times, and constantly get a 403 error when I try to connect to the gallery from within Aperture. I can connect to exactly the same URL with the GR java application with no problems.

The trace is below, with my root url/login/pwd obfuscated:

--start log--

2006-12-19 21:46:41.554 Aperture[3518] DEBUG: gallery selection changed.
2006-12-19 21:46:41.554 Aperture[3518] DEBUG: clearing out albums browser.
2006-12-19 21:46:41.554 Aperture[3518] DEBUG: album selection changed.
2006-12-19 21:46:41.554 Aperture[3518] DEBUG: no album selected.
2006-12-19 21:46:41.554 Aperture[3518] DEBUG: disabling create new album and export buttons.
2006-12-19 21:46:41.555 Aperture[3518] DEBUG: album selection changed.
2006-12-19 21:46:41.555 Aperture[3518] DEBUG: no album selected.
2006-12-19 21:46:41.555 Aperture[3518] DEBUG: disabling create new album and export buttons.
2006-12-19 21:46:41.555 Aperture[3518] DEBUG: one gallery selected.
2006-12-19 21:46:41.555 Aperture[3518] DEBUG: enable remove gallery button.
2006-12-19 21:46:41.558 Aperture[3518] DEBUG: connecting to gallery.
2006-12-19 21:46:41.558 Aperture[3518] INFO: - (NSURL *)requestURL - request url http://myserver/gallery2/main.php?g2_controller=remote:GalleryRemote&g2_form[cmd]=login
2006-12-19 21:46:41.558 Aperture[3518] INFO: - (NSDictionary *)requestDictionary - request dictionary {
"g2_form[password]" = ********;
"g2_form[protocol_version]" = "2.2";
"g2_form[uname]" = *******;
}
2006-12-19 21:46:41.827 Aperture[3518] INFO: - (NSDictionary *)_parseResponseData:(NSData *)value - responseString <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /gallery2/main.php
on this server.</p>
<hr />
<address>Apache Server at myserver Port 80</address>
</body></html>
2006-12-19 21:46:41.827 Aperture[3518] DEBUG: failed to connect to gallery.

--end log--

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Wed, 2006-12-20 09:04

cruax,

what happens if you try to manually hit the url that the plugin logged

http://myserver/gallery2/main.php?g2_controller=remote:GalleryRemote&g2_form[cmd]=login

from a web browser.

How about just

http://myserver/gallery2/main.php

I'm wondering if you have some sort of url re-writing enabled that is causing the plugin to trip up.

Yet another possibility is that you have your gallery protected with something like an .htaccess file. That would require security authentication to get to the page. If that's the case, then the plugin won't work because 0.98.3 doesn't have the ability to login to a gallery that's protected with that type of authentication - you'll most likely see that functionality in a future release.

thanks.

ps. re-installing the plugin won't fix it - it's either a bug in the plugin, a server side configuration error, or user error ;-).

 
cruaux

Joined: 2006-11-20
Posts: 5
Posted: Wed, 2006-12-20 16:19

khans,

When I try to manually hit the URL the plugin is logging, I get this:

#__GR2PROTO__
server_version=2.8
status=202
status_text=Login parameters not found.
debug_user=******
debug_time=0s

(user is obfuscated)

If I go gallery2/main.php I get the gallery front page, as I should.

One wrinkle I suppose, I have Gallery embedded in Joomla.

My .htaccess file is relatively simple, but I'm open to the possibility that something here is tripping it up:

Quote:
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.*****.net
AuthUserFile /home/virtual/site3/fst/var/www/html/_vti_pvt/service.pwd
AuthGroupFile /home/virtual/site3/fst/var/www/html/_vti_pvt/service.grp
ErrorDocument 404 /errorpage.php

 
khans

Joined: 2006-10-20
Posts: 32
Posted: Wed, 2006-12-20 17:43

cruax,

Can you temporarily move your .htaccess file aside and try to access the gallery from the plugin. That would help to isolate the problem.

thanks!

 
cruaux

Joined: 2006-11-20
Posts: 5
Posted: Wed, 2006-12-20 20:13

with the .htaccess file removed from the webserver entirely, I am getting an identical error trace to that I first posted.

Hope this helps.

 
spy4hire

Joined: 2006-12-29
Posts: 1
Posted: Fri, 2006-12-29 17:28

I'm getting a bad request 400 error when trying to attach to my gallery. I'll get the error when going here:

http://myserver/gallery2/main.php?g2_controller=remote:GalleryRemote&g2_form[cmd]=login

I can access /gallery2/main.php fine.

I think it may be related to the brackets. If I put parenthesis instead of the brackets it appears to give me something similar to this:

#__GR2PROTO__
server_version=2.8
status=202
status_text=Login parameters not found.
debug_user=******
debug_time=0s

I've read some web hosts do recognize brackets.