Results 1 to 5 of 5

Thread: Error when clicking on relationships

  1. #1
    kwhelchel is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    12

    Default Error when clicking on relationships

    when I click on relationships in studio I get this error:

    undefined

    Warning: include_once() [function.include-once]: Filename cannot be empty in /home5/xxxxxx/public_html/crm/include/SubPanel/SubPanelDefinitions.php on line 454

    Warning: include_once() [function.include]: Failed opening '' for inclusion (include_path='/home5/rhsposco/public_html/crm:/home5/rhsposco/public_html/crm/include/..:.:/usr/share/pear:/usr/share/php') in /home5/xxxxxx/public_html/crm/include/SubPanel/SubPanelDefinitions.php on line 454

    I have no clue as what to do about this?

    Thanks

  2. #2
    Chris.M8 is offline Member
    Join Date
    May 2009
    Posts
    8

    Default Re: Error when clicking on relationships

    Hi,
    We are getting the same error. Any fix?

  3. #3
    Chris.M8 is offline Member
    Join Date
    May 2009
    Posts
    8

    Default Re: Error when clicking on relationships

    Additional information...
    This error is only on Leads -> Relationship and Documents -> Relationships modules in studio
    the exact error is

    Warning: include_once() [function.include-once]: Filename cannot be empty in /home/***/public_html/include/SubPanel/SubPanelDefinitions.php on line 454

    Warning: include_once() [function.include]: Failed opening '' for inclusion (include_path='/home/***/public_html:/home/***/public_html/include/..:.:/usr/lib/php:/usr/local/lib/php') in /home/***/public_html/include/SubPanel/SubPanelDefinitions.php on line 454

    Fatal error: Class name must be a valid object or a string in /home/***/public_html/include/SubPanel/SubPanelDefinitions.php on line 455

    This is the code referenced in the error
    //load subpanel mdoule's table name and column fields.
    function load_module_info ()
    {
    global $beanList ;
    global $beanFiles ;

    $module_name = $this->get_module_name () ;
    if (! empty ( $module_name ))
    {

    $bean_name = $beanList [ $this->get_module_name () ] ;

    $this->bean_name = $bean_name ;

    Line 454 include_once ($beanFiles [ $bean_name ]) ;
    $this->template_instance = new $bean_name ( ) ;
    $this->template_instance->force_load_details = true ;
    $this->table_name = $this->template_instance->table_name ;
    //$this->db_fields=$this->template_instance->column_fields;
    }
    }

    Not a coder
    Tried Quick Repair and Rebuild Relationships - no errors, no change.

    Ideas?
    Thanks

  4. #4
    Chris.M8 is offline Member
    Join Date
    May 2009
    Posts
    8

    Default Re: Error when clicking on relationships [FIX]

    The fix posted here worked.
    http://www.sugarcrm.com/forums/f3/su...e-6-1-a-72404/

    Try to edit the SubPanelDefinitions.php.

    Line 446, change:


    PHP Code:
    if (! empty ( $module_name )) 
    to


    PHP Code:
    if (! empty ( $module_name ) && isset($beanList[$module_name])) 

  5. #5
    johanels is offline Junior Member
    Join Date
    Jan 2008
    Posts
    3

    Default Re: Error when clicking on relationships

    Just a quick note.

    This fix worked in 6.4.2 as well.

    Error changed to line 468, but same basic issue.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Internal Server Error when clicking on Email tab
    By SugarFreak12 in forum Help
    Replies: 4
    Last Post: 2009-12-22, 07:04 AM
  2. Clicking next in accounts shows SQL error
    By scrotyballbags in forum Help
    Replies: 2
    Last Post: 2009-03-18, 05:50 AM
  3. Fatal Error when clicking on Tasks
    By spotenza in forum Help
    Replies: 4
    Last Post: 2007-09-13, 06:27 PM
  4. getting ERROR when clicking on...
    By khoatran in forum Help
    Replies: 5
    Last Post: 2004-12-11, 07:01 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
  •