
Initial Preview · Install Instructions · “Piglets” (Plugin Extensions) · SmugMug
DOWNLOAD smugmug-20080516.41.zip
(version history is below)
Some users on Windows get a FormatMessageW failed error when uploading with this or other plugins. Most users don't get it, but those that do seem to get it often.
If you get it, you may find a solution at Alexander Kiel's blog.
My Lightroom Tools
- Jeffrey's Lightroom Configuration Manager
- Adobe Lightroom Custom Metadata-Viewer Presets
- Export plugins: Zenfolio · SmugMug · Flickr · Picasa Web
- “Piglets”, Lightroom Plugin Extensions
- List of known piglets
- All my Lightroom-related posts
- Adobe Lightroom 1.x Resources
- My photo-tech posts (color spaces, focus accuracy, tripod testing, and other eclectic subjects)
Version History
| 20080516.41 | Small fix to handle an upcoming change at SmugMug. |
| 20080411.40 | Fix for the "_update_status" bug that those few who export non-sRGB JPGs ran into. |
| 20080319.39 | "FormatMessageW" errors caused by newlines in comments have been fixed. Thanks to David Underhill for identifying the bug and supplying a fix. "FormatMessageW" is a general “something went wrong during the upload” error. Most users who get it are probably affected by Windows networking issues for which Alexander Kiel's suggestion is a more likely candidate, but if you have newlines in your captions, you'll want the fix in today's new plugin build. |
| 20080314.38 | Minor update to allow the plugin to work with Lightroom 1.4. |
| 20080221.37 | Fixed “Visit destination gallery after upload” feature, which was broken by a recent SmugMug API change.
Minor UI tweaks for better appearance on a Mac. Updated Swedish translation. |
| 20080217.36 |
|
| 20080209.35 | Updated the SmugMug interaction code to match some security upgrades that broke the plugin.
New French translation file.
Includes New version (20080206.5) of my Run Any Command piglet, which allows for more translation. |
| 20080202.34 | Refactored a bunch of the destination-gallery-related code — could have introduced some bugs. You can now create a destination gallery when using a preset where the destination is marked “select at export”.
Includes New version (20080130.4) of my Run Any Command piglet. Fix (perhaps) for an LrHttpDebug bug introduced in .30 |
| 20080128.33 | Tidied up some mistakes in the translation hooks. Interested in doing the translations for my plugins for your favorite language? It's a difficult and thankless job, but you earn good karma for giving to the greater community. If interested, please contact me (jfriedl@yahoo.com). |
| 20080123.32 | Fix "internal error" bug introduced in previous build, that affected those upgrading from several versions back. |
| 20080122.31 | Added "Run Any Command" Piglet.
Some internal refactoring to better support the piglet infrastructure. |
| 20080117.30 | Have export dialog allow file types that any enabled piglets allow. Bail if the resulting filename has an extension that can't be uploaded. |
| 20080115.29 | Added the piglet manager for fourth-party add-ons |
| 20080109.28 | Doh, properly escape usernames and passwords during login authentication. |
| 20080109.27 | New and tidied French translation |
| 20080107.26 | Housekeeping changes to allow auto-install on OSX |
| 20080104.25 | Using a preset with a destination gallery set to "ask at export" no longer limits the selections to those that existed at the time the preset was created. Due to my coding bug, the gallery-refresh I intended never happened; it does now. Thanks to Ben Pharr for reporting the error. |
| 20071227.24 | Updated French translation |
| 20071222.23 | Ensure that a long login status message does not crowd out the logout button |
| 20071217.22 | Update to the caption logic. Properly handle a no-gallery situation. New French translation file. |
| 20071213.21 | fix bug introduced in .19 |
| 20071213.20 | new French translation file |
| 20071213.19 | Can now filter the export so that only images previously exported to SmugMug will be processed, or, conversely, only images that have not been previously exported to SmugMug. |
| 20071212.18 | Minor internationalization prep. |
| 20071210.17 | More internationalization prep. Added a first draft of a French translation, courtesy of Gilles Theophile. (Contact him with any suggested changes.) |
| 20071205.16 | Now supports subcategories. Can sort the gallery list by title or recentness. Can now export the original master file. Can now note an image resolution in pixels per inch/cm in the image metadata. |
| 20071204.15 | More internationalization prep. |
| 20071204.14 | Fixed keywording.
Added the ability to enter extra keywords in either SmugMug style (space separated), or Lightroom style (comma separated). Lots of internal work to lay the groundwork for internationalizing the plugin. |
| 20071127.12 | Send along a per-install random identifier with the version check, so I can count how many of each plugin is being used. |
| 20071127.11 | Fix typos introduced in previous version |
| 20071126.10 | Now handles properly ampersands in SmugMug galleries/groups Added some HTTP error trapping in an effort to get around the 'FormatMessageW failed' error that some Windows users have been seeing:
When the trapping is enabled, those errors are ignored, which may allow things to mostly work, or may simply lead to silent failure. Features that rely on the result of the upload (the new photoid) will stop working for uploads that experience a trapped error, such as the 'delete previously uploaded versions' feature. This may not help, but it's worth a try until the underlying issue can be found and resolved. |
| 20071125.7 | Added a "Save to Local Disk" section to the dialog:
|
| 20071124.5 | Allow for any non-blank login name |
| 20071123.4 | Added plugin debugging option, to track HTTP calls |
| 20071123.3 | Report under the caption-selection area the result of what is chosen.
Added 'extra tags' to the upload-destination section (renamed 'extra keywords' as of 20080217.36). |
| 20071121.2 | ensure we don't send any empty HTTP headers, as that tickles a bug in LR |
| 20071121.1 | initial public release |
Having just switched to Mac from PC, I’m looking for Mac replacements for PC-only tools I’ve been using. I’m very glad to [almost] see a LR plugin for Smug and Zen. Your comments note that since you don’t personally use a photo sharing website that your plugins may be technically correct but not necessarily work functionally the way folks expect, or could best use.
Well, staff at both SmugMug and Zenfolio gave me help and feedback while creating these, so I’m sure that the plugins are not totally without real-world usefulness
—Jeffrey
If you want to improve functionality of your plugins, you might take a look at the excellent http://www.starexplorer.com/ PC-only program for an example of a powerful yet easy to use interface to Smugmug. If only Nikolai offered a Mac version!
Sheesh—this is the worst tease in a long while. I could download the SDK and learn programming in less time.
Okay I retract it—you’re unimpeachable.
Just installed the SmugMug plugin. Works very well. Thank’s a lot. Adobe just sold a copy of Lightroom because of you. Proper export plugins was the only thing I really missed from Aperture.
You rock!
This looks like a great tool, but I think I have found a bug… I can’t login. My email address (login ID) contains a ‘.’… i.e. ab.cd@ef.gh (not .com). As soon as I type the first ‘.’. the login box greyed out!
Sorry about that… fixed in version 20071124.5. —Jeffrey
Little bug (in 20071123.4): If a Gallery name has an ampersand in it, the ampersand shows up in the XML response as “&”, but then the LR menu tosses the ampersand, leaving just “amp;”.
(No effect on any activity, since you are surely using the AlbumID for subsequent processing, not the name.)
Solution: Replace “&” with “&&” before setting up the table bound to the menu.
Probably something equivalent needs to be done for <, >, and a few others, but only “&” is commonly used in gallery names (mine, anyway).
–Marc Rochkind
OK, my own submission got its “&” replace by just “&”, so it doesn’t make much sense as it comes across. But, I think you get the idea. The idea is to replace “&” with “&&”.
Hope I outfoxed it this time…
–Marc
This is a known bug in Lightroom. I now have (as of version .10) a fix that codes around it. —Jeffrey
Jeffrey–
This worked for me in preparing the table that’s bound to the menu control:
value = string.gsub(value, ‘&’, ‘&&’)
where value is what I got from the XML response.
–Marc
Just a little Lua tip… you can write that as
value = value:gsub(’pattern’, ‘replacement’)
which is a bit more concise. Something along these lines is in version .10. —Jeffrey
Great work! The latest version fixes the FormatMessageW error for me,
Cor
This plugin has awesome potential…and it was nice to see the FormatMessageW error resolved. However…something weird is happening. I’m trying to export 157 photos to SM. The first export only uploaded 46 photos, the second export 25. Both exports appeared to run through every single one of the 157 photos in Lightroom. Anyone else have this issue?
The FormatMessageW error wasn’t really resolved, but just ignored. It’s likely that it’s actually causing the upload to fail all those times, but because it was ignored, the upload attempts could continue, and some made it through. The version you got was one I let out into the wild by mistake — version .10 now makes these issues a bit more clear, and makes that error trapping an option. Hopefully, Adobe will be able to come up with something to really fix it, but until then, this is the best I could come up with. —Jeffrey
I can’t find the SmugMug plug in file in your zip file.
I’m noticing that inherited keywords are not being exported with the uploaded file. If I check the option to save a local copy, all hierarchal keywords are in the resulting jpeg and are retained by a manual upload to SmugMug.
I don’t know if my post from last night got through — I am getting an error message that says that the plug-in is “either already enabled or is not compatible with this version of Lightroom” — is it compatible with LR 1.3?
When I fill in my nickname and password and click on ‘Login’ it gives me a messagebox telling me that my internet connection is down. This is definitely not the case. Can someone help me ?
Thanks.
Love the pluggin!
I am a windows user and was getting the FormatW error EVERY time. I changed the settings in the Metadata & Upload management section so that ALL of the sources were set to (unused). I haven’t gotten the error since. I hope this helps…
Alex
Alex, I tried your suggestion and I still get the FormatMessageW error with all of the sources set to (unused). Something else is still going on.
David,
Bummer! I tried to change around some of the other settings to see if could get an error. It is working flawlessly for me now.
Good luck,
Alex
I am one of those who gets the FormatMessageW every time. Does the filter in v19 know about the error and which file were uploaded and which failed? If I do an upload and half of them fail, can I run it again with the filter on and it will only try to upload the ones that failed?
The filter works with respect to the images it knows were or were not uploaded, which, due to the FormatMessageW error, may be different than the actual set of images that were/weren’t uploaded. It’s possible for an image to be uploaded successfully, but for the plugin to not recognize it, so such an image would pass the “only new” filter and be exported again. Using the filter in this way may provide some relief to the problem, but it’s not guaranteed.
And does the naming convention of the files need to be constant? For example, if I try an upload with “BrianSoccer_sequence#” and some fail or I do a re-edit, then try to upload a portion of the original set the new sequence number will be different. Does it just know which files I have already uploaded or does it compare the file names in my gallery with the new ones I am uploading and if the file names don’t match it assumes I haven’t uploaded the file?
The filenames are not relevant to this issue, so no worries there.
It’s so frustrating hearing about these FormatW errors. I hope Adobe is working on it, although I haven’t heard anything one way or the other…. —Jeffrey
Worked for me very well. (First I had to figure out where Lightroom kept the modules files.)
It’s a very smooth and well thought out extension, and will prove extremely useful and time-saving. Many thanks for your great work.
J
The plugin is great. Thanks for creating.
I was using version 12 with no problems. Just upgraded to version 21 and am getting FormatMessageW error. Tried gong back to version 12, but the error still occurs. Was something introduced between 12 and 21 that might be the cause?
S
I’d like to say “no”, but since no one really knows what causes the problem, I’ll say “I don’t think so.” Many had the problem before that, and if you reverted, there should be no traces of the new one left, so if it’s still happening, I’d guess that it starting when you moved to 21 is just coincidence…. —Jeffrey
Thanks very much for your LR plugins. I am using the flickr one and smugmug one - and they work just great. It is so nice to be able to upload straigh from LightRoom to these sites. No more need for the awful Flickr Uploadr !
thanks again !!
Hi Jeffrey,
I was so excited when I saw this, but I cannot get it to work. I opened LR and there was no option for smugmug. Admittedly, I have never installed a plug-in, so I’m sure I did something wrong. When I unzipped the file, I got a message saying,”bad header” Can you help–I know, you are probably sorry you posted this!
Thanks!
Karen
Jeff-
Thanks for the rockin’ plug-in. This totally streamlines the process of uploading pictures to my SmugMug site. No need to save to the desktop then upload outside of that and anytime you can cut a step or two out, you save time - more time to take pictures and less time loading them!!
-Jason.
I have corresponded with you before. I am running Leopard (maybe that’s the issue?), but have installed, deleted and re-nstalled you plug-in for SmugMug export, and the SmugMug option just does not appear as an alternative to “Export to Disk”. When I locate the plug-in in the Modules subfolder under LR and double-click on it, I get a message saying that the plugin is “already installed or is not compatible with this version of Lightroom”. But if it’s already installed, that should mean that I would see SmugMug as an alternative to “disk” when I bring up Export, right?
Sorry, I’m acutely aware that you are doing this for free.
This plugin rocks! I just wanted to say THANK YOU!!!
One minor, tiny-tiny issue… Choosing the gallery if you have a LOT of galleries from a scrolling list is SLOOOOOW.. Any chance you’d change it to a hierarchical view? or at least allow a drag-bar to go from top to bottom quickly?
Both ideas sound great, but alas, the API doesn’t allow for them yet )-: I did make an attempt to address the situation by adding two sort options; if you can think of anything else, please let me know —Jeffrey
Also, I love Colour-Science’s i2e Image Editor; I don’t think you can feed it files and have it work automatically, but, if possible, the end result would be amazing. One click to enhance, mogrify (using your great piglet functionality), i2e, and upload to smugmug. That would TOTALLY rock!
Thanks again!
I commented last month and wanted to give you an update. I used to have the FormatMessageW error every single time. Then I tried Alexander’s fix. I had to use the 180 timeout, but it now works.
This is a great plugin. Thanks.
I did notice the two sort options; a welcome relief–I just named my “Archives” as Zzzzz! LOL.. BUT, perhaps have two or three dropdowns? Choose the Category first, then, the Album? or.. even add a second sort to it; alphabetical vs. new ascending or descending?
Oh, and I can’t figure out how to get i2e to open a file as part of the command line.. Very disappointing. But, I guess that’s to make you want to buy the REALLY expensive version.. As if $780 (full price) wasn’t quite expensive enough!
And.. if you’d indulge me, any chance of having the image filename added to the keywords automatically? Smugmug doesn’t like to search on filenames in the description… So, maybe some options to add the filename to keywords or description or title or …? Maybe that’ll make it searchable finally..
Again, I just have to say how much I think your product rocks! It’s on my “must have” list–it’s almost beating out Star*Explorer!!
Great add in for lightroom. Thanks for doing this!! Great job.
I am getting an error when uploading.
“Error Response from SmugMug: wrong format”
Bytecount given: xxxx, received: yyyyy, MD5SUM given: recieved: ?
Maybe a problem with smug mug this morning?
First of all, thanks for the plugin! I’ve been writing my own photo site code to run on a server on my home machine because I could have LR export directly to it; after reading about your plugin and trying SmugMug, I’ve dropped that project and am going to use SmugMug.
On one of my galleries, I’ve been getting the dreaded FormatMessageW error, even after running Alex’s registry fix. I noticed that in this particular case, each of the pictures that had a failure had no Title set in LR. Coincidentally, my priorities for image caption are Title, Headline, Caption, Generated Filename.
My ears tend to perk up at interesting coincidences like this, so I added a Title to one of the offending pictures and reran my export with “Export New” as the setting. The picture I’d just added a Title to now uploaded fine, and the other Title-less pictures still didn’t upload.
So it looks like there’s a problem somewhere in the Metadata-to-Caption code that can trigger a FormatMessageW in cases like this.
Other possibly relevant information: I’m exporting/uploading the pics at their original sizes (3872px x 2592px) with 80% JPEG compression. No minimizing EXIF, and LR Keywords are written as a hierarchy. Jeffrey, if you need any more information to help track this down, feel free to email me (I provided my email address with this comment) and I’ll help out any way I can.
Eureka! We’ve corresponded probably more than you would have liked, but I had never been able to find the plug in after installing. I don’t know whether it’s because I installed the latest version just now, or because in LR-File-Export I clicked (for the first time) on Export to Disk, but when I did that I got a dropdown that offered Export to SmugMug as an option. I just thought you might want to know that for me anyway, the SM option doesn’t appear on the top of the Export box as it does in your tutorial. My configuration is Mac Pro & Leopard. Next step is to actually use it — next photo op is in a few days.
Thanks!
after upgrading to the latest build (33) of the SmugMug uploader, I keep getting the following error.
Error ,
,An internal error has occurred: [string “LrHttpDebug.lua”]:138: attempt to index local
,’ReturnHeaders’ (a nil value)
I tried previous builds until it started working again at build 30. I can send additional information from the .log file if needed.
Sorry for the duplicate posts, but i figured you might see this one sooner.
Thank you, thank you for creating this plugin. It is completely effortless now to add photos to my smugmug page. Your plugin is a joy to use.
After installing the Alexander Keil’s “fix” for the Format Message W failed, I am now getting another error message- Error Response from SmugMug- System Error (no login). Please help. This would be a big help and time saver if I could get it to work right. Thank you.
This morning something new happened to me, when I load the plug and go to look for the gallery section ….
SmugMug changed the API, which broke things. Version .35, which contains updates that SmugMug sent to me, should fix it. —Jeffrey
I just posted a message to Smugmug to see if anything changed in the maintenance window last night. It looks like it stopped working for all of us since yesterday.
I appreciate that you did that. David at SmugMug sent a patch to me, which now finds itself as version .35. —Jeffrey
I love this plug-in and have been using it for a fews weeks - it has saved me hours of messing around and I now get a consistent result for all my photos in SmugMug.
That was until version .35. Since Sunday if I create a gallery with the plug-in instead of being taken to the gallery once the upload is complete, I am taken to the SmugMug homepage. The gallery is created and the photos uploaded but oddly the option to watermark no longer exists in the menu listing. The plug-in doesn’t upload my keywords (which for me are very important) and it ignores any customisation I may set up within SmugMug e.g. my watermarks.
I use a MacBookPro running Leopard and of course Lightroom 1.3.
Any ideas what I might be doing wrong or is going wrong?
Excellent - thanks Jeffrey - it’s back to its helpful best! Now all I need is a rugby match to shoot…:-)
I love this plugin and have been using it for quite a while now and it has made my life easier.
This might seem stupid but would it be possible to allow this to update keywords and captions in smugmug without uploading an image? In lightroom I add a captions and keywords to my images and that is where they come from in smugmug. I would like to update keywords/captions without actually uploading an image to smugmug. I don’t even know if smugmug allows that but I thought I would throw that out there. Just think it would be real nice to maintain captions and keywords in smugmug through Lightroom.
In theory it’s possible to refresh the keywords for images you’ve already uploaded to SmugMug, but you’d have to keep track of which ones you wanted to update yourself (there’s no way for the plugin to know which have changed), so even if I added it, it’d be less than idea. )-: —Jeffrey
Thanks for the great plug-in!
I saw a comment in November about failure to export hierarchical keywords, and I’m running into the same problem. Any plans for a fix? Specifically, whether I check the “Write keywords as LR hierarchy” button or not, none of the “parent” keywords show up in SmugMug.
Trying to upload from Lightroom 1.4 to Smugmug. Got this message:
An internal error has occurred: Win32 API error (unknown error—formatMessageW failed) when calling HttpSend Request from private_AgHttpClient_post_L.
I did several successful uploads yesterday, but I tried to upload 30 files last night and it wouldn’t work. Today I can’t upload any.
Like it alot when it works.
After tinkering with Jeffrey’s code, I found a small bug which can cause this FormatMessageW error to occur.
The Problem: HTTP is a line-based protocol. However, whatever is being sent as the caption is parsed to encode newline characters (\r or \n) in their HTTP encoding (hex D and A, respectively). Therefore, any caption which has one of these characters will break the semantics of HTTP and cause the query to fail.
David’s original comment then went on with more details, and even a patch to correct the bug. I’ve gone ahead and incorporated a fix into version 20080319.39, so users with newlines in their comments are encouraged to upgrade. See the version history above for more. Thanks David! —Jeffrey
Version 39 seems to work! I was getting the dreadful error message every time. The plug-in did it’s job the the trapping on, but this is definitely better.
Good job, and thank you!
(Reposting here, as I might have posted in the wrong thread…)
I love this plugin! Very useful, but just ran into an issue of disappearing pictures.
I’ve found what seems to be a major bug in the Lightroom SmugMug Export plugin. I can consistently reproduce the problem. Please email me if you know of a resolution to this issue.
Steps to create the problem:
1. Upload Image-1.jpg to Gallery1.
2. Upload the same image with a different name, let’s say Image-2.jpg to Gallery2.
3. Go back to Gallery 1 and notice that Image-1.jpg is now gone.
4. Then go to back to Gallery 2 and verify the new image is still there.
I tried repro’ing the issue using SmugMug’s MacUploader, but it works fine. Please advise.
Thanks,
Jacob
Thanks, Jeffrey.
I appreciate all your work on this and all the LR articles.
Hi! I’m getting the exact same error as Randy…have been able to upload photos before, but now I can only get, say, 1 of 14 to upload before I receive this error:
An internal error has occurred: Win32 API error (unknown error—formatMessageW failed) when calling HttpSend Request from private_AgHttpClient_post_L.
Has anyone figured out a fix for this yet?
Thanks!
I have tried to install this several times without success. I am using OS X 10.5.2 on a new MBP with Lightroom 1.4 and no luck. I Have Macdaddy uploader installed (also not working) and Flickr export plugin installed (this works).
Anybody have any help ideas?
I agree with all that this plug-in is very slick; thanks! I’ve been using it for months on my old iMac G5. But now I’ve got a problem…
Recently I installed the current version of the plug-in on my Intel MacBook, and it doesn’t work. Same version of Lightroom on both machines, same version of the plug-in, trying to upload the same files to the same SmugMug account… but the G5 works and the MacBook doesn’t.
When I try to upload from the MacBook, the upload seems to start… then stalls. Eventually, after a long time, the plug-in throws a “Wrong format ( ) ” error message.
I tried it with logging on, and the last line in the log file is:
call header | field = “X-Smug-Caption”
Any notions what’s going on, and, ideally, how to stop it? Thanks…
Great plug-in, really like it. I use it for SmugMug and I’d like to suggest that in the “Create” section, Category drop-down, could you bold or star or otherwise indicate which categories are already in use? This would greatly help an unintended category explosion.
I am having the same problem as “The Supreme Dalek” I get one or two images loaded, it stalls for a long time and then says the “Wrong format ()” error message….please help…thanks…Nate
I’m getting that “Win 32 error” also.
However, the pic still uploads to SmugMug…but not to the Gallery I designated.
Nathan (person having same trouble as myself) — are you by any chance using an Intel Mac? The plug-in works fine on my G5, but not on Intel. I’m asking to try to help Jeffrey by narrowing down the problem as much as possible…
(PS — I still get the same error with the latest 411.40 version of the plug-in)
I love you and your plugin.
I am using the latest version of Windows vista with your latest software. I am getting an error about 1/4th of the way through the upload.
WIN 32 API error (unknown error format message W failed) when calling http send request for private ag Http client post L
Hi Jeffrey
Great plugin - should be just what I need. However whilst it sometimes exports a picture or two, more often I get
Warning
INTERNAL PLUGIN ERROR
Bad upload: empty response
Using LR2.0 beta, and latest version of your plug-in
Any ideas?
Sorry - post above should have been on the lightroom flickr plugin - please delete and I’ll post it there.
When I am trying to export photos from lightroom to smugmug i get a
> series of error messages as shown below:
>
>
> Warning: INTERNAL PLUGIN ERROR Smugmug info refresh aborted
>
> Then a window comes up that says: An internal error has occured:
> [string “SmugMug.lua”]:301: attempt to concatenate field ‘_session_id’
> (a nil value)
>
> Then the export stops in lightroom
>
>
>
> Any help on fixing this would be appreciated.
>
Hi
Thanks for your SmugMug plugin for the Mac. I’m having a problem exporting 1113 photos to a gallery; it stop saying that the internet connection has dropped. I’ve tried it a number of times with no avail.
I am using 20080319.39 and the is an indication of the latest version 40, but trying to install that results in a notification from LR that “The upgrades have already been applied or are not compatible with this version of Lightroom” (now why can’t they just give 1 reason at a time to trouble-shoot?). This happened with both versions 1.4 and 1.4.1.
Kind regards
Nicholaus Hall
I use Smugmug and Lightroom 1.4. I downloaded the file, extracted it, and moved into Lightroom. When I attempt to Export I can see it and pick all the selections, however as it is performing the export I get:
An internal error, WIN 32 API error when calling HTTP send request…..
Great plugin, however, after a couple of days I got the following error message in lightroom 1.4.1:
Warning: INTERNAL PLUGIN ERROR Smugmug info refresh aborted
An internal error has occured:
[string “SmugMug.lua”]:301: attempt to concatenate field ‘_session_id’
(a nil value)
I tried reinstalling the plugin to no avail. Any thoughts?
Thanks,
Brian