Xero Integration Plugin Errors
Summary
This guide helps you troubleshoot and resolve: Xero Integration Plugin Errors. Follow the steps below to fix the issue.
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:
- Ensure you have Administrator access to the WordPress dashboard.
- Verify that your Xero organisation is active and the subscription is current.
- Clear your browser cache and cookies, then attempt the integration again.
- Check that your WordPress installation is running the latest version of PHP (8.0 or higher is recommended).
Detailed Instructions
Verify Plugin Installation and Activation
- Log in to your WordPress admin dashboard.
- Navigate to the Plugins > Installed Plugins menu in the left-hand sidebar.
- Locate the Xero integration plugin in the installed list.
- Ensure the status shows as Active. If not, click the Activate link beneath the plugin name.
- If an update is available, click Update Now to install the latest version.
Configure Xero API Credentials
- Go to the Settings menu and select the Xero plugin configuration page.
- Enter your Xero Client ID and Client Secret provided by Xero Developer Portal.
- Click the Connect to Xero button to initiate the OAuth authorization.
- Sign in to your Xero account when prompted and grant the necessary permissions to the application.
- Save the settings by clicking the Save Changes button.
Check WordPress User Permissions
- Navigate to Users > All Users.
- Edit the user account responsible for the integration.
- Ensure the Role is set to Administrator.
- Update the user profile and retry the onboarding process.
Hosting and Server Troubleshooting
Check WordPress Site Health
- Log in to your WordPress admin dashboard.
- Navigate to Tools > Site Health.
- Click the Info tab to review server configuration and PHP version.
- Click the Status tab to identify any critical issues affecting site performance or API connectivity.
Verify SSL/HTTPS Connectivity
- Ensure your website URL begins with
https://in the browser address bar. - Click the padlock icon in the address bar to verify that the SSL certificate is valid and issued by a trusted Certificate Authority.
- 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:
cURLOpenSSL
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.
- Log in to your hosting control panel (cPanel).
- Open File Manager and navigate to the
public_htmldirectory. - Review any server-level firewall configurations or security plugins that may block outbound HTTPS requests to
api.xero.com. - 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.
- Log in to your hosting control panel (cPanel) and open File Manager.
- Navigate to the
public_htmldirectory. - Locate and edit the
wp-config.phpfile. - Find the line
define( 'WP_DEBUG', false );and change it todefine( 'WP_DEBUG', true );. - 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 );
- Save the file and attempt the Xero integration again to generate new log entries.
- Navigate to
wp-content/debug.logvia File Manager or FTP. - Open the file and search for entries containing "Xero" or "API".
- 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.
- Navigate to the Xero plugin configuration page in your WordPress dashboard.
- Click the Disconnect or Reconnect button to invalidate the existing token.
- Click the Connect to Xero button to initiate a new OAuth authorization.
- Sign in to your Xero account and grant the necessary permissions.
- 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?
💻 Open a Ticket