everytime i run this
$proxy = new SoapClient('http://localhost/magento/api/v2_soap/?wsdl');
$sessionId = $proxy->login((object)array('username' => 'admin', 'apiKey' => 'admin'));
$result = $proxy->customerCustomerCreate((object)array('sessionId' => $sessionId->result, 'customerData' => ((object)array(
'email' => $email,
'firstname' => $firstname,
'lastname' => $lastname,
'password' => $auto_password,
'website_id' => '0',
'group_id' => '1'
))));
var_dump($result->result);
}
i get this error:
Catchable fatal error: Object of class stdClass could not be converted to string in add-new-customer.php on line 2
I'm running this on the latest MAMP. I also tried running this on the 'native' mac php/apache and it runs without any problems. I appreciate any help.