草庐IT

active_exception

全部标签

php - Zend_Controller_Router_Exception : "xyz" is not specified

我当前的ZendFramework应用程序有问题。在我的Bootstrap中,我注册了这些路由:protectedfunction_initRouter(){$this->bootstrap("FrontController");$frontController=$this->getResource("FrontController");$route=newZend_Controller_Router_Route(":module/:id",array("controller"=>"index","action"=>"index"),array("id"=>"\d+"));$front

php - 在 Laravel Forge 上部署抛出 faker not found Exception

我正在尝试在forge上部署一个laravel项目,但出现以下异常:Symfony\Component\Debug\Exception\FatalErrorException]Class'Faker\Factory'notfound我在composer.json的require-dev中有faker引用!composer.json文件{"name":"laravel/laravel","description":"TheLaravelFramework.","keywords":["framework","laravel"],"license":"MIT","type":"projec

php - Symfony.4 Sonata AdminBundle 注销错误 : You must activate the logout in your security firewall configuration

登录正常。在/admin/logout出现错误Youmustactivatethelogoutinyoursecurityfirewallconfiguration.在在*\vendor\sonata-project\user-bundle\Controller\AdminSecurityController.php第98行我按照记录将注销设置为true:安全.yml:firewalls:main:pattern:.*#pattern:^/form-login:provider:fos_userbundlecsrf_provider:form.csrf_providerlogin_pa

php - Laravel 4 迁移 : class not found exception

很明显,当我想迁移我的数据库时,我得到了这个奇怪的错误{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class''notfound","file":"C:\\xampp\\htdocs\\l4crm\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Migrations\\Migrator.php","line":301}}[Finishedin1.3s]过去当然一切正常,我尝试迁移哪些文件并不重

php - 通配符子域异常(exception)

我启用了通配符子域,并通过按原样将其传递到我的index.php(例如somecity.domain.com)来动态解析URL。现在,我希望创建一些静态的子域,我可以在其中安装不同的应用程序,而不是与我当前的应用程序混在一起(例如blog.domain.com)。我的.htaccess当前读取:RewriteEngineOnRewriteBase/RewriteCond%{REQUEST_FILENAME}!-fRewriteCond%{REQUEST_FILENAME}!-dRewriteRule./index.php[L]我可以操纵这个.htaccess来实现我需要的吗?可以通过A

php - Active Record Delete 无法正常工作

我写了一个简单的函数来从数据库中删除数据,但是删除查询不正确我的模型代码如下:functionremovedata(){$userid=$this->input->post('userid');$this->db->where('userid',$userid);$deldata=$this->db->delete('userbasic');if($deldata==true){echo"DataRemovedSuccessfully";}else{echo"DeletionFailed";}}我已经加载了数据库并尝试了两个查询,即$this->db->where('userid',$

php - 交响乐 2 : Authentication exception occurred

我有一个可以运行的symfony站点,它是为2.0.9版开发的。我尝试升级到最新版本(2.4.2),但现在每次我尝试访问登录页面时都会出现重定向循环。以下是日志内容:[2014-03-1612:39:10]security.INFO:Authenticationexceptionoccurred;redirectingtoauthenticationentrypoint(ATokenwasnotfoundintheSecurityContext.)[][]这是我的security.ymlsecurity:encoders:Starski\FrontBundle\Entity\User:

php - NGINX - Active Directory 单点登录

我正在尝试为此找到解决方案,但没有取得太大成功。我开始计划开发一个Web应用程序,它需要Windows用户使用单点登录。我认为这更像是一个“很高兴拥有”的功能;我可以做一个身份验证表单,使用LDAP对ActiveDirectory进行身份验证,但显然SSO会更好:)有很多关于Apache和一些模块的这个问题的信息,但没有关于NGINX的信息。有任何提示/技巧,还是我应该立即放弃?我不想花太多时间尝试配置它并最终遇到一堆问题。 最佳答案 这个神奇的词是kerberos身份验证。nginx只有维护不善的模块,它们基本上都采用相同的方法。

php - 如何使用 LDAP 和 PHP 从 Active Directory 安全组中检索用户信息

正如您在下面看到的,当我对安全组进行LDAP搜索时,我没有获得任何用户信息。我想使用$_SERVER[remote_user]来检查用户是否是该组的成员。我还想检索该用户的信息并用它更新sql数据库。这可能吗?$dn="CN=Intra,OU=CommonSecurityGroups,DC=mydomain,DC=local";$filter="(member=*)";$ad=ldap_connect("IP")ordie("Couldn'tconnecttoAD!");ldap_set_option($ad,LDAP_OPT_PROTOCOL_VERSION,3);$bd=ldap_

PHP:\Exception 或命名空间内的异常

我正在尝试处理我的api中的一些错误。但是我尝试了很多方法来执行完成所需的操作?在代码中,我使用了Exception,\Exception,另一个扩展到Exception的类,“use\Exception”。这些选项都不起作用。我需要做什么来执行block捕获?//PieceofsourceinthebeginoffilenamespaceBusiness\Notifiers\Webhook;use\Exception;classMyExceptionextends\Exception{}//Pieceofsourcefrommyclasstry{$products=$payment-