Meow Apps

WP/LR Sync: Debug Issues

Let’s see why the connection between the LR plugin and the WP plugin is not working. Please check every item of this list carefully. This covers 99.8% of the issues.

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).
Make sure the WordPress URL you set works. Try it with http or https. It’s often an issue. Also, make sure your login and password are right. They are the ones you are using in your WordPress Admin. Try login in your WordPress Admin with it. Somehow, that’s one of the most common issues.
This issue is not the most common, but it is easy to check. Access your website from the same computer where you are using Lightroom. If you can’t access your website (or that it takes forever to load), it means you have been blacklisted/blocked by your hosting service. Make sure you know your IP address (what is my IP?) and contact your hosting service, asking to be removed from the blacklist and better, to be added to the whitelist. WPEngine does this if you ask 🙂
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 recommend you change the Protocol setting of your Publish Service to REST. 
Check if /wp-json is available on your install. For example, on my http://haikyo.org website, this URL is http://haikyo.org/wp-json. 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.
Make sure that the plugin and your website works normally. WP/LR Sync 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 )
you are using a captcha or something similar that restricts the access, for example by using reCAPTCHA

– The wp-admin not directly accessible (Clef), or because the website access has been limited through the .htaccess (the Authentification Required popup)

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 or else, you need to check with them how to keep have the WP REST API enabled.
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?

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.

Your PHP error logs are empty? It might not be normal, PHP error logs usually have notices, warnings, and errors. Please make sure the errors are actually being logged. For that, you can edit your functions.php (what is functions.php?) and insert such a line:

error_log( “Hello Error Logs!” );

Then load any page on your website, and check your PHP Error Logs again. If they are empty, it means that they are not working. Contact your hosting service in that case. Don’t forget to remove this line from your functions.php.

Alternatively, you can also have a look at your WPLRSync.log located in your Documents folder, it sometimes contains interesting information.
Disable it, and try again. Does it work? Then an option are you are using in JetPack is blocking WP/LR Sync. One is that you need to authorize WP/LR through JetPack -> Settings -> Carousel, find WP/LR at the bottom of the page and enable it.
Disable all the plugins (except WP/LR Sync) and also disable all the extensions you have chosen for WP/LR Sync. Any error or warning generated by any plugin during the WP/LR Sync process will end up with an error for WP/LR Sync. That’s the way it is. Try without any plugins running. It works? Re-active them one by one, until you find the culprit 🙂

I had myself issues with plugins such as Media Library Assistant and WP Fastest Cache.
Some hosting services are cheap and/or simply not good and basically, reject too easily requests to WordPress API. Alternatively, you can use one of the hosting services I recommend, here.

Did nothing work?

I will not be able to give you more advice than what is on this page. The only way to debug your issue further is to:

It is really important to follow this process to make sure that I can help you. Thank you.