Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Fatal error: SugarBean::require_once() 4.5rc

  1. #1
    xoxide is offline Junior Member
    Join Date
    Aug 2006
    Posts
    2

    Question Fatal error: SugarBean::require_once() 4.5rc

    http://www.sugarcrm.com/forums/showt...uire_once+pear

    Fatal error: SugarBean::require_once() [function.require]: Failed opening required '' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\sugarcrm\data\SugarBean.php on line 2086

    everything seems to be working except this one item

    for the life of me none of the notes on other pages or suggestions seem to help with this specific issue...

    its only on the activities page from whta i can see and tell

    jeff

  2. #2
    jtinsley is offline Member
    Join Date
    Sep 2006
    Posts
    6

    Default Re: Fatal error: SugarBean::require_once() 4.5rc

    We have this error, again, only on the Activites page. Here is our error message:

    Fatal error: SugarBean::require_once() [function.require]: Failed opening required '' (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/localhost/htdocs/sugarcrm/data/SugarBean.php on line 2086


    Anyone got any ideas? Or is this a bug?

  3. #3
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: Fatal error: SugarBean::require_once() 4.5rc

    Does the error occure in the function retrieve_parent_fields($type_info)? I don't have this problem on our fresh Pro 4.5 RC1 test installation...but on our installation, require_once is on line 2091...

    Maybe the beanFiles or beanList array is not correct, because the name of the file that should be "required once" is empty.

    Please check if the following entries exist in include/modules.php

    PHP Code:
    $moduleList[] = 'Activities';

    $beanList['Calls']          = 'Call';
    $beanFiles['Call']          = 'modules/Calls/Call.php';

    $modInvisListActivities = array('Calls''Meetings','Notes','Tasks'); 
    If everything is okay, add debug output to the function and try again. E.g. echo "<pre>" . print_r($type_info, true) . "</pre>";

  4. #4
    jtinsley is offline Member
    Join Date
    Sep 2006
    Posts
    6

    Default Re: Fatal error: SugarBean::require_once() 4.5rc

    Thanks for the help!

    I've checed our modules.php, all the variables are set correctly.

    Sorry to be a bit dumb, but where should I add the debug output... at the bottom of modules.php, or in SugarBean.php ?

  5. #5
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: Fatal error: SugarBean::require_once() 4.5rc

    Only answers may be dump - In SugarBean.php on the line before the fatal error occurs.

  6. #6
    WayneSugar's Avatar
    WayneSugar is offline Sugar Community Member
    Join Date
    Oct 2005
    Posts
    155

    Default Re: Fatal error: SugarBean::require_once() 4.5rc

    The problem actually exists in ListViewData.php. It is fixed in GA.
    Wayne Pan
    Software Eng.

  7. #7
    jtinsley is offline Member
    Join Date
    Sep 2006
    Posts
    6

    Default Re: Fatal error: SugarBean::require_once() 4.5rc

    Thanks to both of you for the help!

  8. #8
    Yurec is offline Junior Member
    Join Date
    Feb 2007
    Posts
    1

    Question Re: Fatal error: SugarBean::require_once() 4.5rc

    Hallo!
    I've got the same problem with the call list.
    What is GA and where can I find the info about fixing this Bug?
    Thanks in advance!

  9. #9
    carpediem198 is offline Junior Member
    Join Date
    Mar 2007
    Posts
    1

    Thumbs up Re: Fatal error: SugarBean::require_once() 4.5rc

    I am experiencing the same problem on SugarCRM 5.00.a with the Task module
    To solve it, temporarily and have my display back, I simply emptied the value of the field parent_id for all my records on the tasks table.
    Apparently, the parent lookup for a task doesn't seem to work...

  10. #10
    Staple is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    24

    Default Re: Fatal error: SugarBean::require_once() 4.5rc

    Ok, this error was happening to me, as well, and I was able to fix it by doing the following:

    In SugarBean.php, look for the retrieve_parent_fields function, and change:

    Code:
    $class = $beanList[$child_info['parent_type']];
    To:

    Code:
    $b = ucfirst($child_info['parent_type']);    				
    $class = $beanList[$b];
    This may or may not fix your issue, but I found that sometimes the 'parent_type' value in the $type_info hash table was not capitalized, which it must be to be used as a key for $beanList. So, I simply ran ucfirst on the 'parent_type' value. For now, this seems to have fixed the problem for me.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

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
  •