Results 1 to 3 of 3

Thread: Errors on RC1: Fatal error: Call to a member function on a non-object in

  1. #1
    Dale Thomas is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    38

    Default Errors on RC1: Fatal error: Call to a member function on a non-object in

    I am using a LAMP stack am getting the following error in the leads section.

    Fatal error: Call to a member function on a non-object in /home/****/public_html/domains/****/crm/data/SugarBean.php on line 2446

    I am using the RC1 ver of sugar.

    THis was working a couple of days ago. Any thoughts?

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Errors on RC1: Fatal error: Call to a member function on a non-object in

    Seems as if there would be a new related field which cannot be found.
    Try to make some debug calls like

    $GLOBALS['log']->FATAL("line 2446:".print_r($parentbean->$related_field_name->_relationship_name,true));

    or to have much more details:

    $GLOBALS['log']->FATAL("line 2446:".print_r($parentbean->$related_field_name,true));

    before line 2446 and check logfile for the results.

    hk

  3. #3
    lowJack01 is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Albuquerque, NM
    Posts
    86

    Default Re: Errors on RC1: Fatal error: Call to a member function on a non-object in

    Kuske:

    I'm getting a similar error in OpportunityFormBase.php (on line 394). .

    Fatal error: Call to a member function on a non-object.

    I've used the coomand:

    Code:
    $GLOBALS['log']->FATAL("H2-line 394:".print_r($parentbean->$related_field_name,true));
    but it looks my error is on json, I'm thinking:

    Code:
    $quicksearch_js .= '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects)  . '</script>';
    Since my log file returns nothing for
    Code:
    print_r($parentbean->$related_field_name,true)
    , I'm thinking that parentbean isn't what I'm looking for, but I have never delved into json, so I don't know what I'm doing. Is there another object I need to be looking at?

    Excuse my ignorance, and thank you for any guidance.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 2006-10-05, 11:15 AM
  2. Replies: 4
    Last Post: 2006-09-26, 02:21 PM
  3. Replies: 0
    Last Post: 2005-12-18, 08:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •