Malformed syntax message – Need help to solve issue

Getting the following error trying to run a simple command using one of the sample calls provided in the Netsuite PHP SDK:

 

Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException] The request could not be understood by the server due to malformed syntax. in /var/www/vhosts/shop.geistlich-na.com/httpdocs/tools/netsuite/PHPToolkit/NSPHPClient.php:296 Stack trace: #0 /var/www/vhosts/shop.geistlich-na.com/httpdocs/tools/netsuite/PHPToolkit/NSPHPClient.php(296): SoapClient->__soapCall(‘get’, Array, NULL, Array) #1 /var/www/vhosts/shop.geistlich-na.com/httpdocs/tools/netsuite/PHPToolkit/NetSuiteService.php(157055): NSPHPClient->makeSoapCall(‘get’, Object(GetRequest)) #2 /var/www/vhosts/shop.geistlich-na.com/httpdocs/tools/netsuite/outbound/add_order.php(8): NetSuiteService->get(Object(GetRequest)) #3 /var/www/vhosts/shop.geistlich-na.com/httpdocs/tools/netsuite/index.php(36): include(‘/var/www/vhosts…’) #4 {main} thrown in /var/www/vhosts/shop.geistlich-na.com/httpdocs/tools/netsuite/PHPToolkit/NSPHPClient.php on line 296

 

I actually had everything working with version 2020_1, submitting sales order data, then I had to change my user password for my Netsuite account and  the process started failing.  So I updated my PHPToolKit to the latest version 2020_2, but I’m unable to continue due to the error.

Here is the information in my NSconfig file, minus my consumer key and token data:

 

define(“NS_ENDPOINT”, “2020_2”);

define(“NS_HOST”, “https://5478095.suitetalk.api.netsuite.com”);

define(“NS_ACCOUNT”, “5478095”);

define(“NS_CONSUMER_KEY”, “HIDDEN”);

define(“NS_CONSUMER_SECRET”, “HIDDEN”);

define(“NS_TOKEN”, “HIDDEN”);

define(“NS_TOKEN_SECRET”, “HIDDEN”);

I have verified that my consumer key, consumer secret, token and token secret are correct.   Also, my setup is fine because this was working fine before I had to change my password.   In version 2020_1 of the SDK, the config file required my username and password, but with this 2020_2 version of the SDK, the sample does not tell me to add this info.

Please, any clues would be appreciated on getting this resolved.

Rookie Asked on May 8, 2021 in SuiteScript.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor