草庐IT

IGNORE_EXCEPTION_DETAIL

全部标签

php - 请求。错误 : Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET/"

我已经安装了Symfony2,修复了文件权限后,我可以通过将浏览器指向以下地址来访问开发环境:http://localhost/app_dev.php但是,当我尝试通过将浏览器指向http://localhost来访问生产环境时,出现以下异常(来自app/logs/prod.log):[2012-08-1311:30:03]request.ERROR:Symfony\Component\HttpKernel\Exception\NotFoundHttpException:Noroutefoundfor"GET/"(uncaughtexception)at/path/to/framewo

php - fatal error : Uncaught SoapFault exception: [soap:Client]

你好我的支付网关有问题,当网关中的工作完成并通过下面的编码返回到这个文件时.title{height:30px;}input{font-family:tahoma;}';//echo$this->package['cost'].'--'.$AppConfig['plus']['packages'][0]['cost'];//echo$st[1];//echo$AppConfig['plus']['payments']['paypal']['merchant_id'];if(isset($_POST['status'])&&$_POST['status']==100){$Resnumbe

php - iconv() : Wrong charset, 不允许从 `auto' 转换为 `utf-8//IGNORE'

我正在为我的Laravel4框架使用thujohn/PDF-l4插件。它在本地Windows环境中运行良好。但是当移动到我的Centos生产环境时,转换PDF时会抛出以下错误。"iconv():Wrongcharset,conversionfrom`auto'to`utf-8//IGNORE'isnotallowed"检查了我的php-mbstring,但没有发现任何错误。 最佳答案 请在CentOS上安装PHPmbstring和xml扩展 关于php-iconv():Wrongchar

php - 为什么要使用多个 PHP Exception 类

我承认我并没有经常使用异常,有时我很难100%掌握PHP中的异常,这可能部分是因为PHP没有最好的错误=>异常支持,但我仍然这样做对他们了解不多。以下面这段代码为例,它定义了4个不同的类,它们除了扩展基异常类之外什么都不做。我很好奇为什么人们不直接调用Exception以及为什么他们有所有这些单独的类。我认为有充分的理由吗?classOptimizeImageExceptionextendsException{};classFileNotFoundExceptionextendsOptimizeImageException{};classFileNotImageExceptionext

php - 为生产覆盖 Kohana_Exception::_handler() - 3.3

我正在使用Kohana3.3并且我阅读了这个forumpost.它说,为了防止向最终用户显示堆栈跟踪,我需要覆盖Kohana_Exception::_handler()以对向上渗透的错误做一些不同的事情。这是否意味着覆盖Kohana_Exception并添加以下函数?publicstaticfunction_handler(Exception$e){try{//LogtheexceptionKohana_Exception::log($e);//Generatetheresponse//insteadofbelowline://$response=Kohana_Exception::r

php - 未捕获的异常 'Exception' 消息为“DateTime::__construct():

我在输出在我的PHP文件中创建的日期时遇到问题。我一直在关注如何制作一个真正的Basic-CMS平台的教程,以帮助我了解databases和PHP的一些基础知识,一切都已经完成一切顺利,直到我尝试输出页面的创建日期。这是我得到的错误Fatalerror:Uncaughtexception'Exception'withmessage'DateTime::__construct():Itisnotsafetorelyonthesystem'stimezonesettings.Youare*required*tousethedate.timezonesettingorthedate_defa

php - 为什么 Exception 不是 Throwable 的实例?

我认为在所有编程语言中,Exception类都是Throwable接口(interface)的实例。看看下面的代码,它显示Exception不是php中Throwable的实例。try{thrownewInvalidArgumentException("errormessage");}catch(InvalidArgumentException$e){if($einstanceofException){echo'$eisexception';//thislinegetsexecuted}if($einstanceofThrowable){echo'$eisthrowable';//bu

PHP 和 FPDI/FPDF : Fatal error: Uncaught Exception: FPDF error: Incorrect output destination

我有一个PDF文件,我想用FDI/FPDF添加一个新页面Fatalerror:UncaughtException:FPDFerror:Incorrectoutputdestination:outfiles/111111.pdfinC:\wamp\www\pdf\fpdi\fpdf.phponline271(!)Exception:FPDFerror:Incorrectoutputdestination:outfiles/111111.pdfinC:\wamp\www\pdf\fpdi\fpdf.phponline271require_once('fpdi/fpdf.php');requ

php - 更新到 PHP 7 后出现 CodeIgniter CI_Exceptions::show_exception 错误

我在PHP5.6中使用CodeIgniter3.0.0。昨天我更新到PHP7并开始出现以下错误:-UncaughtTypeError:Argument1passedtoCI_Exceptions::show_exception()mustbeaninstanceofException,instanceofErrorgiven,calledin/my/file/path/app/system/core/Common.phponline658anddefinedin/my/file/path/hgx_portal/app/system/core/Exceptions.php:190Stac

php - fatal error : Uncaught exception 'Exception' in PHPExcel classes

谁能告诉我,为什么从PHPExcel类中抛出以下错误Fatalerror:Uncaughtexception'Exception'withmessage'Couldnotclosezipfile/var/www/mydomain/myexcel.xlsx.'in/var/www/mydomain/Classes/PHPExcel/Writer/Excel2007.php:400Stacktrace:#0/var/www/mydomain/myexcel.php(173):PHPExcel_Writer_Excel2007->save('/var/www/mydomain...')#1{