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

Popular posts from this blog

python - How to add an model instance to a django queryset? -

Using Android Volley to post an array to PHP -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -