Home › Knowledgebase › KB-1881

Xero Integration Plugin Errors

Summary

This guide helps you troubleshoot and resolve: Xero Integration Plugin Errors. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

This guide provides troubleshooting steps for application errors triggered by the Xero integration plugin during the client onboarding phase on an accounting firm's WordPress website. These errors typically occur when the plugin is unable to communicate with the Xero API or encounters permission conflicts during the initial setup. Accountancy and bookkeeping firms rely on this integration to streamline client file onboarding; therefore, any disruption can directly impact the ability to onboard new clients efficiently.

Caution: Before applying any plugin updates or configuration changes to a live website, test the changes on a staging site. Performing troubleshooting on a live accounting firm website may cause temporary disruption to live client onboarding workflows.

Quick Fix Steps

Try these common solutions before moving to the detailed instructions below:

Detailed Instructions

Verify Plugin Installation and Activation

  1. Log in to your WordPress admin dashboard.
  2. Navigate to the Plugins > Installed Plugins menu in the left-hand sidebar.
  3. Locate the Xero integration plugin in the installed list.
  4. Ensure the status shows as Active. If not, click the Activate link beneath the plugin name.
  5. If an update is available, click Update Now to install the latest version.

Configure Xero API Credentials

  1. Go to the Settings menu and select the Xero plugin configuration page.
  2. Enter your Xero Client ID and Client Secret provided by Xero Developer Portal.
  3. Click the Connect to Xero button to initiate the OAuth authorization.
  4. Sign in to your Xero account when prompted and grant the necessary permissions to the application.
  5. Save the settings by clicking the Save Changes button.

Check WordPress User Permissions

  1. Navigate to Users > All Users.
  2. Edit the user account responsible for the integration.
  3. Ensure the Role is set to Administrator.
  4. Update the user profile and retry the onboarding process.

Hosting and Server Troubleshooting

Check WordPress Site Health

  1. Log in to your WordPress admin dashboard.
  2. Navigate to Tools > Site Health.
  3. Click the Info tab to review server configuration and PHP version.
  4. Click the Status tab to identify any critical issues affecting site performance or API connectivity.

Verify SSL/HTTPS Connectivity

  1. Ensure your website URL begins with https:// in the browser address bar.
  2. Click the padlock icon in the address bar to verify that the SSL certificate is valid and issued by a trusted Certificate Authority.
  3. Navigate to Settings > General and confirm that both the WordPress Address (URL) and Site Address (URL) use https://.

Confirm Required PHP Extensions

The Xero plugin requires specific PHP extensions to communicate with the Xero API. Verify the following are enabled on your server:

You can check installed extensions via Tools > Site Health > Info > Server. If any extensions are missing, contact your hosting provider to enable them.

Check Server Firewall Rules for Outbound API Requests

The WordPress server must be able to send outbound requests to Xero API endpoints. If your server firewall blocks outbound traffic, the integration will fail.

  1. Log in to your hosting control panel (cPanel).
  2. Open File Manager and navigate to the public_html directory.
  3. Review any server-level firewall configurations or security plugins that may block outbound HTTPS requests to api.xero.com.
  4. If you are unsure how to modify firewall rules, Open a Ticket and our Brisbane team will assist you.

Debugging and Error Logs

Enable WP_DEBUG and debug.log

If the debug.log file does not exist, you can enable WordPress debugging to capture detailed error information.

  1. Log in to your hosting control panel (cPanel) and open File Manager.
  2. Navigate to the public_html directory.
  3. Locate and edit the wp-config.php file.
  4. Find the line define( 'WP_DEBUG', false ); and change it to define( 'WP_DEBUG', true );.
  5. Add the following lines directly below the WP_DEBUG definition:
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
  1. Save the file and attempt the Xero integration again to generate new log entries.
  2. Navigate to wp-content/debug.log via File Manager or FTP.
  3. Open the file and search for entries containing "Xero" or "API".
  4. Note the error code and timestamp to provide to your support team if further assistance is required.

Xero OAuth and API Troubleshooting

Handle OAuth Token Expiration and Re-authorization

Xero OAuth tokens expire periodically. If the integration suddenly stops working, the token may have expired.

  1. Navigate to the Xero plugin configuration page in your WordPress dashboard.
  2. Click the Disconnect or Reconnect button to invalidate the existing token.
  3. Click the Connect to Xero button to initiate a new OAuth authorization.
  4. Sign in to your Xero account and grant the necessary permissions.
  5. Click Save Changes to store the new token.

Manage Xero API Rate Limiting

Xero enforces API rate limits. If you receive rate limiting errors, reduce the frequency of API calls or wait before retrying the integration. Avoid running multiple onboarding imports simultaneously.

Caution: Do not share your Xero Client Secret or API keys via email or unsecured chat channels.

Remember — If you host with us, you don't need to do this yourself — just Open a Ticket and our Brisbane team will get it sorted.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket