Results 1 to 3 of 3

Thread: Fatal error: Call to a member function on a non-object on SugarBean.php At line 877

  1. #1
    santhoshemmadi is offline Senior Member
    Join Date
    Sep 2009
    Posts
    60

    Default Fatal error: Call to a member function on a non-object on SugarBean.php At line 877

    Hi,

    Can anyone help me out in overcoming the following error
    Fatal error: Call to a member function on a non-object in E:\www\wwwroot\...\data\SugarBean.php on line 877

    The line contains the following code:

    877 -function get_linked_fields()
    888 {

    $linked_fields=array();

    require_once('data/Link.php');

    $fieldDefs = $this->getFieldDefinitions();

    //find all definitions of type link.
    if (!empty($fieldDefs))
    {
    foreach ($fieldDefs as $name=>$properties)
    {
    if (array_search('link',$properties) === 'type')
    {
    $linked_fields[$name]=$properties;
    }
    }
    }

    return $linked_fields;
    }

    I got this error when i clicked the link in a module called Companies which is created by me and i have recently upgraded from version 3.0c( Hope this is a older version) to 4.5.1l and everything worked till version 4.5.1l, but in 4.5.1l i am getting the error.

    System Specifications

    Operating System: Windows 2003 Server
    Web Server: IIS 6.0
    PHP : 4.4.0
    MYSQL : 4.1.13
    Sugar Version and edition: 4.5.1l (Community Edition)

  2. #2
    ros.vol is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Eastern Europe / Ukraine / Chernivtsi
    Posts
    114

    Smile Re: Fatal error: Call to a member function on a non-object on SugarBean.php At line 8

    Hello,

    Did you use this function on your module bean?
    Rostyslav Volonchuk

    SugarCRM development and customizations

  3. #3
    santhoshemmadi is offline Senior Member
    Join Date
    Sep 2009
    Posts
    60

    Default Re: Fatal error: Call to a member function on a non-object on SugarBean.php At line 8

    No i have not used it and moreover am new to sugar crm and i was given a task to upgrade from 3.0c to 5.2 but when i was testing the application in 4.5.1l i got this problem and i don't even know why that error has come...and i was upgrading using the manuals or guides that are provided by sugar forge...
    Last edited by santhoshemmadi; 2009-10-20 at 10:24 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 9
    Last Post: 2012-01-10, 10:36 AM
  2. Replies: 3
    Last Post: 2009-12-07, 07:57 PM
  3. Fatal error: Call to a member function read() on a non-object
    By oscarpardus in forum Installation and Upgrade Help
    Replies: 6
    Last Post: 2009-05-09, 01:49 AM
  4. Replies: 2
    Last Post: 2008-02-27, 09:34 PM
  5. Replies: 4
    Last Post: 2006-09-26, 02:21 PM

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
  •