Fatal error: Class 'SforcePartnerClient' not found in /home/xyleme/public_html/sites/all/modules/salesforcewebform/salesforcewebform.module on line 374

Upon installation (fresh install) I get this error. I do not know why I was getting this error, but I've provided the fix for it. I followed the instructions and #7 in the install.txt file says to put some code in the additional processing fields. Once I did this, I got the error above.

In the .module file find the following lines and add the require_once line. This fixes that error.

// Salesforce Login information
   $wsdl = $toolkit_path . '/soapclient/partner.wsdl.xml';
   $userName = variable_get('salesforcewebform_user', NULL);
   $password = variable_get('salesforcewebform_pw', NULL);
   require_once ("$toolkit_path/soapclient/SforcePartnerClient.php");  //Had to add this to fix the missing object error

Comments

obsidiandesign’s picture

Assigned: Unassigned » obsidiandesign
Category: bug » task

crystaldawn,

This error is directly related to http://drupal.org/node/760770#comment-3583354. In working with your patch, I think you removed the 'require_once' code because you thought it was added to your patch. In fact, that is code from the module itself, so it needs to stay.

That said, we do need to rework things so that the toolkit path is properly handled. I'm changing this to a task because the code is in the -dev version, it just needs to be modified to fit more users' setups.

Bryan

crystaldawn’s picture

I think the problem is that I shouldnt be working at "2:26am" lol. TY for this. And yes I agree, the path code could use some re-working lol.

obsidiandesign’s picture

Status: Active » Fixed

Fixed per #1/#2.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.