| Author | 
         | 
         
      
        
         
         Squiz Newbie 
          
 
  Joined: 09 August 2013 Location: Netherlands
 Online Status: Offline Posts: 2
          | 
        
         
          
           | Posted: 09 August 2013 at 6:59am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hello, I just tried out AfterLogic lite, intalling went smooth but when I directed to the main login, I get these errors to show: 
 
 Warning: Invalid argument supplied for foreach() in /home/***/domains/***/public_html/service/libraries/afterlogic/common/utils.php on line 1619
 
 Warning: file_put_contents(/home/***/domains/***/public_html/service/data/cache/templates-28d14b47338f273ae463f5202a7b3039.cache) [function.file-put-contents]: failed to open stream: Permission denied in /home/***/domains/***/public_html/service/libraries/afterlogic/common/managers/integrator/manager.php on line 138
 
 So, I've checked the utils.php file already, but Im far away from knowing php and have a solution for this, Also searched the net, but nothing came up.. 
 
 So I end up here as hope that anyone of you know how to fix this warning.
 Thanks in advance. 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Igor AfterLogic Support 
          
 
  Joined: 24 June 2008 Location: United States
 Online Status: Offline Posts: 6168
          | 
        
         
          
           | Posted: 09 August 2013 at 7:23am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Make sure that there's actually cache subdirectory in data directory, if it's not there - create it. Also, make sure web server is allowed to write to data directory and its subdirectories. The recommended way for that is to assign ownership to webserver user, e.g.:
 
 
Code: 
   
    
    
      
       | chown www-data:www-data -R /home/***/domains/***/public_html/service/data | 
       
       | 
    
    | 
 
 
 
 Alternately, you can make the data directory world-writable, that should be recursively as well:
 
 
Code: 
   
    
    
      
       | chmod 0777 -R /home/***/domains/***/public_html/service/data | 
       
       | 
    
    | 
 
 
 
 --
 Regards,
 Igor, AfterLogic Support
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Squiz Newbie 
          
 
  Joined: 09 August 2013 Location: Netherlands
 Online Status: Offline Posts: 2
          | 
        
         
          
           | Posted: 09 August 2013 at 9:45am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Thanks for the fast reply, tried to do what you said, and it fixed the problems =]
 
 you made my day, thank you.
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |