Bobcares

WooCommerce SOAP client – How to quickly enable it

by | Aug 10, 2019

Online website stores like WooCommerce use SOAP client to get data from remote servers.

And, when this PHP module is not available on the server, the WooCommerce SOAP client missing error pops up.

Enabling SOAP module requires PHP reconfiguration and any bad step can mess up all websites.

That’s why customers contact Bobcares to enable the SOAP client module on the server as part of our Server Management Services.

Today, we’ll see how our Support Engineers enable WooCommerce SOAP client and make it work.

Why we need SOAP client ?

Let’s first check on the need of SOAP client in WooCommerce.

SOAP aka Simple Object Access Protocol is a messaging protocol that allows communications between processes running on different servers. In WooCommerce, some Web services use SOAP to get information from remote servers. For instance, when you have integrated FedEx shipping method, WooCommerce require SOAP to get live shipping quotes from FedEx.

Similarly, often WooCommerce users need website form data submitted to a SOAP web service. Some Woocommerce installations need SOAP client for PayPal integrations as well.

 

How does WooCommerce report SOAP error?

Fortunately, WooCommerce offers a quick way to check the status of the installation.

When the SOAP client is missing, the System Status of WooCommerce on the WordPress install will show up the following message:

SoapClient: Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.

 

Steps to enable SOAP client on server

Usually, most of the shared servers come with popular PHP modules installed. However, when it is found missing in the server, our Support Engineers install it.

Let’s have a look on how we enable SOAP on the server.

On a plain CentOS server without control panel, we first install SOAP extension using:

yum install php-soap

Further, we edit the main PHP configuration file /etc/php.ini and enable the SOAP extension by uncommenting the line:

extension=/usr/lib/php/modules/soap.so

This again depends on the path of soap.so file.

Finally, we restart web server. When server has Apache, we restart it using:

service httpd restart

After installing and enabling SOAP client we further check and verify using the following commands.

[root@host ~]# php -v
PHP 7.2.21 (cli) (built: Aug  6 2019 04:24:31) ( NTS )
Copyright (c) 1997-2018 The PHP Group
[root@host ~]# php -m | grep soap
soap

Again, Bobcares Engineers always confirm that the domain’s PHPinfo page shows the SOAP extension details.

In cPanel/WHM servers, PHP SOAP extension can be enabled easily by recompiling PHP using EasyApache too.

 

Common Errors while enabling SOAP client

At times, even after enabling WooCommerce SOAP client,things may not work correctly. We’ll now see how our Dedicated Engineers fix them.

 

1. Applying SOAP extension on wrong PHP

Enabling SOAP extension on servers with multiple PHP versions often end up in errors.

Recently, a customer reported problem with his WooCommerce installation. He installed SOAP client on his server. Afterwards, when he refreshed the System Status page, the message was the same.

Here, our Dedicated Engineers checked the PHP info page of the domain and SOAP extension was missing. We found that the server had multiple PHP versions and customer enabled SOAP only for one version of PHP.

To fix the error, we had to enable SOAP for the specific version of PHP that the website was using.

 

2. Missing Web server restart

Similarly, missing webserver restart is yet anothet common reason for SOAP client missing error.

For the PHP configuration changes to be effective, the web server needs a restart.  Therefore after enabling SOAP, we always make sure to restart the webserver. For Apache servers, we use

systemctl restart apache2

And for Nginx servers, it will be

service nginx restart

Again, when the server has php-fpm, we make sure to restart it as well.

/etc/init.d/php-fpm restart

[Looking for fixing WooCommerce errors? Our Expert Engineers are available 24×7.]

 

Conclusion

To summarize, WooCommerce SOAP client helps in communication with remote servers. In this write-up, we saw how our Dedicated Engineers setup SOAP extension on the server and fix related errors.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

1 Comment

  1. Ganjah

    In my case i had to uncomment line
    ;extension=php_soap.dll
    In my php.ini

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF