Results 1 to 2 of 2

Thread: Error: SugarBean.php on line 3252

  1. #1
    marcielo is offline Sugar Community Member
    Join Date
    Aug 2009
    Posts
    33

    Default Error: SugarBean.php on line 3252

    Hello fellow users

    I am getting the following error in the account:

    Code:
    Warning: require_once() [function.require-once]: Filename cannot be empty in /home/username/public_html/sugar/data/SugarBean.php on line 3252
    
    Fatal error: require_once() [function.require]: Failed opening required '' (include_path='/home/username/public_html/sugar/include/..:.:/var/pear/PEAR:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/sugar/data/SugarBean.php on line 3252
    I did a new installation of Sugar CE 5.5.4 and then installed Process Manager. Once I setup a process that sends an email to the account. What happens is that the subpanels disappear with the above error showing.

    The error points at something missing. Does it have something to do with $beanList in the modules.php . If so what should I add?

  2. #2
    marcielo is offline Sugar Community Member
    Join Date
    Aug 2009
    Posts
    33

    Default Re: Error: SugarBean.php on line 3252

    After a longer search, I think I fixed my issue.

    I found the solution in another thread:
    http://www.sugarcrm.com/forums/f3/pr...showing-68560/

    I replaced the code in line 3252 of SugarBean.php:
    Code:
    if(empty($templates[$child_info['parent_type']]))
    {
          $class = $beanList[$child_info['parent_type']];
          require_once($beanFiles[$class]);
          $templates[$child_info['parent_type']] = new $class();
    }
    with:
    Code:
    if(empty($templates[$child_info['parent_type']]))
    {
             $class = $beanList[$child_info['parent_type']];
             $GLOBALS['log']->debug("custom_out class: ".$class);
             $GLOBALS['log']->debug("custom_out child_info[parent_type]: ".$child_info['parent_type']);
              if(!empty($class))
              {
                       require_once($beanFiles[$class]);
                       $templates[$child_info['parent_type']] = new $class();
              }
    }
    Now, I was expecting a new error in detail in the error log after some testing, but nothing comes up. This can't have fixed the issue or has it?

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: 2010-05-18, 08:28 AM
  2. Replies: 0
    Last Post: 2010-01-04, 12:21 PM
  3. Replies: 2
    Last Post: 2009-10-20, 10:15 AM
  4. Replies: 3
    Last Post: 2006-12-08, 02:10 PM
  5. Replies: 0
    Last Post: 2006-10-16, 06:55 PM

Tags for this Thread

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
  •