2014-08-29 1 views
0

를 찾을 수 없습니다 나는 참조 :심포니 1.4 치명적인 오류 클래스 '참고 MyUser'오류 로그에서

Fatal error: Class 'myUser' not found in /usr/share/nginx/www/services/cache/frontend/dev/config/config_factories.yml.php on line 120 

어떻게이 문제를 caouse 수 있습니까?

의 Nginx의 설정 : 귀하의 응용 프로그램의 lib 폴더에 myUser.class.php 파일이있는 경우

server { 
     listen 80; 

     root /usr/share/nginx/www/services/web; 
     index index.php index.html index.htm; 
     access_log /usr/share/nginx/www/log/access.log; 
     error_log /usr/share/nginx/www/log/error.log; 
     server_name server.lap; 


     error_page 404 /404.html; 

     error_page 500 502 503 504 /50x.html; 
     location = /50x.html { 
       root /usr/share/nginx/www; 
     } 

     # pass the PHP scripts to FastCGI server listening on /var/run/php5-fpm.sock 
     location ~ \.php$ { 
       try_files $uri =404; 
       fastcgi_pass unix:/var/run/php5-fpm.sock; 
       fastcgi_index index.php; 
       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
       include fastcgi_params; 

     } 

    location/{ 
     index index.php; 
     try_files $uri /index.php?$args; 
    } 

} 

      location ~ \.php$ { 
        fastcgi_split_path_info ^(.+\.php)(/.+)$; 
        # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini 
        fastcgi_pass unix:/var/run/php5-fpm.sock; 
        fastcgi_index index.php; 
        include fastcgi_params; 
      } 

       location ~ ^/(index|frontend|frontend_dev|backend|backend_dev)\.php$ { 
        include fastcgi_params; 
        fastcgi_split_path_info ^(.+\.php)(/.+)$; 
        fastcgi_param PATH_INFO $fastcgi_path_info; 
        fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; 
        fastcgi_param HTTPS off; 
        fastcgi_pass unix:/var/run/php5-fpm.sock; 
     } 

    } 

답변

2

봐 확인합니다. 당신이 sfGuardPlugin를 사용하는 경우

<?php 

class myUser extends sfBasicSecurityUser 
{ 
} 

?> 

또는 :이없는 경우 하나를 만들고 그 안에 추가

<?php 

class myUser extends sfGuardSecurityUser 
{ 
} 

?> 

그런 다음 캐시를 지 웁니다.

관련 문제