Ollie
26-06-08, 10:52
You only need to read this thread if you are using a version of PHP older than 5.2.0 with the ShopWindow V2 Client Software
As you should hopefully know, the ShopWindow V2 Client software is not supported by versions of PHP older than version 5.1.0. Obviously this includes any PHP4 release (which is no longer supported by PHP themselves).
If you are reading this page you have no doubt been sent here via an error message you have received during installation of your client software. Therefore, please read on...
The ShopWindow V2 Client software is recommended to be used on PHP versions 5.2.x and newer. If possible, we strongly suggest you upgrade your installation to the latest PHP release http://www.php.net/. If this is not possible for any reason, and you are using a version between 5.1.0 and 5.2.0 then you may do the following to get your client working:
Firstly, modify the following line (~line 27) in your ./status.php (within your root directory)
$bIgnorePHPVersion= false; // Ignore PHP version //
to
$bIgnorePHPVersion= true; // Ignore PHP version //
This will remove the PHP version number error messages from you setup and allow you to continue. Once again, we suggest you upgrade your PHP version if possible before resorting to this.
If you are lucky, your ShopWindow setup will now work and you can carry on as normal.
If you are unlucky, you will hopefully be receiving something similar to the following error message at the top of your page:
soap_error Object ( [sCode] => HTTP [sString] => Bad Request [sDetails] => getCategoryTree: )
1
soap_error Object ( [sCode] => HTTP [sString] => Bad Request [sDetails] => getProductList: )
1
soap_error Object ( [sCode] => HTTP [sString] => Bad Request [sDetails] => getCategoryTree: )
1
soap_error Object ( [sCode] => HTTP [sString] => Bad Request [sDetails] => getQueryList: )
1
If your error message is different, you can try the following, and if that fails, contact ShopWindow support. Unfortunately if you are using an old version of PHP, support given maybe limited.
About two years ago,up until the time PHP 5.1.6 was released there was a bug within PHP itself (http://bugs.php.net/bug.php?id=36283). Unfortunately this bug meant that Soap Requests (which the client needs to communicate with the ShopWindow servers) were malformed. This error is no way associated with the ShopWindow Client software and an unfortunate error outside of our control
Before explaining how to fix this error, it is worth noting the following:
making the following changes will adversely affect the performance of your ShopWindow installation. If possible upgrade to the latest version of PHP.
To remove this error, you will need to modify ./classes/class.soap_client.php and change ~line 51:
// create client
parent::__construct(API_WSDL, array('trace'=>API_SOAP_TRACE,
'compression'=>
SOAP_COMPRESSION_ACCEPT |
SOAP_COMPRESSION_GZIP |
SOAP_COMPRESSION_DEFLATE) );
To:
// create client
parent::__construct(API_WSDL, array('trace'=>API_SOAP_TRACE) );
To technically explain, what you are doing here is removing the compression headers sent to the server along with your Soap Request. By removing them, you are informing the Product Serve service that you are unable to receive compressed data. Therefore when you request the WSDL we will return it in its original full size. This will lead to greater bandwidth use and a slower response time when requesting the WSDL. API requests/responses are unaffected by compression as they are returned as normal. To reiterate my above point, this WILL adversely effect response times of your ShopWindow Client installation.
As before, if you are experiencing any other errors than those listed here, please contact ShopWindow support.
As you should hopefully know, the ShopWindow V2 Client software is not supported by versions of PHP older than version 5.1.0. Obviously this includes any PHP4 release (which is no longer supported by PHP themselves).
If you are reading this page you have no doubt been sent here via an error message you have received during installation of your client software. Therefore, please read on...
The ShopWindow V2 Client software is recommended to be used on PHP versions 5.2.x and newer. If possible, we strongly suggest you upgrade your installation to the latest PHP release http://www.php.net/. If this is not possible for any reason, and you are using a version between 5.1.0 and 5.2.0 then you may do the following to get your client working:
Firstly, modify the following line (~line 27) in your ./status.php (within your root directory)
$bIgnorePHPVersion= false; // Ignore PHP version //
to
$bIgnorePHPVersion= true; // Ignore PHP version //
This will remove the PHP version number error messages from you setup and allow you to continue. Once again, we suggest you upgrade your PHP version if possible before resorting to this.
If you are lucky, your ShopWindow setup will now work and you can carry on as normal.
If you are unlucky, you will hopefully be receiving something similar to the following error message at the top of your page:
soap_error Object ( [sCode] => HTTP [sString] => Bad Request [sDetails] => getCategoryTree: )
1
soap_error Object ( [sCode] => HTTP [sString] => Bad Request [sDetails] => getProductList: )
1
soap_error Object ( [sCode] => HTTP [sString] => Bad Request [sDetails] => getCategoryTree: )
1
soap_error Object ( [sCode] => HTTP [sString] => Bad Request [sDetails] => getQueryList: )
1
If your error message is different, you can try the following, and if that fails, contact ShopWindow support. Unfortunately if you are using an old version of PHP, support given maybe limited.
About two years ago,up until the time PHP 5.1.6 was released there was a bug within PHP itself (http://bugs.php.net/bug.php?id=36283). Unfortunately this bug meant that Soap Requests (which the client needs to communicate with the ShopWindow servers) were malformed. This error is no way associated with the ShopWindow Client software and an unfortunate error outside of our control
Before explaining how to fix this error, it is worth noting the following:
making the following changes will adversely affect the performance of your ShopWindow installation. If possible upgrade to the latest version of PHP.
To remove this error, you will need to modify ./classes/class.soap_client.php and change ~line 51:
// create client
parent::__construct(API_WSDL, array('trace'=>API_SOAP_TRACE,
'compression'=>
SOAP_COMPRESSION_ACCEPT |
SOAP_COMPRESSION_GZIP |
SOAP_COMPRESSION_DEFLATE) );
To:
// create client
parent::__construct(API_WSDL, array('trace'=>API_SOAP_TRACE) );
To technically explain, what you are doing here is removing the compression headers sent to the server along with your Soap Request. By removing them, you are informing the Product Serve service that you are unable to receive compressed data. Therefore when you request the WSDL we will return it in its original full size. This will lead to greater bandwidth use and a slower response time when requesting the WSDL. API requests/responses are unaffected by compression as they are returned as normal. To reiterate my above point, this WILL adversely effect response times of your ShopWindow Client installation.
As before, if you are experiencing any other errors than those listed here, please contact ShopWindow support.