Guy: Thanks! I'm taking a look right now, I can reproduce the issue.
OK, it seems your url rewriting is to blame; I'm currently guessing the rest base url, and i'm using gallery_url/index.php/rest/. For you, it's just /rest/ (which returns a 404 file not found on other gallery installations). When I use just the / When I open the URL in a browser I'm being redirected just fine, but that doesn't seem to work for POST requests. You could try using the default .htaccess file, if that solves your problem we know for sure. If the .htaccess is the culprit, then I guess you could fix that if you excluded all /index.php/rest/... urls from being rewritten. These aren't supposed to be opened in a browser anyway, so your users wouldnt notice that. I'll see that I include an option to specify the relative REST path in the next version, but that will take some time. For now that htaccess tweak should be your best bet, more so since other clients will probably have problems with that, too.
So long
Three
Thanks Three for a great plug-in, I just got it working. I'm using Mac OSX 10.6.6, LR3.3, Gallery 3 and I'm hosted by GoDaddy.com. I couldn't add an account, was getting a bad username/password error like Guy. Specifying /rest/ as my REST path fixed it. I thought I'd post this for any other GoDaddy customers so they can find your fix.
Dan-o
Maerin
Joined: 2010-01-27
Posts: 29
Posted: Tue, 2011-01-25 20:20
After adding a new photo in LR and publish it the item_created event is triggered in G3 for which is a listener in the tag module. So keywords are correctly copied into the tags of G3
After adding keywords in already published photos in LR and republishing the item_updated event is triggered in G3. But there is no item_updated listener in the tag module so the added keywords are not copied into the tags.
I don't know what the design reason is for this but for me it's a no-go in using this great plugin.
So I had to repair it.
Just adding an item_updated listener in the tag module did work for the tags but as it is called 3 times during a PUT the count parameter is increased by 3.
So I made my own event and listener "tag_updated". I added a listener in the tag module and fire the event just before finishing the PUT function in the gallery module core.
Removed keywords in LR remove the tags in G3 for the photo and added keywords are added as tags now.
I know it's hacking into the core code and shouldn't be done but I'm a noob in php, kohana and object orientation. If you have better implementation suggestions please let me know.
Besides the coding issues I make the decision for me to use LR as the primary control on the tags of G3. How this will work out for me in the future I don't know...
Maerin
rctneil
Joined: 2011-01-28
Posts: 2
Posted: Fri, 2011-01-28 15:20
Hey
any chance I could get some help getting this working.
I have just set gallery up. Not added any images or albums or anything yet, merely just set it up. I then wanted to connect it to Lightroom via this plugin so I can upload all my photos to it.
When I enter my login details into the plugin I get the following error:
Failed to retrieve auth key (Code: 404)
I also saw something about having to enable REST. I found the option to enable it under Modules but the checkbox next to it won;t let me enable it.
Any ideas on how to fix the above problems?
Thanks
Neil
rctneil
Joined: 2011-01-28
Posts: 2
Posted: Fri, 2011-01-28 15:58
Fixed this. Constant clicking on the checkbox next to the REST module eventually managed to check it. No idea why those checkboxes are playing up though.
This is running on Opera 11.01 by the way.
Thanks
Neil
krikman
Joined: 2011-02-22
Posts: 24
Posted: Fri, 2011-03-11 11:05
Hello Pi and others!
I'm in a trouble:
There was tree of exported albums within single publishing service.
After some hoster errors I created new clean installation of G3 with same internet adress.
After renewing account in LR plugin I can easy create new albums and upload new photos, but cannot use existing albums. This happens in 2nd level albums, i.e. TRAVEL/NORTH etc. got error 404
The problem seems in LR publishing catalog, not G3 on the web side.
One possible solution would be to manually reset published gallery to unpublished status.
But I don`t mean how.
Any Help?
03/11/2011 13:53:39 DEBUG collection ID present: 425
03/11/2011 13:53:39 DEBUG Processing 6 photos...
03/11/2011 13:53:39 DEBUG BEGINNING OF FOR LOOP ITERATION
03/11/2011 13:53:42 DEBUG photo 426 isn't there. what do we do?
03/11/2011 13:54:22 DEBUG action: reupload; is collection smart? false
03/11/2011 13:54:22 DEBUG set photoId to nil; that'll trigger upload as new
03/11/2011 13:54:22 DEBUG Upload photo into collectionId 425, filePath d:\TEMP\42A52DBB-F367-4D94-8BB3-93D4591BE661\20080911-9924.jpg
03/11/2011 13:54:22 DEBUG UploadImage: targetId: '425', method: 'post', fPath: 'd:\TEMP\42A52DBB-F367-4D94-8BB3-93D4591BE661\20080911-9924.jpg
03/11/2011 13:54:22 DEBUG '... fName: '20080911-9924.jpg', title: '-', descr: '-'
03/11/2011 13:54:22 DEBUG target_url: http://www.marktim.ru/photo/index.php/rest/item/425
03/11/2011 13:54:22 DEBUG UploadImage: url=http://www.marktim.ru/photo/index.php/rest/item/425; body={"name":"20080911-9924.jpg","type":"photo"}; method=post
03/11/2011 13:54:26 DEBUG headers: 1=>[value=>Fri, 11 Mar 2011 10:56:17 GMTfield=>Date2=>[value=>nginx/0.8.53field=>Server3=>[value=>text/html; charset=UTF-8field=>Content-Type4=>[value=>PHP/5.2.10field=>X-Powered-By5=>[value=>Thu, 19 Nov 1981 08:52:00 GMTfield=>Expires6=>[value=>no-store, no-cache, must-revalidate, post-check=0, pre-check=0field=>Cache-Control7=>[value=>no-cachefield=>Pragma8=>[value=>2field=>Content-Length9=>[value=>g3sid=XXXXX; expires=Fri, 18-Mar-2011 10:56:17 GMT; path=/; HttpOnlyfield=>Set-Cookie10=>[value=>g3sid=XXXXXX; expires=Fri, 18-Mar-2011 10:56:17 GMT; path=/; httponlyfield=>Set-Cookie11=>[value=>closefield=>Connectionstatus=>404,
03/11/2011 13:54:26 DEBUG result: '[]'
03/11/2011 13:54:26 DEBUG Error uploading image. (Code: 404)
P.S. This is higly desirable feature because well sorted albums must have backup for hosting change reasons.
krikman
Joined: 2011-02-22
Posts: 24
Posted: Fri, 2011-03-11 14:13
I suppose one additional solution to many problems.
A feature to copy this publish service with all albums and trees to new instance of this publish service.
Now we can "Create another publish service via Gallery3", but can't copy publish albums.
As for me it is preferrable to have same collection tree in lightroom for HD publish, G3 publish etc.
And export-import published collections.
But who respobnsible for implementation?
LTParis
Joined: 2006-09-19
Posts: 1
Posted: Sun, 2011-03-27 01:55
Is this still being worked on. I just downloaded the plugin and when trying to upload
PI,
Thanks for the great plugin. I see in the comments here that a few people have asked for the plugin to support transferring LR Keywords into G3 tags. Is that being developed? That, to me, would be HUGE.
Anyway, I just wanted to let you know I like your plugin a lot, and it works great for me.
Skip
psabby
Joined: 2004-06-19
Posts: 1
Posted: Mon, 2011-05-16 18:17
Hi Pi (3.14159),
I wanted to add my thanks to this thread! Following your directions the plug-in installed and configured in a snap. It's making my workflow to Gallery much easier! I'll echo the previous poster's comments regarding the possibility of exporting LR keywords into tags. That would make managing my photos much easier and free up double entering!
Thanks again!
pvisser
Joined: 2005-09-19
Posts: 1
Posted: Thu, 2011-06-16 15:13
Hello please it all works wel. Tags are not working. Can somone please advice.
G3
Lightroom 3.3
Greetings.
Maerin
Joined: 2010-01-27
Posts: 29
Posted: Fri, 2011-06-17 07:36
If you add keywords in LR directly at the first upload of a photo they get added to the G3 tags. However if you add/remove keywords later on and republish the photo in LR it doesn't get changed in the G3 tags. Pi is mentioning this as a bug on his site. I hacked into the G3 code to enable this (see this thread 10 posts up)
Posts: 9
Still no chance to make it work ..
Now I have the following error
internal error : [string "G3Api"]:117: attempt to get length of local 'members' (a nil value)
Any clue ?
Posts: 11
I had this working fine, now I am getting an error on republishing. "Error checking item presence". Long only has
12/26/2010 14:42:16 DEBUG Error checking item presence for id 2278 (Error: table: 19370480)
The connection works (I can re-authorize), and all users have access to the root Gallery
------------------------------
www.paddy-for-lightroom.com
Midi sliders, keyboard mapping, and more
Posts: 5
Thanks Three for a great plug-in, I just got it working. I'm using Mac OSX 10.6.6, LR3.3, Gallery 3 and I'm hosted by GoDaddy.com. I couldn't add an account, was getting a bad username/password error like Guy. Specifying /rest/ as my REST path fixed it. I thought I'd post this for any other GoDaddy customers so they can find your fix.
Dan-o
Posts: 29
After adding a new photo in LR and publish it the item_created event is triggered in G3 for which is a listener in the tag module. So keywords are correctly copied into the tags of G3
After adding keywords in already published photos in LR and republishing the item_updated event is triggered in G3. But there is no item_updated listener in the tag module so the added keywords are not copied into the tags.
I don't know what the design reason is for this but for me it's a no-go in using this great plugin.
So I had to repair it.
Just adding an item_updated listener in the tag module did work for the tags but as it is called 3 times during a PUT the count parameter is increased by 3.
So I made my own event and listener "tag_updated". I added a listener in the tag module and fire the event just before finishing the PUT function in the gallery module core.
Removed keywords in LR remove the tags in G3 for the photo and added keywords are added as tags now.
I know it's hacking into the core code and shouldn't be done but I'm a noob in php, kohana and object orientation. If you have better implementation suggestions please let me know.
Besides the coding issues I make the decision for me to use LR as the primary control on the tags of G3. How this will work out for me in the future I don't know...
Maerin
Posts: 2
Hey
any chance I could get some help getting this working.
I have just set gallery up. Not added any images or albums or anything yet, merely just set it up. I then wanted to connect it to Lightroom via this plugin so I can upload all my photos to it.
When I enter my login details into the plugin I get the following error:
Failed to retrieve auth key (Code: 404)
I also saw something about having to enable REST. I found the option to enable it under Modules but the checkbox next to it won;t let me enable it.
Any ideas on how to fix the above problems?
Thanks
Neil
Posts: 2
Fixed this. Constant clicking on the checkbox next to the REST module eventually managed to check it. No idea why those checkboxes are playing up though.
This is running on Opera 11.01 by the way.
Thanks
Neil
Posts: 24
Hello Pi and others!
I'm in a trouble:
There was tree of exported albums within single publishing service.
After some hoster errors I created new clean installation of G3 with same internet adress.
After renewing account in LR plugin I can easy create new albums and upload new photos, but cannot use existing albums. This happens in 2nd level albums, i.e. TRAVEL/NORTH etc. got error 404
The problem seems in LR publishing catalog, not G3 on the web side.
One possible solution would be to manually reset published gallery to unpublished status.
But I don`t mean how.
Any Help?
03/11/2011 13:53:39 DEBUG collection ID present: 425
03/11/2011 13:53:39 DEBUG Processing 6 photos...
03/11/2011 13:53:39 DEBUG BEGINNING OF FOR LOOP ITERATION
03/11/2011 13:53:42 DEBUG photo 426 isn't there. what do we do?
03/11/2011 13:54:22 DEBUG action: reupload; is collection smart? false
03/11/2011 13:54:22 DEBUG set photoId to nil; that'll trigger upload as new
03/11/2011 13:54:22 DEBUG Upload photo into collectionId 425, filePath d:\TEMP\42A52DBB-F367-4D94-8BB3-93D4591BE661\20080911-9924.jpg
03/11/2011 13:54:22 DEBUG UploadImage: targetId: '425', method: 'post', fPath: 'd:\TEMP\42A52DBB-F367-4D94-8BB3-93D4591BE661\20080911-9924.jpg
03/11/2011 13:54:22 DEBUG '... fName: '20080911-9924.jpg', title: '-', descr: '-'
03/11/2011 13:54:22 DEBUG target_url: http://www.marktim.ru/photo/index.php/rest/item/425
03/11/2011 13:54:22 DEBUG UploadImage: url=http://www.marktim.ru/photo/index.php/rest/item/425; body={"name":"20080911-9924.jpg","type":"photo"}; method=post
03/11/2011 13:54:26 DEBUG headers: 1=>[value=>Fri, 11 Mar 2011 10:56:17 GMTfield=>Date2=>[value=>nginx/0.8.53field=>Server3=>[value=>text/html; charset=UTF-8field=>Content-Type4=>[value=>PHP/5.2.10field=>X-Powered-By5=>[value=>Thu, 19 Nov 1981 08:52:00 GMTfield=>Expires6=>[value=>no-store, no-cache, must-revalidate, post-check=0, pre-check=0field=>Cache-Control7=>[value=>no-cachefield=>Pragma8=>[value=>2field=>Content-Length9=>[value=>g3sid=XXXXX; expires=Fri, 18-Mar-2011 10:56:17 GMT; path=/; HttpOnlyfield=>Set-Cookie10=>[value=>g3sid=XXXXXX; expires=Fri, 18-Mar-2011 10:56:17 GMT; path=/; httponlyfield=>Set-Cookie11=>[value=>closefield=>Connectionstatus=>404,
03/11/2011 13:54:26 DEBUG result: '[]'
03/11/2011 13:54:26 DEBUG Error uploading image. (Code: 404)
P.S. This is higly desirable feature because well sorted albums must have backup for hosting change reasons.
Posts: 24
I suppose one additional solution to many problems.
A feature to copy this publish service with all albums and trees to new instance of this publish service.
Now we can "Create another publish service via Gallery3", but can't copy publish albums.
As for me it is preferrable to have same collection tree in lightroom for HD publish, G3 publish etc.
And export-import published collections.
But who respobnsible for implementation?
Posts: 1
Is this still being worked on. I just downloaded the plugin and when trying to upload
I've even tried making the album in the Gallery3 UI first but no dice.
Posts: 1
Has someone solved this Error?
I found a few posts about this error but no solution.
Win7 x64 | Lightroom 3.3 x64
Version: 3.0 (Santa Fe) | Apache/2.2.14 (Unix) PHP/5.2.14 | MySQL: 5.1.36
Posts: 16
PI,
Thanks for the great plugin. I see in the comments here that a few people have asked for the plugin to support transferring LR Keywords into G3 tags. Is that being developed? That, to me, would be HUGE.
Anyway, I just wanted to let you know I like your plugin a lot, and it works great for me.
Skip
Posts: 1
Hi Pi (3.14159),
I wanted to add my thanks to this thread! Following your directions the plug-in installed and configured in a snap. It's making my workflow to Gallery much easier! I'll echo the previous poster's comments regarding the possibility of exporting LR keywords into tags. That would make managing my photos much easier and free up double entering!
Thanks again!
Posts: 1
Hello please it all works wel. Tags are not working. Can somone please advice.
G3
Lightroom 3.3
Greetings.
Posts: 29
If you add keywords in LR directly at the first upload of a photo they get added to the G3 tags. However if you add/remove keywords later on and republish the photo in LR it doesn't get changed in the G3 tags. Pi is mentioning this as a bug on his site. I hacked into the G3 code to enable this (see this thread 10 posts up)
After my upgrade from G3 3.0.1 to 3.0.2 the plugin didn't work at all anymore (see: http://gallery.menalto.com/node/101847#comment-375013). As it looked like there is no active support on this plugin I decided to change to another LR G3 plugin (see: http://gallery.menalto.com/node/102120) although you have to pay for that one .....