“Dossier de Presse” plugin

News

  • April 21, 2015: Works fine for me with Lightroom 6 – Lightroom CC (let me know in case of problems)
  • August 25, 2013: v13 temporary version dealing with NextGen 2.0.x. It should still work with version 1.9.x (I still use this version)
  • July 31st, 2013: Seems Oh SO NOT OK with NextGen 2.0.x. A lot of users on WordPress forums have issues with the update, so I’d advise to wait a little bit before updating (it breaks some nextgen plugins and templates). Let me know if you notice any problems
  • June 11th, 2013: Works fine with LR5. Let me know if you notice any problems
  • April 15th, 2013: Seems to work fine with LR5 Beta. Let me know if you notice any problems
  • December 18th, 2012: Use NextGen 1.9.10 (and up) if you’re using WordPress 3.5
  • December 16th, 2012: See this post, if you want to fix NextGen 1.9.8 and WordPress 3.5
  • December 16th, 2012: It seems WordPress 3.5 changed its API. I’m looking into the problem. Stay with WP 3.4.x if you need the plugin. I’m looking into it…
  • March 6th, 2012: It seems to work fine with LR4 final. Let me know if you notice something wrong
  • If you’re interested, it seems to work fine with LR4 beta 1
  • v12 – December 4 2011- Fix for NextGEN 1.9.x (and hopefully up)
  • v11 – June 24 2011- Fix for NextGEN 1.8.x
  • v10 – December 7 – Fix if gallery already exists
  • v9 – September 28 – Dealing with NextGen 1.6.x
  • v8b – September 26 – Another attempt to fix date/time gallery name (re-download v8)
  • v8a – September 24 – Bug fix in the date/time gallery name (re-download v8)
  • v8 – September 23 – Added optional date and time in gallery name
  • v7 – September 20 – Minor tweaks in the post generation
  • 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). Also, XML-RPC functionality is turned on by default since WordPress 3.5.
  • 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

Download

  • Here is the link to the current release v13a: Dossier-de-presse-13.lrplugin (version 3.0.13.300000). To deal with NextGen 2.0.x
  • release v12: Dossier-de-presse-12.lrplugin (version 3.0.12.300000)
  • release v11: (version 3.0.10.300000)
  • release v10: (version 3.0.10.300000)
  • release v9: (version 3.0.9.300000)
  • release v8: (version 3.0.8.300000)
  • release v7: (version 3.0.7.300000)
  • release v6: (version 3.0.6.300000)
  • release v5: (version 3.0.5.300000)
  • release v4: (version 3.0.4.300000)
  • release v3: (version 3.0.3.300000)
  • release v2: (version 3.0.2.300000)
  • release v1: (version 3.0.2.300000)
  • It is tested on Windows 7 64-bit and MacOS 10.6.4 , both with Adobe Lightroom 3.0 64bit. I would be interested to hear from your experience with the plugin, especially with other versions of Lightroom and other OSes.
  • You can post some feedback at my blog entry or drop me a note at “luc at lakephoto dot org”

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

Or support this site by buying on Amazon through this link (it doesn’t cost you anything, and brings me a little, to support the cost of hosting, software licenses, time and equipment):

Amazon referal 1 Amazon referal 2

Name

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

ChangeLog

  • August 2013: v13
    • Fix NextGen v 2.0.x.
  • December 4 2011:
    • Fix NextGen v 1.9.x.
  • June 24 2011:
    • Fix NextGen v 1.8.x.
  • December 7:
    • Fix for the situation where the gallery already exists. It adds the pictures to the gallery. Handled better now.
  • September 28:
    • API change in NextGEN 1.6.x (creating a gallery now returns the new ID, so no need to search for it. Still support for NextGEN 1.5.x
  • September 26:
    • Another attempt to fix #$%!@$ date/time gallery naming
  • September 24:
    • Bug fix in date/time gallery naming
  • September 23:
    • Added an optional date and time suffix to the gallery name (time and date of the gallery publication)
  • September 20:
    • Minor tweaks in the text of the generated posts (added template caption, added main picture in image list format, …)
  • 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). XML-RPC functionality is turned on by default since WordPress 3.5.
    • 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 ‘
  • I would like to see the title, captions and keywords of my pictures imported into NextGen database
  • When you export your photos, make sure to deselect ‘Minimize Embedded Metadata’ in to the Metadata section of the export panel.

