我在Drupal 6網站中設置了Ubercart 2.0,並啓用了其功能所需的模塊,包括:Cart,Store,Product,Order,Conditional Actions。Drupal中的SimpleXML問題Ubercart Google checkout
我已經在測試模式(沙盒)中配置了谷歌結賬模塊,並相應地放入了商家ID和商家密鑰值。
現在,當我將產品加入購物車,點擊谷歌Checkout的,我有一個很大的錯誤消息:
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in C:\xampp\htdocs\drupal\sites\all\modules\ubercart\payment\uc_google_checkout\uc_google_checkout.module:630 : SimpleXMLElement->__construct('') #1
似乎無法找出這個錯誤的原因...
編輯:
在管線630,我有以下行:
$response = new SimpleXMLElement($response_obj->data);
和我呼應的值:$ response_obj->數據爲:
https://sandbox.google.com/checkout/view/buy?o=shoppingcart&shoppingcart=537534598601272
最可能被饋入'SimpleXMLElement'的字符串不是有效的XML文檔。你可以嘗試使用XML字符串並將其發佈到你的問題中嗎? –
我的一位朋友說我需要購買SSL證書。但我不知道我的本地主機如何完美地與谷歌結帳工作。 –