doulu1914 2014-08-29 11:59
浏览 48
已采纳

Symfony 1.4致命错误类'myUser'未找到

In error log I see:

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

What can caouse this problem ?

Nginx config:

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;
      }

    }
  • 写回答

1条回答 默认 最新

  • dre93205 2014-08-29 16:16
    关注

    Look to see if there is a myUser.class.php file in the lib folder of your app. If there isn't create one and in it add:

    <?php
    
    class myUser extends sfBasicSecurityUser
    {
    }
    
    ?>
    

    Or if you are using sfGuardPlugin:

    <?php
    
    class myUser extends sfGuardSecurityUser
    {
    }
    
    ?>
    

    Then clear the cache.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用