Debug connectivity

Let’s see why the connection between the LR plugin and the WP plugin is not working. You get another kind of errors, which sounds more like a bug and not a connection problem? Go to 6.

Make sure those plugins are off

  • Coming Soon Page & Maintenance Mode by SeedProd

What kind of error is it?

The plugin asks you to check your logs? The connection can’t be enabled to your server? Then go to 1.

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”, check 3. If this return an empty page (or 404), please have a look at 4.

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). If nothing helps, go to 5.

4. WP API is off on your install, why?

The WordPress API needs the .htaccess to be set-up. 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. Perform the same check as you did at 2. Does it work better? It is better to use permalinks and that keeps your .htaccess to work with dynamic URLs (if you wish to do this manually, with the permalinks off, check here: StackOverflow).

5. 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 WP/LR Sync process, WP/LR Sync will unfortunately fail too. So 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 (login, sync, or anything else) and check it again. Did something happen in between? Disabling all the plugins (but keep WP/LR Sync enabled) and try again.

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. If you are willing to learn more about checking errors by yourself, check this: Monitor PHP Errors.

Alternatively, you can also have a look at your WPLRSync.log located in your Documents folder.

Nothing worked? Then, contact me, and add some debugging information about what you found and what you did.

6. What kind of errors did you get?

  • “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.

This is not helping? Please go to 5.

  • 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.


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