php - Magento Fatal Error - Call to a member function getId() on a non-object -
php - Magento Fatal Error - Call to a member function getId() on a non-object -
when connecting magento zapier response error code:
authorization failed: junk after document element: line 2, column 0 further searching shows cause iwd sales rep extension in magento.
fatal error: phone call fellow member function getid() on non-object in /home/moove/public_html/app/code/community/iwd/salesrepresentative/model/observer.php on line 452
below line 449 - 459
} public function getusersettings(){ $userid = mage::getmodel('admin/session')->getuser()->getid(); $item = mage::getmodel('salesrep/users')->load($userid,'user_id'); if ($item->getid()){ homecoming $item; } homecoming false; } appreciate anyone's help resolving issue.
try
$userid =mage::getsingleton('admin/session')->getuser()->getid();
php magento zapier
Comments
Post a Comment