Reasons for connectivity errors

AppMySite enables you to run a series of connectivity tests in the Troubleshooting section of your account. The idea behind these tests is to help you check the level of connectivity between your website and the app. 

Check out the significance of each test item in the Troubleshooting section to understand them better:

Plugin Installed

The test item essentially verifies whether the AppMySite plugin is installed on your WordPress website. You can pass this test by installing the AppMySite plugin on your website. 

If the plugin is installed, you will see the following message: The AppMySite plugin is installed on your website. 

Additionally, you will also be able to see the response time. You should aim for a low response time to make sure your app speed is optimal.

Plugin Activated

The test item verifies if the AppMySite plugin is active on your website. You can pass this test by simply making sure the plugin is active on your website. 

In some cases, the plugin does not get activated because of a firewall. One of the most common firewalls is CloudFlare. Visit the Help Centre article below to learn how to whitelist AppMySite in your CloudFlare Firewall:

If the plugin is activated, you will see the following message: The AppMySite plugin is active.

WordPress Connectivity

This test item verifies REST API connectivity between your website and AppMySite. REST API connectivity is important as it is responsible for creating a connection between your website and AppMySite.

If the WordPress connectivity is active, you will see the following message: REST API connectivity has been established.

WooCommerce Connectivity

You will see this test item if you have WooCommerce connectivity. This test establishes whether all REST APIs are connected and working properly. REST API connectivity is essential for creating a connection between your WooCommerce store and AppMySite. 

If your WooCommerce connectivity is active, you will see the following message: All REST APIs are working as expected. 

SSL Verification

This test item verifies the presence of an SSL certificate on your website. An SSL certificate essentially encrypts communication between a web browser and a server. 

To pass this test, simply install a trusted SSL certificate on your website. 

If you have an active and trusted SSL certificate on your website, you will see the following message: The installed SSL certificate is trusted.

Permalink setting

This test item verifies whether your permalink is set to postname. 

You can pass this connection test by simply updating your permalink link setting to ‘postname’ within your WordPress backend. If your permalink settings are set to postname, you will see the following message: Your website Permalink setting is valid.

API Details validation

The API Details validation test appears when you choose to connect your website and app using WordPress Application Passwords. 

This test item verifies whether the API details you enter for connecting your website and app using Application Passwords are correct. 

You can pass this connection test by ensuring that you enter your administrator username and WordPress Application Password correctly. If your API details are entered correctly, you will see the following message: Username and Application Password are valid.

API Details authorization

The API Details authorization test appears when you choose to connect your website and app using WordPress Application Passwords. 

To successfully connect your website and app, you must generate your application password as the administrator of the website. 

This test item verifies whether the API details you enter for connecting your website and app are authorized. 

You can pass this connection test by ensuring that the application password you enter is generated by the administrator of the website. If your API details are entered correctly, you will see the following message: Username and Application Password are authorized.

CS & CK Validation

CS & CK refer to Consumer Secret and Consumer Key respectively. These are REST API keys essential for connecting your WooCommerce store to AppMySite.

This test item validates whether the CS and CK codes you entered in the API details section are correct. 

To pass this test,  enter the CS and CK codes correctly. Visit this guide on how to enter WooCommerce REST API keys:

If the CS and CK codes you enter are correct, you will see the following message: Consumer Key and Consumer Secret are valid

CS & CK Authorization

This test item verifies if your REST API keys have read and write access. You will see this test in case you choose Ecommerce (or an ecommerce-related variation) as your website type.

Read and write access is necessary for WooCommerce stores as you will need updates on your website backend when customers perform an action on your app. This includes actions like purchasing a product and creating a new user profile. 

To pass this test, make sure your REST API keys are generated with read and write access. You will see this message if you pass the test: Your WooCommerce Consumer Secret and Consumer Key are authorized.

HTTP authorization enabled

This test item verifies your HTTP authorization status. There are a number of reasons your website may not pass this test:

  • Your hosting environment may be blocking HTTP authentication.
  • Your hosting environment may not not support Cross-Origin Resource Sharing (CORS).
  • Your CS and CK codes may not be valid. 

You can pass this test by making sure your CS and CK keys are valid. 

You will see this message if you pass the test: HTTP authorization is enabled

Pages Connectivity

This test item verifies the connectivity of your WordPress Pages API with AppMySite. WordPress Pages API connectivity is essential for showing pages within your mobile app.

This test usually fails because of outdated themes and plugins on your website. In case you fail this test, check if all your plugins and themes are updated. 

You will see this message if you pass the test: Connectivity to your pages has been established.

Posts Connectivity

This test item verifies the connectivity of your WordPress Posts API with AppMySite. WordPress Posts API connectivity is essential for showing your posts within your mobile app. 

This test usually fails because of outdated themes and plugins on your website. In case you fail this test, check if all your plugins and themes are updated.

You will see this message if you pass the test: Connectivity to your posts has been established.

Run the troubleshooter

Follow the steps below to run the troubleshooter:

  • Click Run Troubleshooter on the top right corner of the Troubleshooting section
  • If your connection is stable, you will pass all the connection tests. 
  • In case the connection is not stable, you will see certain errors. You can diagnose the issue further by clicking on Fix error.