Php Magento致命错误-对非对象调用成员函数getId()
将Magento连接到Zapier时,响应为错误代码:Php Magento致命错误-对非对象调用成员函数getId(),php,magento,zapier,Php,Magento,Zapier,将Magento连接到Zapier时,响应为错误代码: authorization failed: junk after document element: line 2, column 0 进一步搜索显示原因是Magento中的IWD销售代表扩展 致命错误:对中的非对象调用成员函数getId /home/moove/public_html/app/code/community/IWD/salesservative/Model/Observer.php 在线452 下面是第449-459行 }
authorization failed: junk after document element: line 2, column 0
进一步搜索显示原因是Magento中的IWD销售代表扩展
致命错误:对中的非对象调用成员函数getId
/home/moove/public_html/app/code/community/IWD/salesservative/Model/Observer.php
在线452
下面是第449-459行
}
public function getUserSettings(){
$userId = Mage::getModel('admin/session')->getUser()->getId();
$item = Mage::getModel('salesrep/users')->load($userId,'user_id');
if ($item->getId()){
return $item;
}
return false;
}
感谢任何人帮助解决此问题。请尝试
$userId=Mage::getSingleton'admin/session'->getUser->getId 首先尝试var_转储$userId和$item。结果如何?