function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
piyush parmarpiyush parmar 

salesfroce connection using PHP toolkit

Hi all..

 

I am able to connect salesforce using PHP toolkit in sandbox.

But when i am try to connect production org i am getting this type of error.

 

Fatal error: Uncaught SoapFault exception: [INVALID_LOGIN] INVALID_LOGIN: Invalid username, password, security token; or user locked out. in /home/sites/public_html/sales/soapclient/SforceBaseClient.php:155 Stack trace: #0 [internal function]: SoapClient->__call('login', Array) #1 /home/sites//public_html/sales/soapclient/SforceBaseClient.php(155): SoapClient->login(Array) #2 /home/sites/public_html/sales/Upload.php(33): SforceBaseClient->login('username.', 'password+token') #3 {main} thrown in /home/sites/public_html/sales/soapclient/SforceBaseClient.php on line 155

 

 

here my username , password and security tokan is correct ,

than why i am getting this type of error ??

please reply me its urgent ..

 

Thank you 

piyush

Pat PattersonPat Patterson

Hi Piyush,

 

Check that API access is enabled: Setup > Manage Users > Users > select user > click user's profile > Edit > Administrative Permissions > API Enabled.

 

Cheers,


Pat