简体   繁体   English

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

[英]Symfony 1.4 Fatal error Class 'myUser' not found

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: Nginx配置:

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

    }

Look to see if there is a myUser.class.php file in the lib folder of your app. 查看您的应用程序的lib文件夹中是否存在myUser.class.php文件。 If there isn't create one and in it add: 如果没有创建一个,并在其中添加:

<?php

class myUser extends sfBasicSecurityUser
{
}

?>

Or if you are using sfGuardPlugin: 或者,如果您使用的是sfGuardPlugin:

<?php

class myUser extends sfGuardSecurityUser
{
}

?>

Then clear the cache. 然后清除缓存。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PHP致命错误:在运行PHP Excel Symfony1.4时找不到类&#39;sfConfig&#39; - PHP Fatal error: Class 'sfConfig' not found in while run PHP Excel Symfony1.4 RHEL 6,PHP 5.3.3,symfony 1.4。[12] - &gt;不规则PHP致命错误:找不到类&#39;sfProjectConfiguration&#39; - RHEL 6, PHP 5.3.3, symfony 1.4.[12] -> irregular PHP Fatal error: Class 'sfProjectConfiguration' not found in 致命错误:在第4行的…\\ lib \\ myUser.class.php中找不到类&#39;sfGuardSecurityUser&#39; - Fatal error: Class 'sfGuardSecurityUser' not found in …\lib\myUser.class.php on line 4 Symfony:致命错误:在应用程序/控制台中找不到类 - Symfony: Fatal Error: Class not found in app/console PHP致命错误:未捕获的错误:在Symfony上找不到类“ DOMDocument” - PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found on Symfony Symfony 1.4未加载sfTestFunctional失败,找不到类 - Symfony 1.4 not loading sfTestFunctional failing with class not found Symfony 2.3.5致命错误:在服务器上找不到类“ResourceBundle” - Symfony 2.3.5 Fatal error: Class 'ResourceBundle' not found on Server 带有Symfony致命错误的PHPUnit:找不到类&#39;Doctrine \\ Bundle \\ DoctrineBundle \\ DoctrineBundle&#39; - PHPUnit with Symfony Fatal error: Class 'Doctrine\Bundle\DoctrineBundle\DoctrineBundle' not found Symfony:致命错误:找不到类'PHPUnit_Framework_TestCase' - Symfony: Fatal error: Class 'PHPUnit_Framework_TestCase' not found in Symfony3:致命错误:在 .\\bin\\console 中找不到“AppKernel”类 - Symfony3: Fatal error: Class 'AppKernel' not found in .\bin\console
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM