December 17th, 2012, 11:50 PM
Nailing down 2 fatal error
Hello all folks..
1) Error 1
Source File : ...../ /controllers/perfume_work.php
Line : 99
Error string: Call to a member function get_attribute() on a non-object
// no direct access
defined('_JEXEC') or die('Restricted access');
// Include the syndicate functions only once
$type = modLoginyHelper::getType();
$return = modLoginyHelper::getReturnURL($params, $type);
$user =& JFactory::getUser();
Last edited by ricardo777; December 19th, 2012 at 11:53 PM.
Reason: reason isvvbbb nnn
December 18th, 2012, 06:28 AM
yeah, the first method obviously suffers from not checking if there even are session values. But apart from fixing the error, you should also check if the object actually makes sense in case there is no session. Obviously it depends on it.
Regarding the second method:
You have to look up the beautifully named "perf_es_v1_get_cpPerfumeservicebycuid" method. That's where the error originally comes from. The code you posted just reacts to this error.