Results 1 to 2 of 2

Thread: V4.0 Campaigns Status Page Problems

  1. #1
    robert_lars2 is offline Junior Member
    Join Date
    Dec 2005
    Posts
    2

    Default V4.0 Campaigns Status Page Problems

    When trying to view the next 25 entries for any of the subpanels on the Campaigns Status page (or clicking end) it gives the following error where that panel was displayed:

    Warning: asubpanel(modules//subpanels/.php): failed to open stream: No such file or directory in /var/www/html/crm/include/SubPanel/SubPanelDefinitions.php on line 66

    Fatal error: asubpanel(): Failed opening required 'modules//subpanels/.php' (include_path='.:/usr/share/pear') in /var/www/html/crm/include/SubPanel/SubPanelDefinitions.php on line 66

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

    Thumbs up Re: V4.0 Campaigns Status Page Problems

    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
  •