Results 1 to 9 of 9

Thread: Function add() not found

  1. #1
    ac1982 is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    34

    Default Function add() not found

    Crm Version: 4.5.1
    Operating System: Linux

    When i tried to edit a call in sugar crm I received the following problem.

    Fatal error: Call to a member function add() on a non-object in /modules/Calls/CallFormBase.php on line 293

    Any ideas are welcome. Thanks in advance

  2. #2
    mtvtaras's Avatar
    mtvtaras is offline Sugar Community Member
    Join Date
    Nov 2009
    Posts
    82

    Default Re: Function add() not found

    Hi ac1982!

    I think the version of PHP was updated on your server.
    And problem is in it

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Function add() not found

    Quote Originally Posted by ac1982 View Post
    Crm Version: 4.5.1
    Operating System: Linux

    When i tried to edit a call in sugar crm I received the following problem.

    Fatal error: Call to a member function add() on a non-object in /modules/Calls/CallFormBase.php on line 293

    Any ideas are welcome. Thanks in advance
    Can you attach the file modules/Calls/CallFormBase.php in your next message?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    ac1982 is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    34

    Default Re: Function add() not found

    I have attached the file. Thanks for taking the time to help.
    Attached Files Attached Files

  5. #5
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Function add() not found

    It seems there is a missing relationship between Calls and Users.
    Did you install any package or modify the code by hand?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  6. #6
    ac1982 is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    34

    Default Re: Function add() not found

    Maybe I did a few changes a long time ago. Can you please tell me how to create this relationship again between Calls and Users.

  7. #7
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Function add() not found

    Rather than recreate the relationship you should compare the scripts modules/Calls/vardefs.php and custom/modules/Calls/Ext/Vardefs/vardefs.ext.php against a fresh install, same version.
    Look for the field calls_users and make sure it is according to fresh version.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  8. #8
    ac1982 is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    34

    Smile Re: Function add() not found

    thank you I will do as you said and see where is the problem.
    Last edited by ac1982; 2010-05-27 at 08:30 AM.

  9. #9
    ac1982 is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    34

    Default Re: Function add() not found

    Quote Originally Posted by andopes View Post
    Rather than recreate the relationship you should compare the scripts modules/Calls/vardefs.php and custom/modules/Calls/Ext/Vardefs/vardefs.ext.php against a fresh install, same version.
    Look for the field calls_users and make sure it is according to fresh version.

    Cheers

    I did a check with a clean install and "modules/Calls/vardefs.php " it looks ok but I cannot find "custom/modules/Calls/Ext/Vardefs/vardefs.ext.php" the directory "custom/modules/Calls/Ext" do not exitst! I also checked the history of the folder "custom/modules/Calls" using the svn show log and from the beginning there wasn't a directory Ext.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Function sourced custom field not firing function.
    By Frances in forum Developer Help
    Replies: 4
    Last Post: 2010-11-01, 02:53 AM
  2. Found this function
    By SugarDev.net in forum Developer Help
    Replies: 2
    Last Post: 2008-05-07, 12:11 PM
  3. (Help) I think i found a bug!
    By fedepia in forum Help
    Replies: 1
    Last Post: 2007-11-09, 02:44 PM
  4. Look what I found...
    By hadas in forum Developer Help
    Replies: 2
    Last Post: 2004-09-11, 10:15 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
  •