| Author | 
         | 
         
      
        
         
         basta11 Newbie 
          
 
  Joined: 21 February 2011
 Online Status: Offline Posts: 1
          | 
        
         
          
           | Posted: 21 February 2011 at 4:25pm | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
I use WebMail Pro with 4 email accounts added to one main account I use to login. When I now switch the account in the PDA interface I only get the following error message:
 
Code: 
   
    
    
      
       | Fatal error: Class 'User' not found in /webmail/pda/core/pda_actions.php on line 136 | 
       
       | 
    
    | 
 
 
 
 The relevant code snippet in lines 133-148 is the following:
 
Code: 
   
    
    
      
            function DoChangeAccount()
      {
             $newAccoutnId = Get::val('acct_id', false);
             if ($newAccoutnId && User::AccountAccess($newAccoutnId))
             {
                  $account  = Account::LoadFromDb($newAccoutnId, false, false);
                  
                   $_SESSION [ACCOUNT_ID] = $account->Id;
                  $_SESSION [SESSION_LANG] = $account->DefaultLanguage;
             }
             else
             {
                  $this->_error  = PROC_WRONG_ACCT_ACCESS;
             }
             $this->_url = '?'.PDA_SCREEN.'='.PDA_SCREEN_MAILBOX;
      } | 
       
       | 
    
    | 
 
 
 Now neither the class User, nor the class Account is available here, so I can't switch the account. Can anyone give me a (temporary) workaround?
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Igor AfterLogic Support 
          
 
  Joined: 24 June 2008 Location: United States
 Online Status: Offline Posts: 6168
          | 
        
         
          
           | Posted: 22 February 2011 at 2:29am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
That's a known issue, a fix for it will become available in upcoming 6.0.2 release expected till the end of the month.
 
 --
 Regards,
 Igor, AfterLogic Support
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |