galleryremote and iphoto

scottnath

Joined: 2006-03-11
Posts: 54
Posted: Tue, 2009-08-04 14:47

Does anyone know if galleryremote will be added to gallery 3?

It has come in extremely handy in connecting my iphoto images to my gallery 2.3 instance (through a number of different third-party apps/plugins). I especially love that I can edit titles and descriptions in iphoto and those carry over right to my site. Saves oodles of time.

thanks,
Scott

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-08-04 15:24
Quote:
Does anyone know if galleryremote will be added to gallery 3?

Can't promise anything, but eventually I'm guessing someone will do this as it seems pretty popular.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Fri, 2010-09-17 11:12

I wrote an iPhoto plugin based on the iPhotoToGallery plugin to upload iPhoto's photos to Gallery 3.
It can be downloaded from here http://github.com/lescoste/iphototogallery3/downloads

 
scottnath

Joined: 2006-03-11
Posts: 54
Posted: Fri, 2010-09-17 14:27

OK, this is awesome. Thanks for putting this together!

notes:

1) To install, put inside the "plugins" directory inside of iphoto
2) You have to remove "iPhotoToGallery.iPhotoExporter" if that's in there as it makes iPhoto crash when you try to export with this new gallery3 exporter
3) You can't use quotes in the description when exporting - gives an error "1001"
4) Titles and comments don't seem to be exporting and it uses the image name as title instead of the title put into iphoto

Otherwise, works great! Exactly what I need. Thank you.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Fri, 2010-09-17 18:47

Glad you like it.
I will have a look for the title and image description.
When you says "You can't use quotes in the description when exporting - gives an error "1001""
you are talking about the new album description ?

Also you can put the plugin inside the "~/Library/Application Support/iPhoto/Plugins" folder.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Sat, 2010-09-18 17:01
 
scottnath

Joined: 2006-03-11
Posts: 54
Posted: Sun, 2010-09-19 23:26

Great improvement! Titles go now and quotes can be used. Thanks for this great plugin - just what I needed.

If I might put in a feature request: is it at all possible to export any Faces that iPhoto has captured (the people's names) and have those names go into gallery 3 as a tag?

So, if I had "Scott Nath" in a photo in iPhoto, when your exporter sends the picture to Gallery 3, the photo online has a tag "Scott Nath".

thanks again, this is great.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Mon, 2010-09-20 07:51

Good idea i will see if i can add it.

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Mon, 2010-09-20 17:39

I copied the folder to the written path (I manually created the last two folders: iPhoto/Plugins) as they were not existed. However, I don't see the function in my iPhoto. I have already looked at Share menu as well as the export window, both don't have any option to export to Gallery 3. Am I missing something?

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Mon, 2010-09-20 18:28

You have to restart iPhoto to see the plugin.

Instructions :
To install it, you need to :

1) decompress the zip file

2) if you have installed the iPhotoToGallery for gallery 2 , then delete it : iPhotoToGallery.iPhotoExporter in /Applications/iPhoto/Contents/Plugins/

3) important : quit iPhoto

4) copy the "iPhotoToGallery3.iPhotoExporter" folder to the "~/Library/Application Support/iPhoto/Plugins" folder. If this folder doesn't exist then create it.

5) Launch iPhoto, select some photos then goto menu "File" -> "Export" : there will be a tab named "Gallery3"

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Mon, 2010-09-20 18:39

I have already restarted iPhoto many times. However, there is no tab in the export window other than the original ones that built in iPhoto (File Export, Web Page, Quick Time and Slideshow). Any thoughts :S?

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Mon, 2010-09-20 19:04

1) You can try to put the plugin in the iPhoto plugin dir /Applications/iPhoto/Contents/Plugins/

2) check your iPhoto version : I only tried with iPhoto 09 (version 8.1.2)

3) post the logs found in the /Applications/Utilities/Console : only post the logs you found once you start iPhoto until you open the "export" menu.

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Mon, 2010-09-20 19:37
lescoste wrote:
1) You can try to put the plugin in the iPhoto plugin dir /Applications/iPhoto/Contents/Plugins/

Just tried with no hope. Nothing appear in iPhoto export window after restarting.

Quote:
2) check your iPhoto version : I only tried with iPhoto 09 (version 8.1.2)

Mine is the same (8.1.2).

Quote:
3) post the logs found in the /Applications/Utilities/Console : only post the logs you found once you start iPhoto until you open the "export" menu.

I found those:

٢٠/٩/٢٠١٠ ١٠:٣٥:٣٣ م iPhoto[3544] Error loading /Users/mamouneyya/Library/Application Support/iPhoto/Plugins/iPhotoToGallery3.iPhotoExporter/Contents/MacOS/iPhotoToGallery3:  dlopen(/Users/mamouneyya/Library/Application Support/iPhoto/Plugins/iPhotoToGallery3.iPhotoExporter/Contents/MacOS/iPhotoToGallery3, 265): no suitable image found.  Did find:
 /Users/mamouneyya/Library/Application Support/iPhoto/Plugins/iPhotoToGallery3.iPhotoExporter/Contents/MacOS/iPhotoToGallery3: unknown required load command 0x80000022 
٢٠/٩/٢٠١٠ ١٠:٣٥:٣٣ م iPhoto[3544] Error loading /Applications/iPhoto.app/Contents/PlugIns/iPhotoToGallery3.iPhotoExporter/Contents/MacOS/iPhotoToGallery3:  dlopen(/Applications/iPhoto.app/Contents/PlugIns/iPhotoToGallery3.iPhotoExporter/Contents/MacOS/iPhotoToGallery3, 265): no suitable image found.  Did find:
 /Applications/iPhoto.app/Contents/PlugIns/iPhotoToGallery3.iPhotoExporter/Contents/MacOS/iPhotoToGallery3: unknown required load command 0x80000022 

Thanks!

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Mon, 2010-09-20 20:30

Which version of Mac Os X do you have ? PPC or intel ?

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Mon, 2010-09-20 20:39

Intel-based MacBook Pro (mid-2009) with Leopard 10.5.8 installed.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Tue, 2010-09-21 08:09

I uploaded a new version :

2010/09/21 version 0.3
- allows to have the Gallery plugin for version 1 and 2 from Zach Wily installed together
- when the new album short name is empty, it fills it with a timestamp
- faster album list loading
- should also run on Mac OsX 10.5

http://github.com/lescoste/iphototogallery3/downloads

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Tue, 2010-09-21 15:12

I see it now, thanks! However, everytime I try to use it I get 'Unknown Error: 1001' after (fetching albums) stage.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Tue, 2010-09-21 15:18

Ok, but to see what is wrong, I need you to post the logs found in the console.

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Tue, 2010-09-21 15:28
٢١/٩/٢٠١٠ ٦:٢٥:٣٥ م iPhoto[5737] logged in :requestkey = !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>
              لُج          </title>
    <link rel="shortcut icon" href="/gallery/lib/images/favicon.ico" type="image/x-icon" />
                    <!--[if lte IE 8]>
    <link rel="stylesheet" type="text/css" href="/gallery/themes/browny_wind/css/fix-ie.css"
          media="screen,print,projection" />
    <![endif]-->
                            <script type="text/javascript">
    var MSG_CANCEL = "\u0623\u0644\u063a\u0650";
    </script>
                    
        
    <!-- LOOKING FOR YOUR JAVASCRIPT? It's all been combined into the link below -->
<script type="text/javascript" src="/gallery/combined/javascript/f9b39b26af07e0ed9e9a9ea7a2e822d6"></script>

<!-- LOOKING FOR YOUR CSS? It's all been combined into the link below -->
<link rel="stylesheet" type="text/css" href="/gallery/combined/css/a8fc8f2516128ed953a1c64e16a78cd5" media="screen,print,projection" />









<meta name="robots" content="noindex, nofollow, noarchive" /> 
<meta name="googlebot" content="noindex, nofollow, noarchive, nosnippet, noodp, noimageindex, notranslate" /> 
<meta name="slurp" content="noindex, nofollow, noarchive, nosnippet, noodp, noydir" /> 
<meta name="msnbot" content="noindex, nofollow, noarchive, nosnippet, noodp" />
<meta name="teoma" content="noindex, nofollow, noarchive" />





  </head>

  <body class="rtl">
        <div id="doc4" class="yui-t5 g-view">
            <div id="g-header" class="ui-helper-clearfix">
        <div id="g-banner">
                    <a id="g-logo" class="g-left" href="/gallery/" title="عُد إلى الصفحة الرئيسية">
            <img alt="شعار غَلِري: صورك في صفحتك على الوب" src="/gallery/themes/browny_wind/images/logo.png" />
          </a>
                              
          <!-- hide the menu until after the page has loaded, to minimize menu flicker -->
          <div id="g-site-menu" style="visibility: hidden">
            <ul  class="g-menu">
    <li>
  <a id='g-menu-link-remove'     class="g-menu-link "
     href="/gallery/"
     title="الرئيسيَّة">
    الرئيسيَّة  </a>
</li>
    <li>
  <a      class="g-menu-link "
     href="latestupdates/updates"
     title="الجديد">
    الجديد  </a>
</li>
  </ul>

          </div>
          <script type="text/javascript"> $(document).ready(function() { $("#g-site-menu").css("visibility", "visible"); }) </script>

                  </div>

              </div>
      <div id="bd">
        <div id="yui-main">
          <div class="yui-b">
            <div id="g-content" class="yui-g">
                            <form action="/gallery/login/auth_html" method="post" id="g-login-form" class="g-narrow">
<input type="hidden" name="csrf" value=removed for public display  /><input type="hidden" name="continue_url" value="http://****.com/gallery/rest"  />  <fieldset>
    <legend>الولوج</legend>
    <ul>
      <li>
        <label for="name" >اسم المستخدم</label>
        <input type="text" id="g-username" name="name" value="" class=""  />
      </li>
      <li>
        <label for=
        <input type=
      </li>
      <li>
        <input type="submit" value="لُج" class="submit"  />
      </li>
    </ul>
  </fieldset>
</form>            </div>
          </div>
        </div>
        <div id="g-sidebar" class="yui-b">
                  </div>
      </div>
      <div id="g-footer" class="ui-helper-clearfix">
                
                <ul id="g-credits" class="g-inline">
          <li class="g-first">مشغَّل ببرنامج <a href="http://gallery.menalto.com"><bdo dir="ltr">Gallery 3.0 RC2 (Santa Fe)</bdo></a></li>        </ul>
              </div>
    </div>
    
<script src="http://apps.cooliris.com/slideshow/go.js" type="text/javascript"></script>  </body>
</html> 
 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Tue, 2010-09-21 15:34

I see.
You have to activate the REST module in the admin of your gallery.
The plugin needs it to talk to the gallery server.

REST API Module 3 A REST-based API that allows desktop clients and other apps to interact with Gallery 3

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Tue, 2010-09-21 15:41

It's already activated. I actually had to activate it for the Organize module to work.

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Tue, 2010-09-21 15:42

By the way, the plugin didn't ask for my user REST key.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Tue, 2010-09-21 15:54

The plugin get the REST key by login in with the user/password you provided.

And that is exactly what you see in the console log :
iPhoto[5737] logged in :requestkey =....

The plugin successfully logged in and tried to get your key. but the REST url responded with a login page again.

May be your username/password is wrong ?

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Tue, 2010-09-21 16:02

Hmm.. my username is in Arabic. Could that be a problem? (i.e. the plugin doesn't encoded it properly)

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Tue, 2010-09-21 16:05

Nope. I've just tried to make a test user using Ascii characters but it doesn't work also. By the way, the fact that the error appears after 'fetching albums' status message doesn't confirm that the plugin could successfully logging in?

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Tue, 2010-09-21 16:21

The plugin could not log in. The console log shows the response obtained for the login request and it doesn't look like a rest key.
The response is the login page.

I will add some code in the plugin to show the right error.

Another user cannot login either.
I have to make sure the plugin I uploaded is ok.

I will post when a debug friendly version is available.

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Tue, 2010-09-21 16:31

I understand. Thanks for your time, lescoste.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Tue, 2010-09-21 19:19

I uploaded a new zip same as version 0.3 with more debug info.
Try it and post the logs you found in the Console.

to let you know, I also have a iMac G5 with Mac os X 10.5. I tried the plugin on it and it worked well.

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Wed, 2010-09-22 03:00

Now the error shown in the export window is: Could not connect to the gallery.
From the console:

٢٢/٩/٢٠١٠ ٥:٥٤:٠٤ ص iPhoto[12394] doLogin: url = http://****.com/gallery/index.php/rest 
٢٢/٩/٢٠١٠ ٥:٥٤:٠٥ ص iPhoto[12394] doLogin: Wrong request key: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>
              لُج          </title>
    <link rel="shortcut icon" href="/gallery/lib/images/favicon.ico" type="image/x-icon" />
                    <!--[if lte IE 8]>
    <link rel="stylesheet" type="text/css" href="/gallery/themes/browny_wind/css/fix-ie.css"
          media="screen,print,projection" />
    <![endif]-->
                            <script type="text/javascript">
    var MSG_CANCEL = "\u0623\u0644\u063a\u0650";
    </script>
                    
        
    <!-- LOOKING FOR YOUR JAVASCRIPT? It's all been combined into the link below -->
<script type="text/javascript" src="/gallery/combined/javascript/f9b39b26af07e0ed9e9a9ea7a2e822d6"></script>

<!-- LOOKING FOR YOUR CSS? It's all been combined into the link below -->
<link rel="stylesheet" type="text/css" href="/gallery/combined/css/a8fc8f2516128ed953a1c64e16a78cd5" media="screen,print,projection" />









<meta name="robots" content="noindex, nofollow, noarchive" /> 
<meta name="googlebot" content="noindex, nofollow, noarchive, nosnippet, noodp, noimageindex, notranslate" /> 
<meta name="slurp" content="noindex, nofollow, noarchive, nosnippet, noodp, noydir" /> 
<meta name="msnbot" content="noindex, nofollow, noarchive, nosnippet, noodp" />
<meta name="teoma" content="noindex, nofollow, noarchive" />





  </head>

  <body class="rtl">
        <div id="doc4" class="yui-t5 g-view">
            <div id="g-header" class="ui-helper-clearfix">
        <div id="g-banner">
                    <a id="g-logo" class="g-left" href="/gallery/" title="عُد إلى الصفحة الرئيسية">
            <img alt="شعار غَلِري: صورك في صفحتك على الوب" src="/gallery/themes/browny_wind/images/logo.png" />
          </a>
                              
          <!-- hide the menu until after the page has loaded, to minimize menu flicker -->
          <div id="g-site-menu" style="visibility: hidden">
            <ul  class="g-menu">
    <li>
  <a id='g-menu-link-remove'     class="g-menu-link "
     href="/gallery/"
     title="الرئيسيَّة">
    الرئيسيَّة  </a>
</li>
    <li>
  <a      class="g-menu-link "
     href="latestupdates/updates"
     title="الجديد">
    الجديد  </a>
</li>
  </ul>

          </div>
          <script type="text/javascript"> $(document).ready(function() { $("#g-site-menu").css("visibility", "visible"); }) </script>

                  </div>

              </div>
      <div id="bd">
        <div id="yui-main">
          <div class="yui-b">
            <div id="g-content" class="yui-g">
                            <form action="/gallery/login/auth_html" method="post" id="g-login-form" class="g-narrow">
<input type="hidden" name="csrf" value=removed for public display  /><input type="hidden" name="continue_url" value="http://****.com/gallery/rest"  />  <fieldset>
    <legend>الولوج</legend>
    <ul>
      <li>
        <label for="name" >اسم المستخدم</label>
        <input type="text" id="g-username" name="name" value="" class=""  />
      </li>
      <li>
        <label for=
        <input type=
      </li>
      <li>
        <input type="submit" value="لُج" class="submit"  />
      </li>
    </ul>
  </fieldset>
</form>            </div>
          </div>
        </div>
        <div id="g-sidebar" class="yui-b">
                  </div>
      </div>
      <div id="g-footer" class="ui-helper-clearfix">
                
                <ul id="g-credits" class="g-inline">
          <li class="g-first">مشغَّل ببرنامج <a href="http://gallery.menalto.com"><bdo dir="ltr">Gallery 3.0 RC2 (Santa Fe)</bdo></a></li>        </ul>
              </div>
    </div>
    
<script src="http://apps.cooliris.com/slideshow/go.js" type="text/javascript"></script>  </body>
</html> 

Don't see any difference :S

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Wed, 2010-09-22 07:16

There is another user that have a similar pb but with osx 10.6 .
I will solve his pb first and then come back for you after .

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Wed, 2010-09-22 12:32

No problem. Take your time, and thanks for your effort :)

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Wed, 2010-09-22 16:52

Can you try this version : it is exactly the same version as 0.2 but compiled for 10.5

http://github.com/downloads/lescoste/iphototogallery3/iPhotoToGallery3.iPhotoExporter-10.5-0.2.2.zip

And tell me if it works ?

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Thu, 2010-09-23 13:16

Sorry for the delay. Unfortunately, the same 'Unknown Error: 1001' error message appears with it :(
By the way, I see the same error in the console (٢٣/٩/٢٠١٠ ٤:١٤:٢٢ م iPhoto[19586] logged in :requestkey = !DOCTYPE html PUBLIC... etc).

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Thu, 2010-09-23 13:25

Well I really think it is a configuration problem of your gallery server.
Either the REST api is not activated or is not at the URL http://****.com/gallery/index.php/rest

So please check your configuration and try again. May be try the REST api with another tool to see if it works.
I don't know what i can do more. I tested this zip on a 10.5 imac and it worked.
Sorry.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Sat, 2010-09-25 16:49

There is a REST php client here :

http://codex.gallery2.org/Gallery3:API:REST#Client_libraries

You should try it.

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Fri, 2010-10-01 14:33

How can I use it?

 
alani

Joined: 2005-08-31
Posts: 6
Posted: Thu, 2010-10-14 11:48

Hi lescoste!
Thanks so much for building this plug-in.
In my case, it logs in, but it tends to crash a lot -- after it creates a new album, and then after it uploads a single photo. Seems like the plug-in can do one thing, and then it bombs on me.

I'm using OS X 10.6.4 / iPhoto 8.1.2 / Gallery 3.0 / PHP 5.2.14 / imagemagick
iPhotoToGallery3 0.3.4

I have options "Export titles and comments" and "Export keywords as tags".
The photos each have one keyword.

Here's the last few entries in console before iPhoto crashed:

10/14/10 7:30:49 AM	iPhoto[19156]	An uncaught exception was raised
10/14/10 7:30:49 AM	iPhoto[19156]	*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: tag)
10/14/10 7:30:49 AM	iPhoto[19156]	*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: tag)'
*** Call stack at first throw:
(
	0   CoreFoundation                      0x9629cbba __raiseError + 410
	1   libobjc.A.dylib                     0x91db0509 objc_exception_throw + 56
	2   CoreFoundation                      0x9629c8e8 +[NSException raise:format:arguments:] + 136
	3   CoreFoundation                      0x9629c85a +[NSException raise:format:] + 58
	4   Foundation                          0x93ae582b -[NSCFDictionary setObject:forKey:] + 261
	5   iPhotoToGallery3                    0x1afc16c3 -[SCZWGallery doLinkTag:withPhoto:] + 191
	6   iPhotoToGallery3                    0x1afc45f2 -[SCZWGalleryAlbum addItemSynchronously:] + 2905
	7   iPhotoToGallery3                    0x1afbeb26 -[SCiPhotoToGallery addItemsThread:] + 2716
	8   Foundation                          0x93af88d4 -[NSThread main] + 45
	9   Foundation                          0x93af8884 __NSThread__main__ + 1499
	10  libSystem.B.dylib                   0x91e8281d _pthread_start + 345
	11  libSystem.B.dylib                   0x91e826a2 thread_start + 34
)

Let me know if there's any other information that would help you.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Thu, 2010-10-14 19:31

Hi,
Glad you like it.
You were right I got the same error when trying to upload a photo with a keyword that doesn't exist yet in Gallery.
It is due to a new return code from Gallery3 when creating a new tag.
I fixed it.
You can download a new version now at github : http://github.com/lescoste/iphototogallery3 or soon from macupdate http://www.macupdate.com/info.php/id/35369/iphototogallery3

Tell me if it fixes all your problems.

Lescoste.

 
alani

Joined: 2005-08-31
Posts: 6
Posted: Sat, 2010-10-16 10:42

It seems to have done the trick.
Thanks!

 
dougbar

Joined: 2010-10-07
Posts: 15
Posted: Mon, 2010-10-18 18:55

This tool looks promising, but I am having trouble getting it to work.

I have installed it as a plugin for iPhoto 8.1.2 on Mac OSX 10.6.4
The plugin interface show up properly when I select the Export menu in iPhoto.
In the gallery3 section of the export interface I enter the hostname of my server followed by /index.php, my Gallery3 username and password.
In the Advanced options section I checked the "Use SSL" option since my Gallery server is running with https only.
I then get Status: "Could not connect to the gallery"

On the server side, when my connection attempt fails I see the following in my apache2 access log:
"POST /index.php/rest HTTP/1.1" 200 3236
"GET /index.php/admin?reauth_check=1 HTTP/1.1" 200 20

On my Gallery3 server, I have tested the "Available RSS feeds" option which I believe also depends on the REST API and these RSS feeds appear to work properly.

When my connection attempt fails the Mac console reports the message below. I should point out that I have changed the actual hostname and the password before submitting it here. I notice however that the value for username appears to be empty although it shows up in the Plugin's "Edit Gallery List..." interface.

Have you got any suggestion for getting this to work?
Thanks, Doug

10/18/10 2:30:26 PM iPhoto[78387] doLogin: url = https://server.domain.org/index.php/rest
10/18/10 2:30:27 PM iPhoto[78387] doLogin: Wrong request key: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>
Login </title>
<link rel="shortcut icon" href="/lib/images/favicon.ico" type="image/x-icon" />
<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="/themes/widewind/css/fix-ie.css"
media="screen,print,projection" />
<![endif]-->
<script type="text/javascript">
var MSG_CANCEL = "Cancel";
</script>

<!-- LOOKING FOR YOUR JAVASCRIPT? It's all been combined into the link below -->
<script type="text/javascript" src="/index.php/combined/javascript/bed298986aa104f1b882cb3dad17b616"></script>
<!-- LOOKING FOR YOUR CSS? It's all been combined into the link below -->
<link rel="stylesheet" type="text/css" href="/index.php/combined/css/b43a923c8c8d4b6efdf46f99d2b3f1a8" media="screen,print,projection" />
</head>
<body >
<div id="doc3" class="yui-t5 g-view">
<div id="g-header" class="ui-helper-clearfix">
<div id="g-banner">
<a id="g-logo" class="g-left" href="/index.php/" title="go back to the Gallery home">
<img width="107" height="48" alt="Gallery logo: Your photos on your web site" src="/lib/images/logo.png" />
</a>

<!-- hide the menu until after the page has loaded, to minimize menu flicker -->
<div id="g-site-menu" style="visibility: hidden">
</div>
<script type="text/javascript"> $(document).ready(function() { $("#g-site-menu").css("visibility", "visible"); }) </script>
</div>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div id="g-content" class="yui-g">
<form action="/index.php/login/auth_html" method="post" id="g-login-form" class="g-narrow">
<input type="hidden" name="csrf" value=removed for public display /><input type="hidden" name="continue_url" value="https://server.domain.org/index.php/rest" /> <fieldset>
<legend>Login</legend>
<ul>
<li>
<label for="name" >Username</label>
<input type="text" id="g-username" name="name" class="" value="" />
</li>
<li>
<label for=
<input type=
</li>
<li>
<input type="submit" value="Login" class="submit" />
</li>
</ul>
</fieldset>
</form> </div>
</div>
</div>
<div id="g-sidebar" class="yui-b">
</div>
</div>
<div id="g-footer" class="ui-helper-clearfix">

</div>
</div>

<script src="https://e.cooliris.com/slideshow/v/37732/go.js" type="text/javascript"></script> </body>
</html>

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Tue, 2010-10-19 15:37

Hi,
I tested the "Use SSL" option and it works.
The problem seems to be that the REST module is not activated. Because the response to the login rest is the html login page.

Check your REST module activation. And try to organize an album, it requires the REST module.

 
dougbar

Joined: 2010-10-07
Posts: 15
Posted: Wed, 2010-10-20 01:17

The REST API Module is enabled on the Gallery Modules admin page.
the organize function appears to work fine as I am able to rearrange images and albums.
I tested with and without SSL and get the same result.

Any other suggestions?
Is it surprising to you that the Console message does not contain my username?

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Wed, 2010-10-20 11:42

The REST api uses HTTP POST requests so you don't see the login/password in the url but in the body, which is not displayed in the log. To see it you need a packet sniffer like wireshark and don't use ssl otherwise it is encrypted.
If you can get the wireshark logs that would be helpfull.

 
dougbar

Joined: 2010-10-07
Posts: 15
Posted: Thu, 2010-10-21 14:39

I ran wireshark on the client machine while attempting to connect. I did see my username in the post. I don't see anything unusual, but I don't really know what to look for.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Thu, 2010-10-21 21:03

If you could send me the wireshark logs , I could may be see what is going on.
Stephane at lescoste dot net

 
scottnath

Joined: 2006-03-11
Posts: 54
Posted: Mon, 2010-11-08 18:30

Does this work with iphoto '11?

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Mon, 2010-11-08 19:02

Yes it does.

 
slipcon

Joined: 2010-12-02
Posts: 1
Posted: Thu, 2010-12-02 03:54

Does this work with iPhoto 6 (6.0.6 (322))? The old Gallery2 uploader worked fine, but the latest Gallery3 I'm seeing iphoto crash with the following in the console:

Quote:
12/1/10 10:46:04 PM iPhoto[3955] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ExportMgr imageExifPropertiesAtIndex:]: unrecognized selector sent to instance 0x2e4f8e70'
*** Call stack at first throw:
(
0 CoreFoundation 0x932986ba __raiseError + 410
1 libobjc.A.dylib 0x94765509 objc_exception_throw + 56
2 CoreFoundation 0x932e590b -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x9323ec36 ___forwarding___ + 950
4 CoreFoundation 0x9323e802 _CF_forwarding_prep_0 + 50
5 iPhotoToGallery3 0x304262db -[SCiPhotoToGallery addItemsThread:] + 645
6 Foundation 0x99335bf0 -[NSThread main] + 45
7 Foundation 0x99335ba0 __NSThread__main__ + 1499
8 libSystem.B.dylib 0x9121f85d _pthread_start + 345
9 libSystem.B.dylib 0x9121f6e2 thread_start + 34
)

Also, I had to install it in to /Applications/iPhoto/Contents/PlugIns/ instead of ~/Library/Application Support/iPhoto/Plugins/ - it wasn't recognized in that location.

Thanks for any help.

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Thu, 2010-12-02 07:28

Sorry but only the last 2 versions of iPhoto are supported : ilife 09 and 11.

 
lightxx

Joined: 2010-12-02
Posts: 28
Posted: Thu, 2010-12-02 18:57

thank you so much for that plugin. i registered here just to say thank you. without your plugin Gallery3 would suck, given there is no java upload applet anymore.

thanks,
Tom

 
lescoste
lescoste's picture

Joined: 2010-09-17
Posts: 58
Posted: Thu, 2010-12-02 20:59

Thank you for your support.
I'm glad you find it useful.

Stephane.