草庐IT

ERROR_NO_MATCH

全部标签

php - FatalErrorException : syntax error, unexpected ':' ,在 Laravel 中期望 ',' 或 ';'

关闭。这个问题是notreproducibleorwascausedbytypos.它目前不接受答案。这个问题是由于错别字或无法再重现的问题引起的。虽然类似的问题可能是on-topic在这里,这个问题的解决方式不太可能帮助future的读者。关闭4个月前。Improvethisquestion这件事一直困扰着我。我收到此解析错误:语法错误,意外的“:”,期待“,”或“;”在/opt/lampp/htdocs/pratice/storage/framework/views/36f62563d0e17e05a5f15bec012dd0cd第21行我的View文件是@extends('lay

php - fatal error : Uncaught Error: Call to a member function select() on null

我对php中的OOP有点陌生,我每次在模型中都会遇到这个问题,但我找不到导致这个问题的错误。我收到一条错误消息:fatalerror:未捕获错误:在我的model的getCategories函数中调用成员函数select()onnull(参见下面的代码)。$picName,"pic_desc"=>$pd,"pic_type"=>$pt];$img=parent::$db->saveTo("pictures")->setData($data)->execute();if($img){$imgId=parent::$db->lastInsertId();$data=["name"=>$n,

php - Fatal error : require_once() [function. require]: 需要打开失败

我在php项目中工作,它给出的错误是:Warning:require_once(ROOT_PATH/lib/confs/Conf.php)[function.require-once]:failedtoopenstream:Nosuchfileordirectoryin..\htdocs\GProject\lib\exception\ExceptionHandler.phponline20Fatalerror:require_once()[function.require]:Failedopeningrequired'ROOT_PATH/lib/confs/Conf.php'(incl

php - fatal error : Class 'database' not found - PHP

当我尝试使用问题类时,出现以下错误:Fatalerror:Class'database'notfoundinpath/problem.phponline25我不明白为什么会出现此错误,在problem.php的顶部我需要database.php。发生了什么事?问题.php数据库.php 最佳答案 这可能是一个包含路径问题。为了修复它,在你的problem.php文件中这样做:echorealpath(dirname(__FILE__));会输出类似的内容/var/www/html/我的文件路径/您的文件problem.php将在该目

php - 在 Composer 和 SVN 上出现错误 "No driver found to handle VCS repository"

我是Composer的新手,我已经关注了https://getcomposer.org/doc/05-repositories.md#subversion-options使用Composer创建示例的结构。但是,在使用命令composerinstall时,我收到Composer和SVN的以下错误消息:[InvalidArgumentException]NodriverfoundtohandleVCSrepositoryhttp://myexamplesvn/MyCommon-1.0/.....这是我的设置:"repositories":[{"type":"vcs","url":"htt

php - 函数 split() 已弃用,preg_split() : No ending delimiter ',' found

我有一个10年前写的PHP脚本。现在我们将脚本移至新服务器,但它无法正常工作。有问题的行是:$p_industry=split(',',$member['p_industry']);测试电子邮件收到此错误消息:Functionsplit()isdeprecated.我研究了这个网站,然后用替换了脚本$p_industry=preg_split(',',$member['p_industry']);然后测试电子邮件收到此不同的错误消息:preg_split():Noendingdelimiter','found当我将脚本更改为$p_industry=explode(',',$member

php - 无法与主机 mailtrap.io 建立连接 [php_network_getaddresses : getaddrinfo failed: No such host is known. #0]

我遇到以下错误:Connectioncouldnotbeestablishedwithhostsmtp.gmail.com[php_network_getaddresses:getaddrinfofailed:Nosuchhostisknown.0]我的.env文件如下所示:MAIL_HOST=smtp.gmail.comMAIL_PORT=587MAIL_USERNAME=xxxxxxxxxxxxxxMAIL_PASSWORD=xxxxxxxx#MAIL_ENCRYPTION=null配置中的mail.php文件如下所示:/*|----------------------------

PHP fatal error : Call to undefined function password_verify()

我的XAMPP上有PHP5.5.6,我没有遇到错误。但是将我的网站上传到我们的测试环境后,出现了以下错误:PHPFatalError:Calltoundefinedfunctionpassword_verify()我们的测试环境/服务器有PHP5.5.9(我使用命令php-v检查了它)我还查看了PHP手册,它说在使用此功能时无需配置和安装。有什么想法可能导致此问题吗? 最佳答案 password_verify()自PHP5.5.0以来内置,很可能您的服务器没有运行最新的PHP版本。请务必通过phpinfo()仔细检查服务器上的PHP

php - 拉维尔 5 : Ajax Post 500 (Internal Server Error)

我正在尝试通过ajax将数据提交到数据库。提交文章页面在没有ajax的情况下工作正常。我添加了console.log()只是为了查看是否有任何事情发生,但我收到了这个错误:POSThttp://localhost/laravel-5/public/articles/create500(InternalServerError)我的代码有什么问题?是javascript还是Controller?编辑:我在laravel.log中得到这个exception'Illuminate\Session\TokenMismatchException'inC:\xampp\htdocs\laravel-

php - Netbeans-PHPUnit "No tests executed"错误

我是任何类型测试的新手。我刚刚使用这个doc安装了pear和PHPUnit.我使用netbeans7.3.1。我还安装了运行此命令的skeletongenerator:pearinstallphpunit/PHPUnit_SkeletonGenerator。我按照此testingwithPHPUnit中列出的步骤进行操作将PHPUnit集成到netbeans。如该文档的InstallingPHPUnit部分所述,通过单击Netbeans->preferences->unittesting下的search按钮,我的netbeans可以识别PHPUnit安装。我按照所有步骤添加示例Calc