Photography

"There is a crack in everything, That's how the light gets in" L.C.

“Dossier de Presse”

News

  • v6 – August 7 – Just code cleanup and FAQ section
  • v5 – July 30 – Option to list images in the content (instead of gallery)
  • v4 – July 24 – Create post or page
  • v3 – July 24 – Fix for Lightroom version 2
  • v2 – July 18 – Second release
  • v1 – June 27 – Initial release

Introduction

New Adobe Lightroom plugin to export pictures directly to your WordPress blog. It supports NextGEN gallery and WordPress Media library. You can optionally create a post including the exported photos (the post is left in draft mode, so you can edit it later).

Installation

You need NextGen installed to create a NextGen gallery obviously.

Installing a Lightroom plugin

  • Download the zip file
  • Unzip the file and copy it to your favorite plugin directory
  • Use the Plugin Manager to add the plugin and activate it

Using the plugin

  • Activate the plugin, as mentioned above
  • Select some pictures and activate “Export …”
  • Select the “Dossier de Presse” plugin in the pulldown menu
  • Make sure your WordPress blog has “XML-RPC” enabled (See WordPress settings).
  • Put the URL of your blog plus the “xmlrpc.php” add the end:
    • If your blog is at the page “http://example.com/journal”, the correct URL is “http://example.com/journal/xmlrpc.php”
  • Input your username and password for your WordPress blog
  • Select the appropriate export settings and post creation values
  • If you select to create an associated post, Lightroom will try to open the post page for you to edit and publish the post (you have to be logged in on your site for this to work).
  • Check the FAQ for any problems

Example

Here is an example of post generated by the plugin: post

Donation

It takes a lot of time and effort to make plugins for Lightroom. Think of making a contribution to cover some of my expenses. I do not enforce any limitation of use and do not check that you made a contribution, but try to comply. Thanks.

  • minimum of $2 and up (as you wish) for non-commercial usage
  • minimum of $20 and up (as you wish) for commercial usage. If you are a commercial entity or sell anything on your site (your art, houses, or anything else) and use my plugin, you qualify for a commercial donation
Non-commercial Commercial


Name

“Dossier de Presse” means “press kit” in french, I thought it was appropriate.

ChangeLog

  • August 7:
    • Some code cleanup (and some debug log). No new functionalities
  • July 30:
    • Option to list images in the content (instead of gallery)
  • July 24 (2):
    • User can select to create a post or a page
    • Fix for the custom content of post or page
    • Fixed the draft mode of the newly published entry
  • July 24 (1):
    • Fix for Lightroom version 2
  • July 18:
    • Button to test credentials
    • Removed size limitation
    • Second release
  • June 27:
    • Limitation to 300×300 pixels
    • Initial release

More plugins

Much more advanced plugins can be found at the following places:

FAQ

  • Do I have to donate ?
    • Consider the time you save with the plugin. If you’re (or trying to) making money with your site, you have to contribute. If you are not a commercial site, it’s your call.
  • When testing my site, it fails…
    • Make sure the URL you give is correct. It should add ‘xmlrpc.php’ to your site URL. If your site or blog main URL is http://myname.example.com/journal the correct URL is http://myname.example.com/journal/xmlrpc.php
  • When testing my credentials, it fails
    • Make sure the username and password you put are correct and that the user is allowed to write in the site (it should be an ‘admin’ or writer account)
  • My URL and account are correct, but it’s still failing
    • Make sure XMLRPC publishing is enabled on your site (see WordPress settings panel)
  • I can upload to a WordPress gallery but not to a NextGen gallery
    • Some web servers (provided by hosting sites) have limitations by default that user cannot create files and directories. It seems to be related to some PHP “safe mode”. Search on google for plenty of complaints and solutions. Basically, allow your user to create files and directories (safe mode off)
  • I can upload some small images, but fails for large images
    • Again, some web servers have limitations on the file size you can upload. Increase the values if needed. See your web server configuration and your PHP configuration (for instance the post_max_size and upload_max_filesize PHP variables)
  • It fails by I don’t know why…
    • Always update to the latest release (see download section) and send me the log file produced: send the “DossierDePresse.log” log file to (luc at lakephoto dot org) . On Windows, it’s in c:\user\My Documents on Mac, it’s in /Users/user/Document.
  • I don’t like the content automatically generated, but if I use “custom content”, I loose everything
    • The best solution is to leave the setting to automatic content, and do the final touches to the post or page inside WordPress. The post or page is left in an “unpublished” state after upload, so you have a chance to make the changes you would like. When ready, click publish.
  • You checked everything and it still doesn’t work with NextGen (but it does with WordPress):
    • Make sure you have a recent version of PHP installed (version 5.xx). The NextGen methods are not exposed through XMLRPC when using PHP4. Please update your server (at least for security reasons).
  • I get an error when I connect, the DossierDePresse.log says something like “error 412 precondition failed”
    • It seems that some security module (mod_security) blocks the XMLRPC traffic. You have to enable this or disable mod_security (not the best idea maybe). Some people advice to add the following in your .htaccess file

    <Files xmlrpc.php>

    SecFilterInheritance Off

    </Files>

  • I get an error when uploading pictures (in the log file, there are errors about creating galleries, directories, or uploading files):
    • Check that your WordPress upload directory is correct and can be written by your webserver. It’s accessible in WordPress, under “Settings” and then the “Media” screen, then check “Store uploads in this folder”. It should be something like “wp-content/uploads”
  • I want to see in NextGen the titles I wrote in Lightroom
    • Modify the post to add the template ‘caption’ to your gallery. Something like ‘[nggallery id=98 template=caption]’

Last edited on September 3, 2010

77 comments to “Dossier de Presse”

  • Hi Luc,

    unbelievable ! What a great plugin. Thanks for your work and input.

    I just installed it and easily managed to create a new nextgengallery with the files from LR 3 in it (WordPress 3.0.0). However, the images are merely 300 pixels wide instead of the 700 pixel I declared in the export process. Furthermore, the writing of a post entry doesn`t work … which way ever. I get an errorpage:

    http://www.sascharoesner.de/?p=1758

    although i was logged in. Might it be due to the fact that I use a static page as start page ? not a blog?

    THANK YOU !!!!
    p.s. running LR 3 on a MAC OSX 10.6 and WP 3.0.0

  • Luc,

    the logfile show’s not really interest things…

    08/11/2010 12:18:45 TRACE Dossier de Presse plugin: start
    08/11/2010 20:50:17 TRACE Dossier de Presse plugin: start

    the generated diagnostic file show’s these

    Plug-in error log for plug-in at: C:\Users\aschmidt\Downloads\dossier-de-presse-01.lrplugin\dossier-de-presse-01.lrplugin

    **** Error 1

    Die Nachbearbeitungsaufgabe dieses Zusatzmoduls konnte nicht erfolgreich abgeschlossen werden.
    Verweis auf eine nicht definierte Entität ‘raquo’.

    it means… “that an post process in this plugin don’t end’s successfully”,
    then the message “Link on an not defined entity ‘raquo’.

    any idea ?

    regards

    Alex

  • update: when i use the dossier-de-presse-06.lrplugin the same error message comes

  • Sacha,
    try the latest version (v6). Only the first release has a size limitation.

    Luc

  • When I export to a new page, I get the new page; however, I get the following errors reported at the very end of the process:
    Warning: require_once(wp-includes/theme-compat/sidebar.php) [function.require-once]: failed to open stream: No such file or directory in /home/northp2/public_html/Blog2/wp-includes/theme.php on line 1086

    Fatal error: require_once() [function.require]: Failed opening required ‘wp-includes/theme-compat/sidebar.php’ (include_path=’.:/usr/lib/php’) in /home/northp2/public_html/Blog2/wp-includes/theme.php on line 1086

    When I go to the page it seems ok, so I’m not sure what to think.

  • Hello Dudley,
    It looks like a problem related to your theme in WordPress. I’m not sure, but maybe the situation happens because the page I create doesn’t use a template, so it uses the default template. When you go to publish the page, you change the template in the ‘Page Attributes’ box on the right.
    Otherwise, it might be useful to check if your template or your WordPress installation is up to date.

    Luc

  • Ken

    I’ve put these comments on your blog as well:

    I’m excited about using your Lightroom plug-in, but I’m having trouble getting it to work. I’m using version 3.0.6 of your plugin, Lightroom 3.1, WordPress 3.0.1, and Nextgen 1.5.5, Windows Vista on my computer and PHP server 5.1.39 ( I think). I believe that “safe-mode” is turned off on my server.

    I’ve attempted to put a single image in a new NextGEN gallery called “test”. When I export from Lightroom the plugin creates a directory for the gallery (\wp-content\gallery\test), but it fails to create a directory in “wp-content\upload”. The permissions are the same in each case. If I also attempt to create a new post I get error warning pop-ups that say:

    An internal error has occurred: bad argument #1 to ‘openUrlInBrowser’ (string expected, got nil)

    The same errors occur when I attempt to put the image in WordPress gallery.

    The log file has been emailed. Thanks

  • luc

    If you’re getting 300 pix uploads, you’re running an old version. Try the current v6:
    http://luc.lakephoto.org/journal/dossier-de-presse/#download

    Send me the log file for debug:
    “DossierDePresse.log” log file
    On Windows, it’s in c:\user\My Documents
    on Mac, it’s in /Users/user/Document.

    Luc

  • Jen

    I must be missing something but I can’t find the download on this page?

  • Jen

    Ignore me, I found them the second I posted the above post!

  • Ken

    I figured out the fix when I was getting an “Unable to create directory” error. I also got error statements like this:

    An internal error has occurred: bad argument #1 to ‘openUrlInBrowser’ (string expected, got nil)

    In WordPress under “Settings” and then the “Media” screen I changed the “Store uploads in this folder” to “wp-content/uploads”. The original setting was something like (maybe not exactly) “mnt/kframpton/kenframpton.com/wp-content/uploads”. So I deleted all of the leading stuff. It works fine now.

  • i enabled the plugin in lighroom (2.5 64bit) and i enabled rpc on my blog. Yet when i test the connection from within lightroom, i get “Access to undefined global: result” ?!

  • luc

    Hi Martin,
    Any reasons to stick with version 2.5 ? Could upgrade to the latest v2 version (version 2.7) ?
    I just tried v2.7 on my Mac and it works fine for me (with plugin version v6). What OS are you using ?
    Check the FAQ, maybe there’s something there for you.
    Otherwise send me your log file:
    “DossierDePresse.log” log file
    on Windows, it’s in c:\user\My Documents
    on Mac, it’s in /Users/user/Document.

    Luc

  • Luc,
    thanks for the fast reply! i upgraded to 2.7 (same effect), but it works with 3.0 :)

    …i’m happy now…

    Martin

  • Mette

    Eh, I cant find the download link, where can I download the latest version?

  • Mette

    oh, there it is, see it now :)

  • Thanks for a great plugin for Lightroom. I’ve been looking for one like this for some time now and it really seems great.

    However, I have a question:
    Since I use LR to organize my photos I often use the meta data field “caption” for the description of a photo. Is it possible to also export the content of that field when uploading to WordPress so that it will be displayed when using Simpleviewer for NextGen?

  • Sarah

    Does this work with WordPress 3.1? I’m trying to install and keep getting ‘the plugin does not have a valid header’ error message when I try to activate it.

  • luc

    If you mean WordPress 3.0.1, yes it should work. That’s what I’m running. (to be clear it’s a plugin for Lightroom, not for WordPress).

    Luc

  • mikeelbon

    I am having problems in setting this lightroom plugin up.
    An internal error has occurred: bad argument #1 to ‘openUrlInBrowser’ (string expected, got nil)

    I have this as the first error code in the error log file
    server error. requested method ngg.installed does not exist

    I have ngg installed in wordpress plugin folder and default folder set for uploads. my default setting in wordpress for ngg gallery folder
    wp-content/gallery/

  • luc

    Hi Mike,
    the error ‘openUrlInBrowser’ is because everything failed before. If it says that ‘ngg.installed’ does not exist the plugin cannot work with NextGen. Please check the FAQ, you might be using an old version of PHP.

    luc

  • mikeelbon

    Hi Luc.
    My server is using php 5.2.5 I’m using wordpress 2.7 and next gen ver 1.3.3.
    I have xml-rpc enabled in wordpress.

    Mike

  • luc

    Hi Mike,
    Could you try to upgrade to the latest NextGen (1.5.5 I believe) ?
    In any case, please send me your log file for me to investigate (see FAQ).
    Thanks,

    Luc.

  • [...] plug-in voor Lightroom heb ik getest en ik moet zeggen: dit is weer eens [...]

  • [...] directement exportés de LightRoom 3 vers WordPress grâce à l’excellent plugin « Dossier de Presse« . Tags: 7D, canon, center parcs, GPS, lightroom, moutain [...]

  • [...] directement exportés de LightRoom 3 vers WordPress grâce à l’excellent plugin « Dossier de Presse« . [...]

  • luc

    Hi Hans,
    If you use the template ‘caption’ in wordpress, it should show the title put in Lightroom. I know that I also modified my NextGen installation to include EXIF data by default. For instance:
    – to show ‘title’ :
    [nggallery id=98 template=caption]
    – to show EXIF:
    [nggallery id=98]

    Let me know if that helps, but I think it’s up to NextGen to use the correct fields. Maybe somebody that knows more can comment…

    Luc

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>