Results 1 to 8 of 8

Thread: Problems with Contacts (Dashlet not showing)

  1. #1
    dmontminy is offline Member
    Join Date
    Jan 2011
    Posts
    8

    Default Problems with Contacts (Dashlet not showing)

    I have an install of SugarCRM (version: 5.5.4) that isn't working 100%

    I get an error message in some of the contact where the dashlets would be:

    Code:
    Warning: require_once() [function.require-once]: Filename cannot be empty in /var/www/crm/data/SugarBean.php on line 3252
    
    Fatal error: require_once() [function.require]: Failed opening required '' (include_path='/var/www/crm/include/..:.:/usr/lib/php5') in /var/www/crm/data/SugarBean.php on line 3
    Line 3252 in SugarBean.php is related to the "retrieve_parent_fields($type_info)" function, more specifically the lines reads:
    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();
    }
    Nothing in sugarcrm.log looked suspicious, not even a single [Fatal] line to show where the problem was.

    I have modified the code (trying to find out what type of argument passed creates an empty call to "require_once"):
    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();
              }
    }
    Which make the error go away, but doesn't actually solves the root of the problem. The log line I added produces this output:
    Code:
    Mon Jan 17 17:16:32 2011 [2280][1][DEBUG] custom_out class: Account
    Mon Jan 17 17:16:32 2011 [2280][1][DEBUG] custom_out child_info[parent_type]: Accounts
    Mon Jan 17 17:16:32 2011 [2280][1][DEBUG] custom_out class: 
    Mon Jan 17 17:16:32 2011 [2280][1][DEBUG] custom_out child_info[parent_type]: test
    I'm not sure where to look for this "test" type. It's not in any "beanList" or "beanFile" in the files I "grep" up, yet it's mentioned somewhere because it produces the error message...

    I have very little experience with SugarCRM or PHP. I'm not 100% sure what cause the problem, but nothing was ever modified outside of the Module Builder or the Studio. The code modifications I did to troubleshoot was in a local, VM-based install, a copy of our working installation. (We have valuable data in the production copy and I don't want to touch anything until I am 100% sure I have found the exact problem)

    Any suggestions would be welcome...

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Problems with Contacts (Dashlet not showing)

    Sugar can't find the bean for your "test" module so it's bombing. Removing that module and any references to it should fix the problem.

  3. #3
    dmontminy is offline Member
    Join Date
    Jan 2011
    Posts
    8

    Default Re: Problems with Contacts (Dashlet not showing)

    The problem is, I don't have any "test" module installed. Since I'm not the one who did the install, I can't tell if and when that module was installed, but I can't find any traces of it anywhere.


    Is there something I can do to try and find all references of that "ghost" module?

  4. #4
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Problems with Contacts (Dashlet not showing)

    Do a text search for "test" in the custom directory and you should find all references to it. After removing them do a Quick Repair & Rebuild.

    Good luck!

  5. #5
    dmontminy is offline Member
    Join Date
    Jan 2011
    Posts
    8

    Default Re: Problems with Contacts (Dashlet not showing)

    A quick "grep -R test custom/*" got nothing except text references to "greatest" and "lastest". Searching the entire SugarCRM installation produce too much output to be of any use. (too much noise)

    A "Quick Repair and Rebuilt", sadly, did not make the problem go away...

    I wish I could simply re-install from scratch but I don't have all the "Export" or "Publish" files for the custom modules we have... (plus we have several dashlet that have been modified trough the studio since)

  6. #6
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Problems with Contacts (Dashlet not showing)

    I messed up. It would be in the database. There are several tables that have a parent_type column. One of them must have "test" as a value.

  7. #7
    dmontminy is offline Member
    Join Date
    Jan 2011
    Posts
    8

    Default Re: Problems with Contacts (Dashlet not showing)

    Thanks to phpmyadmin's option to search the entire database, I found 3 entries in 'email' that had parent_type and parent_id of 'test'

    Clearing these from 'test' to NULL seems to make the problems go away. I'll push these changes into production. Now I only need to find out why these entries were like that... (make very little sense... especially since these are items from 2008...)

    Thanks for the help!

  8. #8
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Problems with Contacts (Dashlet not showing)

    Great! Glad you were able to find it.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. my meetings dashlet not showing records
    By digitalpointusa in forum Help
    Replies: 1
    Last Post: 2010-09-21, 05:07 AM
  2. Cases not showing up in dashlet
    By bllogin in forum Help
    Replies: 12
    Last Post: 2009-06-01, 06:22 AM
  3. Dashlet are not showing up ?
    By kalmencrm in forum Help
    Replies: 0
    Last Post: 2009-05-30, 12:36 AM
  4. Replies: 0
    Last Post: 2007-04-30, 07:09 PM
  5. Replies: 4
    Last Post: 2007-01-05, 10:08 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
  •