Last edited on September 28, 2010

491 thoughts on ““Dossier de Presse” plugin

  1. Luc I apologize, I’ve wasted your time. The problem was WP resetting an option in “Settings->Auto Image Posts->Default Post Status=” for my purposes it would equal “Draft” but it defaulted to “Publish” for some reason (perhaps the recent WP updates). For the longest is was “Drafts” on both blogs.

    So many variables when it comes to troubleshooting WP problems :(

    I’m really sorry I thought it was your plugin and wasting your time.

    Chris.

  2. Is there any possible server setting that can cause error: invalid at the top level od the document , when trying to export or test connection in lightroom 5? It doesn’t matter if I give right username or password – there will be always same error. Server mod_security is off. PHP XML is enabled.
    I’ve checked the xmlrpc.php file respond and it’s working fine. Also I’ve testes plugin at diffrent server and there was no error.
    I’m little confused.

    Thanks

    1. Make sure that the login/password user can post in the wordpress server.
      What do you get when trying to validate the user account from the plugin ? (you should get two OK popups).
      Send me your log file if you want me to have a look (see FAQ for details).

      Luc

  3. I tried with diffrent user settings, same message.
    Validate gives same message: invalid at the top level od the document

    It’s only one WP site/ one server problem.
    I’m sending log, maybe you will give me a hint.

  4. I got the error, pls help me to troubleshoot this. many thank.

    TRACE Dossier de Presse plugin: start
    ERROR http error: 400
    DEBUG getGalleries> pairs

    1. Not enough information, but from the first line it looks like you’re running an old version.
      Please update to the latest release, and try again.

  5. Luc,

    What might cause:

    Dossier de Presse plugin: start – version 3 0 13
    2013-08-27 15:14:38 +0000, DEBUG supportedMethods 1
    2013-08-27 15:14:38 +0000, DEBUG Found the created gallery 1 Gallery
    2013-08-27 15:14:39 +0000, DEBUG FILE /var/folders/BLAH/BLAH BLAH/T/BLAH BLAH BLAH/blah.jpg blah.jpg
    2013-08-27 15:14:45 +0000, ERROR http error wp_uploadImage: 503 : service unavailable
    2013-08-27 15:16:04 +0000, DEBUG UploadTask.testConnection: num_methods 1
    2013-08-27 15:16:05 +0000, ERROR http error wp.getUsersBlogs: 503 : service unavailable
    2013-08-27 15:16:14 +0000, DEBUG UploadTask.testConnection: num_methods 1
    2013-08-27 15:16:15 +0000, ERROR http error wp.getUsersBlogs: 503 : service unavailable

    to constantly happen?

    The only thing to change was, well, the update to WP 3.6.

    When testing connection I get the following: Credentials failed
    When trying to upload a photo I get: An internal error has occurred: ?:0: attempt to index field ‘?’ (a nil value)

    Any ideas?

    1. When testing connection I get the following: Credentials failed

      Don’t even try to upload pictures if this happens. It’s not going to work.
      Something is wrong with your login/password and/or the URL to your blog.
      When validating, you should get two OK popups: one for the URL and one for your crendentials.
      And if you’re using Nextgen 2.x, make sure you have the latest latest version, otherwise stay with 1.9.13

      Luc

  6. But the login and password are correct and I’m able to login and edit my blog. I copy and paste my password into the plugin and it tells and test connection and I get Credentials Failed. I’m not typing the password I’m copying and pasting. I don’t think this has to do with the password though.

  7. BTW I have two different blogs and two different presets. Both are showing the same error, Credentials Failed. I haven’t done anything other than update to WP 3.6. In the .log file I see “service unavailable” as I had noted above.

    1. As a test, try to change your password to something with only letters and numbers (nothing outside the ASCII 7-bits set).

      Luc

  8. Ok tried that test changed password to something short and letters only I get Connection OK and Credentials Failed.

    This is what happens in the log:

    2013-08-27 17:03:20 +0000, ERROR http error wp.getUsersBlogs: 503 : service unavailable
    2013-08-27 17:03:24 +0000, DEBUG UploadTask.testConnection: num_methods 1
    2013-08-27 17:03:26 +0000, ERROR http error wp.getUsersBlogs: 503 : service unavailable
    2013-08-27 17:04:52 +0000, DEBUG UploadTask.testConnection: num_methods 1
    2013-08-27 17:04:54 +0000, ERROR http error wp.getUsersBlogs: 503 : service unavailable
    2013-08-27 17:05:05 +0000, DEBUG UploadTask.testConnection: num_methods 1
    2013-08-27 17:05:07 +0000, ERROR http error wp.getUsersBlogs: 503 : service unavailable
    2013-08-27 17:07:08 +0000, DEBUG UploadTask.testConnection: num_methods 1
    2013-08-27 17:07:10 +0000, ERROR http error wp.getUsersBlogs: 503 : service unavailable
    2013-08-27 17:07:29 +0000, DEBUG UploadTask.testConnection: num_methods 1
    2013-08-27 17:07:30 +0000, ERROR http error wp.getUsersBlogs: 503 : service unavailable
    2013-08-27 17:07:41 +0000, DEBUG UploadTask.testConnection: num_methods 1
    2013-08-27 17:07:43 +0000, ERROR http error wp.getUsersBlogs: 503 : service unavailable

  9. Yes the user I’m using is allowed to upload images and make posts, I’ve done so via the WP interface today multiple times. When going to the URL (ie. http://mysite.com/blog/xmlrpc.php) I get the following in my browser window:

    XML-RPC server accepts POST requests only.

    I guess this all has to do with WP 3.6 because it happening with both my blogs, the same exact problem. All I’ve ever done was update to WP 3.6 and update plugin’s nothing more. I do have NextGen installed on both blogs but on one blog it was never activated. I’m not using NextGen in general, it’s just installed not used.

  10. Problem fixed. Seems the plugin “Automatic Featured Image Posts plugin” was the problem. I deactivated it and now all is well.

    Strangely I’m still able to use the plugin, but first I had to deactivate/reactivate it Now I receive “Credentials OK”. I preformed the same procedure on my second blog and it worked. As far as I know Automatic Featured Image Posts plugin wasn’t updated for specific use with WP3.6.

    Thanks for your time Luc! Maybe this could help someone else.

  11. I think the latest NextGen has got some serious conflict, with itself and this plugin.

    Getting error:
    Unable To Export:
    An internal error has occurred: Error Domain=NSXMLParserErrorDomain Code=76 “Line 5: Opening and ending tag mismatch: input line 3 and form
    ” UserInfo=0x7fc8c61616c0 {NSLocalizedDescription=Line 5: Opening and ending tag mismatch: input line 3 and form
    }

    Using latest plugin version as of today and NextGen 2.0.17 (same with 2.0.14).

    any ideas or is this just a NextGen issue?

        1. I don’t see any flagrant problem (and it works fine for me, even after updating to 2.0.17).
          Did it use to work before the nextgen update?
          did you validate your password (should get 2 OK popups) ?
          Also try with a low resolution picture (like 300×200 pixels) to check upload capabilities …

          Luc

        2. This is the first time using your plugin as well as NextGen so I have nothing to compare against.
          Creditials validate correctly through the 2 popups.
          I uploaded 200x200px images as well and the error persists. It errors after the first upload and nothing further happens. Despite whether it’s 1 or more images, the first one does upload and then the error pops up.

          2013-09-02 03:10:41 +0000, TRACE Dossier de Presse plugin: start – version 3 0 13
          2013-09-02 03:10:47 +0000, DEBUG supportedMethods 1
          2013-09-02 03:10:48 +0000, DEBUG Return ngg.installed: 2.0.17
          2013-09-02 03:10:49 +0000, DEBUG getGalleries> looking for Food
          2013-09-02 03:10:49 +0000, DEBUG UploadTask.findGallery found 24
          2013-09-02 03:10:49 +0000, DEBUG Found the created gallery 24 Food
          2013-09-02 03:10:51 +0000, DEBUG FILE /var/folders/wj/wdwt8qxd5gj6ztctgjj04wpw0000gn/T/FE79F774-6EA6-45C8-960E-ABA2F1C8FD41/IMG_0787.jpg IMG_0787.jpg
          2013-09-02 03:22:33 +0000, TRACE Dossier de Presse plugin: start – version 3 0 13
          2013-09-02 03:22:35 +0000, DEBUG supportedMethods 1
          2013-09-02 03:22:36 +0000, DEBUG Return ngg.installed: 2.0.17
          2013-09-02 03:22:37 +0000, DEBUG getGalleries> looking for Food
          2013-09-02 03:22:37 +0000, DEBUG UploadTask.findGallery found 24
          2013-09-02 03:22:37 +0000, DEBUG Found the created gallery 24 Food
          2013-09-02 03:22:38 +0000, DEBUG FILE /var/folders/wj/wdwt8qxd5gj6ztctgjj04wpw0000gn/T/ED8ED493-BC42-4490-A5C7-723C354A5A22/IMG_0787.jpg IMG_0787.jpg
          2013-09-02 03:23:02 +0000, DEBUG UploadTask.testConnection: num_methods 1

        3. OK, hold the phone.
          I had NextGen, Jetpack and EWWW Image Optimizer plugins installed. Turns out that EWWW Image Optimizer must be causing the issue since it isn’t yet NG v2.0 ready and conflicting.
          When disabled, your LR plugin uploads as expected.
          Apologies for the extra workload I might have caused you, Luc.

  12. I am trying to export into NextGen using your plugin:
    1. the gallery is there..
    2. the first picture ist available (even though the thumb is broken)
    3. then it stops by giving the error message:
    “Die Nachbearbeitungsaufgabe dieses Zusatzmoduls konnte nicht erfolgreich abgeschlossen werden.
    ?:0: attempt to index field ‘?’ (a nil value)”

    1. google-translate tells me that the issue seems to be with a post-processing task. Did you add any?
      Otherwise, as a test, try just a couple of images at low resolution like 300x200px, without any post-processing, maybe it’s your server limiting the upload size (pretty common).

  13. Hello, i get this message after i try to export more than 15 pictures on my blog:
    Unable to export: An internal error has occured: XML document must have a top level element.
    Thank you

  14. Hi there, I am getting an error! I have been using it for awhile and it worked fine until today. Not sure what happened!

    An internal error has occurred: Error Domain=NSXMLParserErrorDomain Code=64 “Line 2: XML declaration allowed only at the start of the document
    ” UserInfo=0x7fa3088473d0 {NSLocalizedDescription=Line 2: XML declaration allowed only at the start of the document
    }

  15. Love this addin for lightroom.

    Do you have any intentions of making a Publisher for Lightroom?

    If not would you be willing to make the code available so that I might adapt your code into a Publisher?

    Thanks.

    1. Publishing services are a pain to manage from what I read. This is not a priority for me.
      I might add generating a collection for every post though…
      My main problem right now is the direction that NextGen took, I still haven’t upgraded my sites to 2.xx version, that was such a disaster with 40 releases to get to something usable.

      1. I might be wrong, but I don’t think this is exposed in the XMLRPC API for WordPress. If you find the call, let me know.
        To do more, it would require a matching WordPress plugin to more advanced stuff. People seems already having issues installing the LR plugin, I’m not sure I want to increase complexity.

        1. It does, but the picture needs to be in WordPress gallery. That would work for people using wordpress builtin gallery or we need to also upload one picture to the gallery even when using NextGen.
          That could work…

    1. I believe there’s a call for the post types. In what situations is this used?
      Can you change the post type while in draft mode?

  16. It is not possible to change the post type in draft mode.

    The theme I’m working with allows the possibility of creating different types of post and then automatically building a slide show for the images.

  17. I get theese errors when attemptemting to upload jpg’s to a gallery

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

    ?:0: attempt to index field ‘?’ (a nil value)

    1. what do you get when validating login name and password? You should get two OK popups: one for the website URL and one for your login information.

  18. when testing the connection button it says: -Connection OK- “http://apperture.dk/xmlrpc.php”
    when I click OK it says: -an internal error has occurred.: “?:0: attempt to index field ‘?’ (a nil value)”

  19. Your LR plugin is just what I was looking for. I’m most interested in importing pictures into WP’s Media Library from LR. The pictures come across fine but each picture’s caption and description information (entered in LR) is not appearing in the Media Library. When I imported the same pictures into a NextGen Gallery the caption/desc information came across just fine. Any suggestions on how to make it work for non-NextGen transfers? Thanks, Bill

    1. NextGen parses the EXIF information after upload, and I don’t think WordPress does when it’s uploaded through its XMLRPC API. I don’t remember exactly, but I don’t think there’s a call to set title and caption. I’ll check…

      1. Hi Luc,
        I have the same issue with titles and captions not appearing in WordPress galleries. I am using WordPress 3.8.1 with Lightroom 4.3 on Windows 8.1.
        I cannot test against NextGen as I do not have it installed. (Previous bad experiences!)
        Regards,
        Schalk

      2. I am interested in this as well. I am hoping to upload an inventory of images with information in the caption with corresponding keywords. Is there any way to have that data displayed when uploaded to the WordPress media library?

  20. I hope there is a solution to allow direct LR to WP transfer of images WITH caption, etc without having to use NextGen. DDP works great moving LR images, with all the data, into NextGen but I, too, have had issues with NextGen. Thanks, Bill

  21. Hi is it possible to have images uploaded into wordpress “Gallery” and also is it possible once image uploaded to note add the prefix “wpid” in front of each file name? It would be great if possible particularly how I setup up my gallery to display on my website

  22. I mean is it possible for the images to upload and be attached to a specified gallery. When I upload image not attached to gallery and is just located in “media” directory

  23. Hi Luc,

    It is worth mentioning that your plugin v.3.0.13.300000 works perfectly fine with the WordPress NextCellent Gallery v.1.9.17 as well.
    I have some feature requests, don’t know if they are difficult to implement or not:

    – Is it possible to have an option ‘custom’ under the metadata export settings where one can choose which specific metadata to export?
    – It would be great to be able to export as PNG as well (probably a Lightroom restriction).

    Thank you for maintaining this great plugin!

    Best Regards,
    Jeroen.

    1. Hi,
      The export process and metadata handling is all done by Lightroom, so you get the same features and limitations.

  24. I’m currently trying to install the plugin but despite my efforts I get no connection and failed credentials… :/

    I’ve tried
    … created a new admin user with four letter simple password
    … opened the xmlrpc.php on my server and it says “XML-RPC server accepts POST requests only.”
    … running on LR5 Creative Cloud
    … running wordpress 3.9
    … running plugin version version 3.0.13.300000
    … tried via http://designabooth.com/xmlrpc.php and pvmultimedia/studiobooth/design/xmlrpc.php

    Any suggestions?

      1. Hey Luc,

        Thank you for testing that for me. I realized I had firewall software active that I generally never have problems with. It’s been working like a dream since I approve usage with that.

        Appreciate all the help!

  25. Luc,

    We’ve been working to integrate the plugin into our workflow. It’s great so far but just trying to get a few last detailed ironed out. Will NextGen recognize any Lightroom metadata fields aside from “title”, “caption”, and “keywords”? We are trying to add some custom fields to WordPress so we can input a few other key pieces of information to catalog images but not sure if there is any way of sending data from additional Lightroom fields.

    Thanks!

    1. I believe there’s an EXIF data array provided by NextGen, which you can use when you write a custom template for instance in WordPress.

  26. Hi Luc,
    thanks for the plugin and your work, it works perfectly (exporting to wordpress media library; wordpress 3.9.1).
    François

  27. Hi Luc. I hope you can help. I’ve just (yesterday) updated Lightroom to 5.7. Now (coincidentally?) I can’t export images to my WordPress.com blog as I have always been able to. I get the message ‘An internal error has occurred: Invalid at the top level of the document.’. I have a second WordPress.com blog and export to this one still works fine.

    I’ve spent some time comparing the setup between the two and I can’t see any difference. Can you suggest what I may be missing. The fact that it still works with my second blog seems to suggest that it is not a Lightroom 5.7 problem.

    I hope you can help.

  28. Hello,
    Just tested with Lightroom 5.4 on Windows 8.1 x64 and WordPress 4.1. Works like a charm, although I wish it didn’t upload with the 300×300 images on the post. So I have to use the “add media” button in WordPress and manually add in the caption. But it still saves a lot of time versus exporting manually.

    As an aside, I noticed that WordPress has a new JSON api for remote publishing. Will that allow for exporting tags and captions?

    1. Thanks, I’ll check.
      That’s why I never understood why people kept using the WordPress media library and not a library system like nextGen.

  29. Hi Luck,
    When uploading bulk photos to my website, I am getting an error message saying “An internal error has occured: ?: attempt to index a nil value”. It does upload afew photos before the message appears. When the message appears, at the same time it seems to crash my website (wordpress). It seems to have only started happening since loading the Nextgen Pro+ecommerce plugin onto my wordpress. Any ideas?

    Thanks,

    Steve

    1. Did you validate your login/password ? (two OK popups ?)
      Does it work if you upload only a few photos ?
      Does it work if you upload lower resolution pics (check resolution in the export panel) ?

      Luc

  30. Hi there Luc,

    I am having a problem uploading photos from Lightroom to NextGen. The error message which appears in Lightroom is “An internal error has occurred ?:0 attempt to index a nill value”. I acknoledge this message and another message comes up saying “Unable to export: An internal error has occurred ?:0 attempt to index a nill value”. It allows me to export afew photos before the error message comes up. I have checked with my service provider and website hosting provider who both say everything looks ok on their end. I am running WordPress version 4.1 with Plugin NextGen Pro+Ecommerce, and Lightroom V3.4 with Dossier-de-presse V3.0.13. Please can you help or tell me who I could contact. thanks in advance. Steve

    1. Lightroom v3 ? Wow, that’s from 2010 ;-)
      I don’t have LR3 anymore to test, but it used to work.
      Did you validate your login/password (you should get two OK popups) ?
      As a test try with small images and just a few at once. Your server might have limits.
      Send your log file otherwise (see FAQ).

  31. Hi Luc,

    I get the following error with LR6:
    Domain=NSXMLParserErrorDomain=9 “Line 15: PCDATA invalid char value 1″…

    Plugin still works in LR5, Connection is ok, No entry created, Gallery name only chars

    Any ideas?

    1. Weird.
      Any odd characters in login name or password ?
      I’ll check since there was a bunch of WordPress updates lately.

      1. No…I do not only chars and numerical. I get no error when I test the connection. I have done some further testing and uploading works when I select a WordPress Gallery instead of Nextgen Gallery. I use NextCellent Gallery Plugin version 1.9.26

        Error when selecting Nextgen:

        An internal error has occurred: Error Domain=NSXMLParserErrorDomain Code=9 “Line 15: PCDATA invalid Char value 1
        ” UserInfo=0x600009076a40 {NSLocalizedDescription=Line 15: PCDATA invalid Char value 1
        }

        1. I just tried with the latest NextGen and latest NextCellent, and it seems to work (the shortcode syntax changed, but that’s a different issue).
          Make sure to have an up to date WordPress install.
          Also see the log files from your server and the DossierDePresse.log log file in Lightroom.

  32. Thanks for looking into my issue! I will check my logfiles this weekend. I find it hard to believe it is a WordPress issue as your plugin works with LR5, but I will keep you updated. Thanks again.

      1. Could not find anything in logfiles, so I decided to reinstall LR/plugin/wordpress plugin and now it works again. Solved! Thanks for you help.

  33. Hi Luc,
    found out what the problem is: the size of the images. Once I reduced it (in my case, to max 4000 pixels wide or high), it worked.
    Sorry for bothering you.
    Thanks again for the plugin!
    Robert

    1. No problem. I might be your web server having a limit on upload size. It’s a common problem. I think it might be listed on my FAQ.

  34. Hello Luc,
    I just installed your LR plugin and it works perfectly (WP 4.4 LR CC2015.3 W10). I have been using LR/Blog for the past 2 years but it is not working properly anymore and does not seem to be supported. I’m glad I found “Dossier de Presse”. It is not very well ranked by Google which makes it difficult to find.
    Nevertheless it works well for me. The only feature which is missing compared to LR/blog is the ability to decide whether you want to create a new entry in the Media Library or replace the existing one when you export twice the same photo.
    Currently the plugin creates a new entry.
    Any plan to include this option?

    BTW I noticed that some users were interested by a Publishing service. The main limitation is that it does not allow you to define export parameters specific to a particular photo. In my case I use specific watermarks and also different sizes. Not a good idea!

    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *