Debug Errors & Connectivity

Let’s see why the connection between the LR plugin and the WP plugin is not working.

1. Are you using the REST protocol?

Before the WP/LR Sync for LR 2.6.0, the plugin was always using XML/RPC, which was not playing well with many hosting services (because of historical security issues in the protocol, even though it has been fixed for a long time now). I therefore recommend you to switch to the latest version of the LR plugin and change the Protocol setting of your Publish Service to REST. Try again, and go to 2 if it is still not working.

If you are really willing to use XML/RPC, have a look here.

2. Is WP-JSON enabled on your install?

Check if /wp-json is available on your install. For example, on my website, this URL is Understanding it is not important, but make sure that the “wplr” string is present somewhere in this. If you can’t find “wplr”, then the WordPress API is disabled on your install, that will not work.

The WordPress API needs the .htaccess to work. Sometimes, WordPress doesn’t do it magically and you need to trigger it. Check your Permalink Settings (/wp-admin/options-permalink.php), check Post Name (as long as it is not Plain), Save Changes. Do what described in the first paragraph again. Does it work better? It is a good practice to use permalinks. If you don’t want to use those permalinks for some reason, check this: StackOverflow.

3. Is the WP/LR Sync plugin really enabled on your WordPress?

Sounds like not a very clever question, but sometimes that might be that the plugin is disabled πŸ™‚ Can you check your Plugins page in WordPress? If not, enable it and try everything again. Also, there are plugins that can disable other plugins or their functions. Please make sure you try to disable all the plugins and test WP/LR Sync alone (such plugin as Plugin Organizer for example can do that).

4. Check the URL your wrote in WordPress URL

Make sure the WordPress URL you set works. Also, try it with http or https. It’s often an issue.

5. Any process/plugin blocking your admin?

Make sure that the plugin and your website works normally. The plugin might not work properly if:

  • Maintenance Mode is enabled (or using plugins like Coming Soon Page, Maintenance Mode,…)
  • the WP REST API is disabled by a security plugin (for example: WP SpamShield and its Disable anti-spam for miscellaneous forms option )
  • the wp-admin not directly accessible (Clef), or through .htaccess, like the screenshot below:

Once you found why it is not working, you need to find an alternative to do what you need. If it is a security plugin of else, you need to check with them how to keep have the WP REST API enabled.

6. Check your PHP Error Logs and your WP/LR Sync Logs

You have to be aware that if any other plugin fails or generate an error during the syncing process, WP/LR Sync will be stopped. Therefore, you need to check your PHP Error Logs to make sure nothing happens during the WP/LR Sync process. Check it before using WP/LR Sync, perform an action (or the specific action which failed) and check it again. Did something happen in between?

Disable all the plugins (except WP/LR Sync), disable all the extensions you have chosen for WP/LR Sync, try again. Does it work?

Your PHP error logs are made accessible by your hosting service, if you don’t know where they are, the best is to ask them. You can also try to use such a plugin as Error Log Monitor (but they don’t always detect the error file). If you are willing to learn more about checking errors by yourself, check this: Monitor PHP Errors. Be careful, the PHP Error Logs is not the Access Error Logs, they are two different things.

Alternatively, you can also have a look at your WPLRSync.log located in your Documents folder, it sometimes contain interesting information.

Nothing worked? Make sure you tried everything above because that covers 99.8% of the issues. I will not be able to give you more advices that what is on this page so the only way is that you give me access to your WordPress. Create credentials with admin access for me, make a backup on your install (just in case) and contact me.

7. Other errors…

  • “AgExportRendition:recordRemotePhotoId: remote ID must be a number or string”: Are you using JetPack? The plugin might cause this. You have to authorize WP/LR through JetPack -> Settings -> Carousel, find WP/LR at the bottom of the page and enable it.
  • Hello,
    Can you provide a screenshot of the setting for #6. It is not in my JetPack settings in that location.

  • Rick Berger

    I’m getting the dreaded “Connection to your website works…” error. I’ve looked at all the logs and the plugin is enabled. PHP log is fine, WPLR log shows the same error. notice the wp-json info is embedded in the log. Permalinks are working – I don’t see any ‘api’ entries in my .htaccess file. Not sure if that should be there.

    I guess I’ll try disabling some other plugins, but that doesn’t really seem like the right direction.

    Details about my WP install:

    1) Running on a local VM machine (Debian 8), https protocol, self-signed cert.

    2) This is a multi-site installation.

    3) PHP5-FPM/fast-cgi

    Any issues with the above?

    I click past the errors, and it seems to try to work on a few images, but then throws the error, again.

    I tried changing to XML-RPC, but then I got XML errors.

    Would really like to get this to work. Will buy when I get past the trial. Still noodling, but any other suggestions/thoughts re- my installation would be appreciated.

    • Rick Berger

      Ok, I changed to PHP apache_mod vs fast-cgi. Now, it’s telling me that ‘The Internet connection works but your website seems down.’ Any idea why it would do that? I can get to both the site and the wp-admin page from a chrome incognito window, so I don’t think there are any caching problems.

      Very strange, now.

      • Hi Rick! Using the standard WP API (= REST) is better. By default, that works fine on any install, Apache or else, fast-cgi or mod. The plugin is really using the standard WordPress process. The API is registered and you should be able to see it localhost/wp-json (add wp-json to your URL). If you can’t even see this, that’s really strange. Another thing: did you enable Permalink? Did you try on a hosting service online?

        • Rick Berger

          Hi, again – ok, I’ll try taking it back to fast-cgi.

          it let me log in, earlier, but then i was getting the error. Now I can’t even log in.

          Yes, I can wp-json. This is not local host – it’s a virtual machine over a bridged network. I dunno. Everything comes up fine in a browser.

          I’m a pretty experienced software developer. Is there some way to debug this? Get to the point where it’s giving the error?

          I really want to get this to work. I need it to work in my local network – I develop here and then stage and move to production on the internet site. Don’t want to be developing on the production site.

          Really wonder why I can’t even log in. Dang.


        • Rick Berger

          Ok, I seem to have found the problem – it had to do with my https setup (local, self-signed.) I tweaked it a bit, and then it worked and I was able to do a total sync (whether *that*s* correct or not, I’m not sure, but it did the operation.)

          So, I need to do a better self-signed ssl cert and likely set myself up as a local CA. My issues.

          Sorry to clot up your comments. I’ll go ahead and purchase and if I have any more issues, will go through the support channels.


          • It’s no problem, and thank you πŸ™‚ I will delete the comments, maybe that’s a bit too much for the visitors to read πŸ™‚

  • Craig Mackay

    Hello Jordy,

    I recently moved a site to a new server and I can’t get WP/LR Sync to work on the new server. I can login to my site from the lightroom plugin and it will happily create the folders/collection sets in my wordpress media library that I create in lightroom but it won’t publish photos to them. I have been through this page several times but I can’t find my answer. I can’t see anything in my php error logs related to this. Here is the output from my WP/LR Sync log:

    02/02/2017 20:43:22 TRACE Photo: C:UsersCraig MackayAppDataLocalTemp1BBB826-E5BD-4610-9404-BC4519DC0644L86C4835.jpg
    02/02/2017 20:43:22 TRACE Filesize: 943943
    02/02/2017 20:43:24 TRACE WPLRSyncAPI.config.url:
    02/02/2017 20:43:24 TRACE Loading REST lib
    02/02/2017 20:43:24 TRACE Execute URL
    02/02/2017 20:43:24 TRACE URL:
    02/02/2017 20:43:25 ERROR Response: “wplr.lrplugin/LrREST.lua:50: attempt to index local ‘json’ (a nil value)”
    02/02/2017 20:43:25 TRACE Check connectivity to
    02/02/2017 20:43:25 TRACE Check connectivity to
    02/02/2017 20:43:25 ERROR Connection to your website works but got an error from WP. Please check your PHP logs (on server), your WP/LR logs (on your computer) and the FAQ ( Also make sure that the plugin on the WordPress side is enabled.

    The new server is running php 7.0 fpm and nginx rather than apache and php 5 which was on the old server. I have recently changed from http:// to https:// and have changed that in the lightroom plugin.

    Have you any advice on what I can try?

    • Hi Craig! That log shows that something is crashing on the WordPress side. It can be anything. The best is to look at the PHP Error Logs, and the error will be in there. Alternatively, you can switch off all the others plugins (except WP/LR Sync), and try. If it works, enable more plugins, one by one… until it crashes.

      • Craig Mackay

        Hi Jordy,

        Apologies for taking so long to get back to you and thank you for taking the time to respond. So, after a closer look in my error logs I found that the plugin Wordfence seemed to be the problem. I completely uninstalled that but still couldn’t get it to work. I deactivated wp/lr sync and reactivated it in wordpress and it started working! However, it only worked once and I have been unable to recreate what I did above for some reason. I have tried deactivating all plugins bar wp/lr sync but it hasn’t helped. There are no new errors being logged in my error log. The last error I got was the following:

        2017/03/04 12:28:12 [error] 348#348: *62017 FastCGI sent in stderr: “PHP message: add_media_to_folder( 1698, 97 ) – 168” while reading response header from upstream, client:, server:, request: “POST /wp-json/wplr/v1/sync HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “”

        I have tried googling this error but I’m not having any luck. Do you understand what the problem is?

        Many Thanks

        • Hi Craig! Above, is not the PHP Error Logs, it is the Access Error Logs. You should have a look at that one instead. However, I can see the error in there luckily. This is linked to one of the extensions you are using in WP/LR Sync. Are you using Real Media Library? Can you turn off all the extensions you have enabled?

          • Craig Mackay

            Hi Jordy,

            Sorry about that. I have checked in php7.0-fpm.log (I hope this is the correct log as I can’t find any other php related error logs) and there were no errors from the times I was trying to sync. Only the following warning(s): WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 5 total children

            I have made some tweaks in /etc/php/7.0/fpm/pool.d/www.conf which will hopefully fix that.

            I’m not using Real Media Library. The only extension I have loaded is WP Media Folder. I have tried deactivating that but it didn’t help.

            Any idea what to try next?

          • I am not sure… An extension was crashing in your logs, it’s not WP/LR Sync core. Are you sure all the extensions are off? Your log file looks not the right one, otherwise there would be a mention to the PHP message we have seen before. I feel like your install is not ready for production (“[pool www] seems busy”, that doesn’t sound good). What hosting service are you using?

  • Photocitizen

    To log in, add /wp-admin to the end of the URL.

    I was setting up the WP/LR Lightroom publishing service and I was getting the error message that there was a problem connecting to WordPress. I checked everything you mention on this page and it all checked out.

    In the “WordPress URL” field, I added /wp-admin at the end. So the URL should look something like this at the end: “”. (don’t forget the http://www. at the beginning, though). This is not documented anywhere, but it worked for me and now I am logged in.

    Once I was logged in, I noticed that the URL reverted to the format without the wp-admin at the end, but I was still logged in. I even logged out and then logged back in and I did NOT have to re-enter wp-admin to log back in.

    If this seems to be a valid fix, update your documentation and, especially, your screen shot here:×992.png.

    BTW, I’m using the trial version for now until I make sure everything works. Maybe this is only an issue for the trial version and not the pro version.


    • Hello Alan πŸ™‚ This is a bit odd. Yes, the plugin actually “clean” your URL when you type it in, if you add wp-admin, it removes it. So basically I am not sure why it was not working before, and then it was working after. Can you actually try to login again with the URL without wp-admin? Basically by logout and login again?

      Trial = Pro πŸ™‚

      • Photocitizen

        Hi Jordy. I logged out and logged back in without adding wp-admin to the URL and it works fine. It was just the very first time that I had to add wp-admin to make it work. Not sure why it worked, but at least now I can test your plugin. So far, I’m impressed.

        • Yes, that’s strange, or maybe it was a temporary connectivity issue? Not sure. Anyway, please enjoy the plugin πŸ™‚ If any issue, come back to me πŸ™‚

  • Olly Bowman

    Hi, I’m struggling to get this work on my site, and i’m getting the following error in the log file:

    2017-02-24 10:33:45 +0000, TRACE WPLRSyncAPI.config.url:
    2017-02-24 10:33:45 +0000, TRACE Loading REST lib
    2017-02-24 10:33:45 +0000, TRACE Execute URL
    2017-02-24 10:33:45 +0000, TRACE URL:
    2017-02-24 10:33:45 +0000, ERROR Response: “[string “LrREST.lua”]:50: attempt to index local ‘json’ (a nil value)”
    2017-02-24 10:33:45 +0000, TRACE Check connectivity to
    2017-02-24 10:33:45 +0000, TRACE Check connectivity to
    2017-02-24 10:33:46 +0000, ERROR Connection to your website works but got an error from WP. Please check your PHP logs (on server), your WP/LR logs (on your computer) and the FAQ ( Also make sure that the plugin on the WordPress side is enabled.

    I can’t seem to find any logged PHP errors relating to this on the server. returns: {“code”:”rest_no_route”,”message”:”No route was found matching the URL and request method”,”data”:{“status”:404}}

    However is returning some data.

    Keen to get this running as it looks like a great plugin, any help greatly appreciated.

    • Hi Olly, did you have a look at the PHP Error Logs?

      • Olly Bowman

        Yes, I don’t seem to be getting any PHP errors.

        • Did you turn off all the plugins? Do you have anything making the connection to your website less direct? Anything? In the URL in LR, did you mention https instead of http?

          • Olly Bowman

            I’ve tried disabling all plugins and changing the theme to the default, but that didn’t help either. The site is running on https, but I have that in the URL in lightroom. I’m able to upload images, but Total synchronisation isn’t working.

          • Oh, so everything is working except Total Synchronization you mean? This is a special, expensive process in term of time. Mmm. I guess there might be a PHP error then, but you would need to ask your hosting service to provide you that file. If it’s empty, it’s not normal, there is almost always something in those logs.

          • Olly Bowman

            Are there any essential PHP or Apache modules that I should be running?

          • No, nothing in particular, it works out of the box with a standard hosting, PHP, Apache (or Nginx or else).

  • Arthur Hutterer

    hello got the following php error:

    [Sat Mar 11 13:11:03 2017] [error] [client] client denied by server configuration: /home/.sites/260/site7254064/web/xmlrpc.php

    i followed all steps above but getting still this error…can you help?

    • Are you sure? Because the first step is specifically asking you not to use XML/RPC, and obviously that’s the method you are using here πŸ™‚

      • Arthur Hutterer

        you were right had the wrong protocol. shame on me :(! any chance to get a new trial subscription because I didn’t could test the plugin ’cause I tought it won’t work anyway?! Thank you

        • Sure, what is the URL of your website?

          • Arthur Hutterer
          • Sorry for the delay… I did it πŸ™‚ Please try!

          • Arthur Hutterer

            thank you πŸ™‚ now I’m testing and the first message I get is like this “some exports doesen’t work: also make sure you have the plugin on the wordpress side enabled” I can confirm it is enabled. When exporting does the Plugin automatically convert to JPG because my files in LR are .cr2 because I’m taking pictures in the raw format. thank you

          • Arthur Hutterer

            Jordy, disregard my last text. Got it to work finally πŸ™‚ I’m pretty sure that I’ll buy it. thank you!!

          • I am testing a new system to sell my plugins, if you don’t mind trying it today I give you a 20% off right away πŸ™‚ If you are interested, contact me: πŸ™‚

          • Arthur Hutterer

            Oh thank you Jordy. Just wrote you via the contact form πŸ™‚

  • Silvia Mazzei

    Hello Everyone! I was using the plugin and everything worked well, then I switched to Siteground hosting, without change anything, just a total hosting switch. The plugin now doesen’t work, apparently there are anything wrong. I haven’t added new plugins (so there’s no compatibility issue), PHP log is empty, everything seems to work well (I can log in, plugin on WP side is active and work) but I get the error “connection to your website works but got an error from WP….”. Anyone with the same issue? thank you!

    • Hi Silvia, did you follow the whole procedure above? Can you logout and login again? Do you have the Permalinks on? Are you using Real Media Library? Which extensions are you using?

      • Silvia Mazzei

        Hi Jordy, Yes I followed all the procedure. When I logout and login again it shows the error. If I close LR and open again shows as logged in. Permalinks are ok, I’m not using Real Media Library at the moment. I’m not using any extension at the moment. I should add Real Media Library? thank you!

  • Andy Wasley

    Hi there – familiar question, I’m sure… I’m getting the dreaded ‘WP error’ message every time I try to publish (first time out of the box with the plugin). WP/LR log on my Mac comes up with this: ERROR Response: ‘[string “LrREST.lua”]:86: rest_invalid_json: Invalid JSON body passed.’

    Have tried deactivating all other plugins, and the same error comes up. seems fine, and I’m using permalinks. Any advice would be welcome!!

    • That would be number #5 in this page. Did you try to disable all the plugins? Especially if you are using an extension for WP/LR Sync. And, you absolutely need to check your PHP Error Logs. Basically that “Invalid JSON body passed” means that an error occurred.

      • Andy Wasley

        Struggling to find PHP errors in CPanel – back-end stuff isn’t my first skill!! I’ll try the plugin you mention in #5 and will report back.

        Incredibly quick reply – thank you!

        • Let me know what you find πŸ™‚

          • Andy Wasley

            I’ve created a PHP errors log but it’s empty; I’ve triggered the WP/LR error three times and it’s still not logging anything (entirely likely I’ve done something wrong in CPanel, in fairness…)

          • You can’t create the PHP Error Logs by yourself actually. You need to ask your hosting service to tell you where it is or how to get it; also you should try the plugin will all the plugins off, you might find out which one is the issue.

          • Andy Wasley

            Have tried the plugin with other plugins off; no change to the problem. Have followed process here: but will try to find other ways to see the logs.

  • Scott Vinnicombe

    Hi Jordy,
    I have updated the plugin to the latest version, but the version number in for the lightroom plugin still shows v same as my previous plug in.
    I have installed in the right catalog folder.. checked this quite a few times.
    I have even deleted the wplr plug in folder and reinstalled.

    The biggest reason I have for updating is XML-RPC errors.. so I am now trying step 1 of your troubleshooting and updating to the latest version


    • Hi! I am not sure where you got the plugin from, but this is a very old version. Do you mind contacting me directly through the Contact/Support section?

      • Scott Vinnicombe

        My fault.. just posting this in case anyone else comes across this issue.
        It was something screwy with my LR catalogue.
        Even though I had selected to save all LR settings with the catalogue I was using.. for some reason the LR plugin manager was looking at another catalogue in my App Data folder and using the old plug in that was located there.

        After deleting the old plug in and using the plug-in manager in LR to find where I installed the new plug in.. all is good and working

        Thank you!

  • Coderkat

    Hi, I’m getting an error that the Adobe add-on is installed, but not working. It’s version wplr-3.08. I just purchased it. The add-on is saved in D:Program FilesCreative CloudAdobe LightroomModules and is called wplr-sync.lrplugin

I recommend you to use WPEngine or SiteGround. They are both excellent hosting services and work perfectly with all my plugins.