• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue SOAP Error on PHP 5.6

Manish

New Pleskian
Hi,

I have recently moved from a shared hosting to Plex 12, my existing SOAP code is working fine at PHP 5.4 but generating bugs on PHP 5.6. The same soap code is working fine at my shared host with different company.

The SOAP code runs fine at PHP 5.4 but throwing following error after switching to PHP 5.6.30:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.ourwebsiteurl.com/index.php/api/soap/index/wsdl/1/’ : failed to load external entity "https://www. ourwebsiteurl.com/index.php/api/soap/index/wsdl/1/" in /var/www/vhosts/ ourwebsiteurl.com/httpdocs/api_calls/get_order_API_v3.php:71 Stack trace: #0 /var/www/vhosts/ ourwebsiteurl.com/httpdocs/api_calls/get_order_API_v3.php(71): SoapClient->__call('login', Array) #1 /var/www/vhosts/ ourwebsiteurl.com/httpdocs/api_calls/get_order_API_v3.php(71): SoapClient->login('loginid', 'password') #2 {main} thrown in /var/www/vhosts/ ourwebsiteurl.com/httpdocs/api_calls/get_order_API_v3.php on line 71

Please help.

Thanks.
 
Hi Manish,

such issues may appear in case of missing configuration on your server. Pls. check "/etc/hosts" and make sure, that your IP and the FQDN has been configured. ;)

Example:
Code:
127.0.0.1    localhost.localdomain    localhost
127.0.0.1    SERVERNAME.YOUR-DOMAIN.COM    SERVERNAME

XXX.XXX.XXX.XX1    SERVERNAME.YOUR-DOMAIN.COM    SERVERNAME
( where XXX.XXX.XXX.XX1 is a placeholder for your server IP )
 
How to access /etc/ folder, i am on :‪CentOS Linux 7.2.1511 , Plesk version: 12.5.30

I can't see the /etc/ folder in file manager, even SSH option is not visible anywhere.
 
Hi Manish,

I can't see the /etc/ folder in file manager, even SSH option is not visible anywhere.
For such situations, you would consider to use a SSH - Client, as for example "PuTTY" ( for Windows : => Download PuTTY: latest release (0.69) ) and you would login with the user "root" to reach the system folder "/etc".
Another possible solution is to use for example "WinSCP" ( => WinSCP :: Official Site :: Download ), a SFTP, SCP and FTP client for Windows, with which you are as well able to edit files on system folders, when you login with the user "root".
 
I know how to connect with Putty but there should be a Shell login access to connect with it, like Hostgator, Vidahost or Godaddy, they have an option like create FTP, but there is no such Shell account generation option inside the Plesk Admin Panel.
 
You need to use default root ssh access on your OS level. It is not related to Plesk except the case when ssh port is firewalled by Plesk firewall.
 
I have managed to login through the SSH, i had to use the port 1157 instead of default.

Now, i can't see the 'Host' under the etc folder, screenshot is attached at shell-acces2.jpg
 
Last edited:
Hi Manish,

such issues may appear in case of missing configuration on your server. Pls. check "/etc/hosts" and make sure, that your IP and the FQDN has been configured. ;)

Example:
Code:
127.0.0.1    localhost.localdomain    localhost
127.0.0.1    SERVERNAME.YOUR-DOMAIN.COM    SERVERNAME

XXX.XXX.XXX.XX1    SERVERNAME.YOUR-DOMAIN.COM    SERVERNAME
( where XXX.XXX.XXX.XX1 is a placeholder for your server IP )
Hosts file correctly pointing to the localhost and own domain, same as per your advise.

The PHP script (SOAP) is working fine on 5.4 but it shows following error on PHP 5.6 :
"Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL:"

Even a simple SOAP connection PHP script shows the same error on PHP 5.6

Please help. Thanks.
 
Same issue here. Was working fine on PHP 5.6 up to 3-10-2017. Then just stopped with error;

2017-10-03 17:30:03 SoapCallFcn::__construct() error: SOAP-ERROR: Parsing WSDL: Couldn't load from ##### : failed to load external entity

We can browse to the WSDL with a browser, but not access with file_get_contents or SOAP.
Config mentioned above for hosts file is also correct.
Only thing we can see that has changed is the certificate the SOAP Service is using has been changes to a wildcard certificate (Eg *.domain.net)

Any help greatly appreciated.
 
Back
Top