Closed (fixed)
Project:
Salesforce Webform Data Integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
17 Oct 2010 at 05:59 UTC
Updated:
18 Apr 2012 at 04:01 UTC
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
Comment #1
obsidiandesign commentedcrystaldawn,
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
Comment #2
crystaldawn commentedI 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.
Comment #3
obsidiandesign commentedFixed per #1/#2.