To build an app on AppMySite, you first have to connect your WordPress website to your app. During the connectivity process, you may run into some issues.
You can troubleshoot these issues on your own and successfully connect your website and app. Some of the steps described below may interfere with your website’s design and working. It is thus advised that you take a backup of your WordPress website before fixing any connectivity issues.
Here’s a guide you can follow:
Check for common connectivity issues
Here are a few common reasons why there may be connectivity issues:
- Your WooCommerce REST API keys may not have Read and Write access.
- The keys may not have been filled correctly in their respective fields.
- CS & CK may not belong to an Administrator user.
- Your website may not have a valid SSL certificate.
- Your Permalink may not be set to Post Name.
- Your web hosting environment may be blocking HTTP Authentication.
- Your web hosting environment may not support Cross-Origin Resource Sharing (CORS).
- Your WordPress REST APIs may be affected by a third-party plugin or a security configuration. In this case, you should reconfigure the settings of your security plugin to allow REST API access.
- Your website’s “.htaccess” may not be optimized for WordPress. You can ask your website hosting provider about this.
Set your active theme to Twenty Twenty
Some connectivity issues can arise because of your website’s active theme. To check if this is the issue, set your active WordPress theme to Twenty-Twenty.
Twenty-Twenty is a theme developed by WordPress. It comes pre-packaged with every WordPress installation.
Once you set this as your default theme, try running the troubleshooter again in your AppMySite account and see if the connection is successful.
If it is, the connection error is likely being caused by the theme. You can get in touch with the theme developer regarding the issue, or change your website’s theme.
If the connection is still not established, proceed to the next step.
Disable all plugins except AppMySite and WooCommerce
If you’re facing connectivity issues, it could be because of a plugin on your website. You can fix this issue by disabling all your plugins and checking if your website and app are connecting on AppMySite.
If your website and app connect successfully, the errors were likely arising due to one or more plugins.
Reactivate the plugins one at a time to see which plugin(s) was causing the connectivity issues. If this is the case, you can contact your plugin author and configure its settings accordingly to successfully connect your website and app.
If you have a lot of plugins on your website, deactivating plugins one at a time may not be feasible.
You can streamline this process by deactivating all your plugins first, and then enabling half of them. This will help you know in which group the problematic plugin is. Again deactivate half the plugins in the group you identified and see if you’re able to establish connectivity. Repeat the process until you’re able to find the plugin that’s causing connectivity issues between your website and app.
Update outdated plugins
Check if all your website’s plugins are updated. An outdated plugin may cause compatibility issues with your website-app connectivity. In case you have an outdated plugin, update each one at a time and check if your website and app connect successfully.
Update outdated theme
You may be facing connectivity issues in case your WordPress theme is outdated. Update your live WordPress theme and see if your website and app connect.
WordPress rolls our core updates to its platform. These updates include the addition of new features and updates to old ones.
In case your WordPress is not updated to the latest version, your website and app may face connectivity issues. Update your WordPress to the latest version and check if your connectivity issues are resolved.
Deactivate ‘Drop-in and Must use’ plugins
Your website may have drop-in and must-use plugins which could cause connectivity issues with your website and app. To troubleshoot these plugins, you have to deactivate them. The following cases explain how these plugins get installed, and the procedure for their deactivation.
Drop-in and Must use plugins generally get installed in two cases:
Extra plugins often get installed when they come packaged with the main plugin you’re installing. These are also called helper plugins.
You don’t need to worry about troubleshooting drop-in plugins in this case. This is because these plugins can be deactivated by simply disabling the parent plugin with which they come packaged.
When you purchase a hosting plan, your website host may install some plugins by default. There is no option to remove or disable these plugins manually.
You can reach out to your hosting partner and request for the removal of drop-in and must-use plugins. Once these plugins are removed, you can again test your website-app connection.
Still have connectivity issues? Contact support
If you’re unable to connect your website and app after checking for these issues, kindly contact our support team.