草庐IT

expected-exception

全部标签

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 - stream_socket_enable_crypto() : Peer certificate CN =`cs723.mojohost.com' did not match expected CN =`smtp.sendgrid.net'

我们正在尝试向新成员(member)发送自动回复邮件。我们在同一台服务器上的其他站点上使用相同的配置,没有问题。发送电子邮件后,返回以下错误:stream_socket_enable_crypto():PeercertificateCN=cs723.mojohost.comdidnotmatchexpectedCN=smtp.sendgrid.nethttps://gyazo.com/ffb0cb7645d51ed21ecc863f1e3196b2我们使用Laravel连接到:smtp.sendgrid.net网站端口-587使用TLS加密我们尝试了以下但没有成功:端口选项25和252

PHP 警告 : mysqli_close() expects parameter 1 to be mysqli

我正在尝试通过php连接到sql数据库,但一直收到我无法弄清楚的错误。我可以毫无错误地连接到另一个调试脚本。我获得连接并提取数据,但最后出现错误。$con=mysqli_connect("localhost","username","password","dbname");//Checkconnectionif(mysqli_connect_errno()){echo"FailedtoconnecttoMySQL:".mysqli_connect_error();}//ThisSQLstatementselectsALLfromthetable'Locations'$sql="SELE

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{

php - Kohana_Exception [ 0 ]:需要有效的 cookie 盐。请设置 Cookie::$salt

我正在学习本教程(http://kowsercse.com/2011/09/04/kohana-tutorial-beginners/)并遇到此错误消息:Kohana_Exception[0]:Avalidcookiesaltisrequired.PleasesetCookie::$salt.我是一个n00b,甚至不知道在应用程序中的哪里寻找Cookie::$salt。 最佳答案 您必须提供盐,您可以在officialdocumentation中看到//bootstrap.phpCookie::$salt='foobar';我强烈推

php - "Expected response code 250 but got code "554 ", with message "554 5.2.0 STOR EDRV“

我想发送一封带附件的电子邮件。使用smtp.office365.com生产环境:ubuntusmtp.office365.com-Laravel5.预期响应代码250但得到代码“554”,消息“5545.2.0STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied;由于消息无法提交消息的永久异常而无法处理消息。本地主机:预期响应代码250但得到代码“530”,消息“5305.7.57SMTP;客户端未通过身份验证,无法在MAILFROM[xxxxxx.xxxx.PROD.OUTLOOK.

php - 警告 : date() expects parameter 2 to be long, 中给出的字符串

我在我的数据库的car_detail.php页面上不断收到这个错误Warning:date()expectsparameter2tobelong,stringgivenin/home/speedycm/public_html/speedyautos/cars_class.phponline228*cars_class.php在第228行读取这个$this->expiry_date=date("m/d/Y",$rows['expiry_date']);我该如何解决这个问题? 最佳答案 date()需要一个unix时间戳...我想您正在

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