Link Search Menu Expand Document
XMLRPC Doc
User Guide
Odoo Version Contact Us

How to enable XMLRPC.PHP for Odoo WooCommerce Connector

What is XMLRPC.PHP,and Why do you need it?

The xmlrpc.php allows remote connection to WordPress. Without it, various tools and publishing applications simply will not able to access to website. Any updates or additions to Woocommerce website would have to be made while logging directly into the system.

Note:

Odoo WooCommerce Connector requires the XML-RPC enable in order to perform export/update products images only between Odoo and WooCommerce stores.

While exporting/updating the products, if you want to export/update the image, you will have to make sure your WooCommerce Store must allow XML-RPC requests. If you have disabled XML-RPC, then the product image will not get exported from Odoo to WooCommerce.

How Do I Know When XMLRPC is Enabled?

Though,in many cases XML-RPC is already enable by default. it becomes activate once you finish installing WordPress.So, if you use any of the following resources to disable it, simply redo your settings or erase the code to re-enable it.

1.  In the Woocommerce server, the PHP-XML extension must be available.

2.  Run xmlrpc.php in the browser (https://WoocommerceStoreURL/xmlrpc.php), and check the server accepting the request, and It should not show 403 forbidden or ‘Not Found’ error.

3. Ensure no such WC third-party plugin should be blocking the XML-RPC request. For example,Manage XML-RPC., Disable XML-RPC, etc

4. Ensure that the XML-RPC required rule should be added in the ‘.htaccess’ file on the Woocommerce root directory. Please check the below:

Add rule, allow from Odoo server IP address.

5. In case you are using site-specific plugin, you can simply remove the following code:

Once saved, the site-specific plugin will run and enable XMLRPC. However, you will need to add the code if you want to turn the feature back on.

6. If you use a sitemap, check the sitemap_index.xml in the browser (https://WooCommerceStoreURL/sitemap_index.xml) to ensure error-free sitemaps.

7. Please check if the WooCommerce server, firewall, or IP table rule is enabled, then white-list odoo server IP and all user-agents.
Example: sudo ufw status verbose

listed below rule

sudo ufw allow from 150.150.150.510 (odoo server IP)

8. Check if any secure WordPress login with this two-factor authentication (TFA / 2FA) plugin is used then needs to allow XML-RPC login users set in odoo configuration.

Table of contents