Greetings everyone....
I'm trying to work with Lampada Portal 1.0.1 on a SugarCE 5.5.1 instance and keep getting the Fatal error: Call to a member function get() on a non-object message.
The offending code is as follows from /iportal / include / subpanel / subpanneldef.php:
elseif ($list_filter_option == FILTER_BY_CONTACT) {
foreach($seed->get_linked_fields() as $link) {
if( isset($seed->$link['name']) && strtolower($seed->$link['name']->getRelatedTableName()) == 'contacts' ) {
$relationship = $link['relationship'];
$contact->load_relationship($relationship);
//TK - Fix for N-N relationships
if (!is_object($contact->$relationship)) {
$relationship = $seed->table_name;
$contact->load_relationship($relationship);
}
$seed_ids = $contact->$relationship->get();
Reading through the forums from about a year ago, David O'Keefe suggests that the fatal error arises from a lost / missing relationship between Contacts and the Portal Users modules. I attempted to create a one-to-one relationship between these two modules via the Studio, but the error persists.
Other online reading suggests something in the $seed_ids = $contact->$relationship->get(); statement is not being properly initialized -- but as a non-programmer I struggle to determine what may be missing in the code.
Can anyone point me in the right direction?
Thanks in advance!!


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks