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

Thread: SubPanelDefinitions.php error when trying to update CE 6.1

  1. #1
    twn2 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    36

    Default SubPanelDefinitions.php error when trying to update CE 6.1

    I'm trying to update SugarCE 6.1 to 6.1.6. When I try to use the Upgrade Wizard I keep getting the following error:

    Warning: include_once() [function.include-once]: Filename cannot be empty in /Library/WebServer/Documents/sugar/include/SubPanel/SubPanelDefinitions.php on line 454

    Warning: include_once() [function.include]: Failed opening '' for inclusion (include_path='/Library/WebServer/Documents/sugar:/Library/WebServer/Documents/sugar:/Library/WebServer/Documents/sugar/include/..:.:/usr/local/php5/lib/php') in /Library/WebServer/Documents/sugar/include/SubPanel/SubPanelDefinitions.php on line 454

    Fatal error: Class name must be a valid object or a string in /Library/WebServer/Documents/sugar/include/SubPanel/SubPanelDefinitions.php on line 455

    I've seen other posts regarding this file, but I can't find anyone that has had a successful resolution.

    Here is what is in the lines before and after 454:

    //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 ;

    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;
    }
    }

    Any thoughts??

  2. #2
    twn2 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    36

    Default Re: SubPanelDefinitions.php error when trying to update CE 6.1

    Any thoughts on this one??

  3. #3
    yschmitt is offline Junior Member
    Join Date
    Jun 2011
    Posts
    4

    Default Re: SubPanelDefinitions.php error when trying to update CE 6.1

    Quote Originally Posted by pierco View Post
    Hello,

    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])) 
    then finish the upgrade process.
    It works. Thanks Pierco !

  4. #4
    twn2 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    36

    Default Re: SubPanelDefinitions.php error when trying to update CE 6.1

    Thanks!! That worked! Finally moved from 6.1.2 to 6.1.6.

  5. #5
    sugarFLO is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    45

    Default Re: SubPanelDefinitions.php error when trying to update CE 6.1

    I just upgraded from 6.1.5 to 6.20 (final) and received the same error message after the last step of the upgrade process.

    Everything seems to work fine though, I don't know if the bug will cause any problems...

  6. #6
    sugarFLO is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    45

    Default Re: SubPanelDefinitions.php error when trying to update CE 6.1

    Same problem when trying to upgrade from 6.2.0 to 6.2.1 but the bugfix above again does the job!

  7. #7
    yalcone is offline Member
    Join Date
    Mar 2010
    Posts
    11

    Default Re: SubPanelDefinitions.php error when trying to update CE 6.1

    Thanks pierco!

  8. #8
    beejay77 is offline Junior Member
    Join Date
    Nov 2011
    Posts
    2

    Unhappy Re: SubPanelDefinitions.php error when trying to update CE 6.1

    Hi,
    I am trying to upgrade 6.2.3 to 6.3.0.

    I had same problems as mention before in thread, so I applied changes into SubPanelDefinitions.php, but after that I have "Malformed header from CGI script: zend_mm_heap corrupted" as i click "Upgrade Wizard".

    In log I have only: [FATAL] Failed to load original or custom subpanel data for quotes in modules/Quotes/metadata/subpanels/default.php

    In directory modules/Quotes i have only language subfolder.


    In this thread i found: module Documents wants to render Quotes Subpanel, which is only available in PRO flavor.
    http://www.sugarcrm.com/forums/f3/up...36/index2.html

    I made no changes to my instance. I only loaded language pack to CE edition.


    Any help will be appreciated. Also i did not found procedure to manuallly install upgrade.

  9. #9
    beejay77 is offline Junior Member
    Join Date
    Nov 2011
    Posts
    2

    Default Re: SubPanelDefinitions.php error when trying to update CE 6.1

    ping ping ping
    anybody has a clue?

  10. #10
    LaFortuna is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    55

    Default Re: SubPanelDefinitions.php error when trying to update CE 6.1

    I supose Pierco's solution above is not upgrade safe. How can it be made so?

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)

Similar Threads

  1. Erro SubPanelDefinitions.php
    By Oliverpoa in forum Portugese
    Replies: 6
    Last Post: 2010-01-13, 02:50 PM
  2. Problem with SubPanelDefinitions.php
    By mnemos in forum Help
    Replies: 9
    Last Post: 2009-07-08, 07:54 AM
  3. Replies: 1
    Last Post: 2008-09-18, 11:25 AM
  4. Update error
    By fernandocarm in forum Help
    Replies: 0
    Last Post: 2006-11-10, 10:18 PM
  5. BUG: SubPanelDefinitions.php
    By mminnie in forum Developer Help
    Replies: 9
    Last Post: 2005-10-17, 02:31 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
  •