0
我使用PHP类从https://github.com/constantcontact/Constant-Contact-PHP-Sample-Contact-Forms添加到常用联络人名单新的联系,但最近我有PHP错误信息:的Constant Contact:错误mesage - 未定义抵消:1 cc_class.php
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 1
Filename: cc_class.php
Line Number: 248
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 1
Filename: cc_class.php
Line Number: 252
其中这些行是这样的:
(248)
$xml = simplexml_load_string($return);
(252)
}
和全相关的函数这两行:
public function subscriberExists($email = '') {
$call = $this->apiPath.'/contacts?email='.$email;
$return = $this->doServerCall($call);
$xml = simplexml_load_string($return);
$id = $xml->entry->id;
if($id){ return $id; }
else { return false; }
}
,但它无论如何将数据传送给Constan联系。
任何线索发生了什么与这些错误消息?
感谢