{"id":341,"date":"2026-02-09T05:00:50","date_gmt":"2026-02-09T05:00:50","guid":{"rendered":"https:\/\/sitepact.com\/docs\/guide\/mautic-integration-for-woocommerce\/connection-authentication\/test-connection\/"},"modified":"2026-02-09T05:00:50","modified_gmt":"2026-02-09T05:00:50","slug":"test-connection","status":"publish","type":"docs","link":"https:\/\/sitepact.com\/docs\/guide\/mautic-integration-for-woocommerce\/connection-authentication\/test-connection\/","title":{"rendered":"Test Connection"},"content":{"rendered":"\n<p>After entering your Mautic credentials, you should test the connection to make sure everything is working. The Connection tab includes a built-in test that verifies the plugin can reach your Mautic instance and authenticate successfully.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Test<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>WooCommerce &gt; Mautic Integration<\/strong> and open the <strong>Connection<\/strong> tab.<\/li>\n<li>Make sure you have entered your Mautic URL and credentials and clicked <strong>Save Changes<\/strong>.<\/li>\n<li>Scroll down to the <strong>Connection Test<\/strong> section.<\/li>\n<li>Click the <strong>Test Connection<\/strong> button.<\/li>\n<li>Wait a few seconds for the result to appear next to the button.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">What Success Looks Like<\/h2>\n\n\n\n<p>When the connection is working, you will see a &#8220;Connected successfully!&#8221; message. The test also returns the total number of contacts in your Mautic instance, which confirms that the plugin can read data from the API.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Failure Looks Like<\/h2>\n\n\n\n<p>If the test fails, you will see an error message describing what went wrong. Here are the most common errors and how to resolve them:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Connection Errors<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>&#8220;Could not resolve host&#8221;<\/strong> &#8211; The Mautic URL is incorrect or the server cannot be reached. Double-check the URL you entered and make sure your Mautic instance is online.<\/li>\n<li><strong>&#8220;Connection timed out&#8221;<\/strong> &#8211; The Mautic server did not respond within 30 seconds. This could be a temporary network issue or your Mautic server may be overloaded. Try again in a moment.<\/li>\n<li><strong>&#8220;SSL certificate problem&#8221;<\/strong> &#8211; Your Mautic instance has an invalid or expired SSL certificate. Make sure your Mautic server has a valid HTTPS certificate installed.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Authentication Errors<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>&#8220;HTTP 401&#8221; or &#8220;Unauthorized&#8221;<\/strong> &#8211; Your credentials are incorrect or have expired. For Basic Auth, verify your username and password. For OAuth2, try re-authorizing by clicking the Authorize button again.<\/li>\n<li><strong>&#8220;HTTP 403&#8221; or &#8220;Forbidden&#8221;<\/strong> &#8211; Your Mautic user does not have permission to access the API. Make sure the user account has admin or API access in Mautic.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">API Errors<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>&#8220;HTTP 404&#8221;<\/strong> &#8211; The API endpoint was not found. This usually means the API is not enabled in Mautic. Go to Mautic Settings &gt; Configuration &gt; API Settings and enable the API.<\/li>\n<li><strong>&#8220;HTTP 500&#8221;<\/strong> &#8211; An internal server error occurred on the Mautic side. Check your Mautic server logs for details.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How the Test Works<\/h2>\n\n\n\n<p>Behind the scenes, the Test Connection button sends an AJAX request from your browser to WordPress, which then makes an API call to your Mautic instance. Specifically, it requests a list of contacts with a limit of 1. If Mautic responds with valid data, the connection is confirmed. If Mautic returns an error, the error message is displayed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tips<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Always save your settings before testing. The test uses the saved credentials, not the values currently in the form fields.<\/li>\n<li>If you recently changed your Mautic password, enter the new password in the plugin settings and save before testing.<\/li>\n<li>If you continue to have issues, enable <strong>Debug Mode<\/strong> on the Connection tab to capture detailed logs that can help identify the problem.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>After entering your Mautic credentials, you should test the connection to make sure everything is working. The Connection tab includes a built-in test that verifies the plugin can reach your Mautic instance and authenticate successfully. How to Test Go to WooCommerce &gt; Mautic Integration and open the Connection tab. Make sure you have entered your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":338,"menu_order":2,"comment_status":"","ping_status":"","template":"","format":"standard","categories":[],"doc_label":[],"doc_tag":[],"class_list":["post-341","docs","type-docs","status-publish","format-standard","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/docs\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":0,"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/docs\/341\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/docs\/338"}],"wp:attachment":[{"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/media?parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/categories?post=341"},{"taxonomy":"doc_label","embeddable":true,"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/doc_label?post=341"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sitepact.com\/docs\/wp-json\/wp\/v2\/doc_tag?post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}