Results 1 to 3 of 3

Thread: problem with subpanel

  1. #1
    fredouil is offline Member
    Join Date
    Feb 2006
    Posts
    7

    Question problem with subpanel

    hi

    i have s small problem with detailview of Account, after history i get that :


    Warning: asubpanel(modules//subpanels/.php): failed to open stream: No such file or directory in /home/.casaubon/fredouil/inland/include/SubPanel/SubPanelDefinitions.php on line 67

    Warning: asubpanel(modules//subpanels/.php): failed to open stream: No such file or directory in /home/.casaubon/fredouil/inland/include/SubPanel/SubPanelDefinitions.php on line 67

    Fatal error: asubpanel(): Failed opening required 'modules//subpanels/.php' (include_path='.:/usr/local/lib/php') in /home/.casaubon/fredouil/inland/include/SubPanel/SubPanelDefinitions.php on line 67

    i do not need more subpanel, history is enough for me, what can i change to solve the problem and just load the subpanel history ?.

    thanks

    Damien

  2. #2
    Superman's Avatar
    Superman is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Kazakhstan
    Posts
    852

    Default Re: problem with subpanel

    Show a source of modules/Accounts/layoutdefs.php,
    Farkhad Rakhimzhanov
    E-mail: farkhad@gmail.com
    Skype: rakikama

    SuperTimesheet and Invoicing — timesheet tool with invoicing for SugarCRM.
    Book time against Cases, Project Tasks and Projects.
    Create invoice regarding booked time, print it in PDF or HTML,
    customize template as you like.

  3. #3
    666
    666 is offline Member
    Join Date
    Sep 2006
    Posts
    5

    Thumbs up Re: problem with subpanel

    Hi there, after 2 hours viewing the code...

    Here is the solution:

    replace array variable called $layout_defs['Campaigns'] in /modules/Campaigns/layaout_defs.php

    delete the lines:

    PHP Code:
            $layout_defs['Campaigns'] = array( 
        
    // list of what Subpanels to show in the DetailView 
        
    'subpanel_setup' => array(
            
    'prospectlists' => array(
                
    'order' => 10,
                
    'module' => 'ProspectLists',
                
    'get_subpanel_data'=>'prospectlists',
                
    'set_subpanel_data'=>'prospectlists',            
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_PROSPECT_LIST_SUBPANEL_TITLE',
            ),
            
    'emailmarketing' => array(
                
    'order' => 20,
                
    'module' => 'EmailMarketing',
                
    'get_subpanel_data'=>'emailmarketing',
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_EMAIL_MARKETING_SUBPANEL_TITLE',
            ),
        )
    ); 
    and paste this code:

    PHP Code:
    if ($_REQUEST['action']=="DetailView")
    {
        
    $layout_defs['Campaigns'] = array( 
        
    // list of what Subpanels to show in the DetailView 
        
    'subpanel_setup' => array(
            
    'prospectlists' => array(
                
    'order' => 10,
                
    'module' => 'ProspectLists',
                
    'get_subpanel_data'=>'prospectlists',
                
    'set_subpanel_data'=>'prospectlists',            
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_PROSPECT_LIST_SUBPANEL_TITLE',
            ),
            
    'emailmarketing' => array(
                
    'order' => 20,
                
    'module' => 'EmailMarketing',
                
    'get_subpanel_data'=>'emailmarketing',
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_EMAIL_MARKETING_SUBPANEL_TITLE',
            ),
        )
    );
    }
    else
    {
        
    $layout_defs['Campaigns'] = array( 
        
    // list of what Subpanels to show in the DetailView 
        
    'subpanel_setup' => array(
            
    'prospectlists' => array(
                
    'order' => 10,
                
    'module' => 'ProspectLists',
                
    'get_subpanel_data'=>'prospectlists',
                
    'set_subpanel_data'=>'prospectlists',            
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_PROSPECT_LIST_SUBPANEL_TITLE',
            ),
            
    'emailmarketing' => array(
                
    'order' => 20,
                
    'module' => 'EmailMarketing',
                
    'get_subpanel_data'=>'emailmarketing',
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_EMAIL_MARKETING_SUBPANEL_TITLE',
            ),
               
    'track_queue' => array(
                
    'order' => 100,
                
    'module' => 'EmailMan',
                
    'get_subpanel_data'=>'function:get_queue_items',
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_MESSAGE_QUEUE_TITLE',
            ),
            
    'targeted' => array(
                
    'order' => 110,
                
    'module' => 'CampaignLog',
                
    'get_subpanel_data'=>"function:track_log_entries",
                
    'function_parameters'=>array(0=>'targeted',),
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_LOG_ENTRIES_TARGETED_TITLE',
            ),
            
    'viewed' => array(
                
    'order' => 120,
                
    'module' => 'CampaignLog',
                
    'get_subpanel_data'=>"function:track_log_entries",
                
    'function_parameters'=>array(0=>'viewed',),
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_LOG_ENTRIES_VIEWED_TITLE',
            ),
            
    'link' => array(
                
    'order' => 130,
                
    'module' => 'CampaignLog',
                
    'get_subpanel_data'=>"function:track_log_entries",
                
    'function_parameters'=>array(0=>'link',),
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_LOG_ENTRIES_LINK_TITLE',
            ),
            
    'lead' => array(
                
    'order' => 140,
                
    'module' => 'CampaignLog',
                
    'get_subpanel_data'=>"function:track_log_entries",
                
    'function_parameters'=>array(0=>'lead',),
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_LOG_ENTRIES_LEAD_TITLE',
            ),
            
    'contact' => array(
                
    'order' => 150,
                
    'module' => 'CampaignLog',
                
    'get_subpanel_data'=>"function:track_log_entries",
                
    'function_parameters'=>array(0=>'contact',),
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_LOG_ENTRIES_CONTACT_TITLE',
            ),
            
    'invalid email' => array(
                
    'order' => 160,
                
    'module' => 'CampaignLog',
                
    'get_subpanel_data'=>"function:track_log_entries",
                
    'function_parameters'=>array(0=>'invalid email',),
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_LOG_ENTRIES_INVALID_EMAIL_TITLE',
            ),                
            
    'send error' => array(
                
    'order' => 170,
                
    'module' => 'CampaignLog',
                
    'get_subpanel_data'=>"function:track_log_entries",
                
    'function_parameters'=>array(0=>'send error',),
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_LOG_ENTRIES_SEND_ERROR_TITLE',
            ),
            
    'removed' => array(
                
    'order' => 180,
                
    'module' => 'CampaignLog',
                
    'get_subpanel_data'=>"function:track_log_entries",
                
    'function_parameters'=>array(0=>'removed',),
                
    'subpanel_name' => 'default',
                
    'title_key' => 'LBL_LOG_ENTRIES_REMOVED_TITLE',
            ),
        )
    );

    It works fine the next buttons after that change. Dont modify the $layout_defs['CampaignLog'] variable.
    Enjoy it. Thanks

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
  •