草庐IT

wso2-streaming-integrator

全部标签

php - 这个错误是什么意思? PDO异常 : SQLSTATE[23000]: Integrity constraint violation

我在这里非常绝望,我有这个Drupal7生产站点,出乎意料的是,我在进入任何管理页面时都收到此错误(在日志中):这是什么意思?PDOException:SQLSTATE[23000]:Integrityconstraintviolation:1062Duplicateentry'25309582'forkey'PRIMARY':INSERTINTO{accesslog}(title,path,url,hostname,uid,sid,timer,timestamp)VALUES(:db_insert_placeholder_0,:db_insert_placeholder_1,:db_

php - 应用程序/控制台 Assets :install to S3 using stream wrapper errors

我有一个流包装器配置为使用Gaufrette与amazons3一起工作bundle来管理文件系统。我可以使用assetic成功转储Assets,我当前的配置如下:knp_gaufrette:adapters:amazon:amazon_s3:amazon_s3_id:site_store.s3bucket_name:%site_store.bucket_name%create:truefilesystems:amazon:adapter:amazonstream_wrapper:protocol:s3filesystems:-amazonassetic:read_from:%cdn_p

php - 获取 "Integrity constraint violation: 1048 Column ' payment_id' cannot be null"using Doctrine & Symfony

我已经被困了几天来处理这个问题。我一直在查看其他StackOverflow问题和不同的论坛,但我无法让它工作,所以这就是这个问题的原因。我正在开发一个包含付款的系统,所以我创建了一个“付款”类,如下所示:/***Payment**@ORM\Table()*@ORM\Entity(repositoryClass="PaymentRepository")*/classPayment{/***@varinteger**@ORM\Column(name="id",type="integer")*@ORM\Id*@ORM\GeneratedValue(strategy="AUTO")*@JMS\

PHPUnit 错误 "Failed to open stream: No such file or directory"

我刚刚安装了PHPUnitTesting,但出于某种原因它无法读取我的文件。我确信它在正确的路径中,但为什么PHPUnit找不到它?这是我的示例代码:函数.php这是要测试的代码和文件:函数测试.phpassertEquals(2,$result);}}?>我该怎么做才能让它发挥作用并通过测试? 最佳答案 您应该能够使用__DIR__。"/data/functions.php"在你的include语句中(这是前后两个下划线)。我在我的测试环境中做了一个快速测试,没有任何问题。__DIR__魔术常量为您提供了您正在运行的测试文件的完整

PHP 警告 : Unknown: failed to open stream: Permission denied in Unknown on line 0

我从Windows10上的PHP、wampserver和Composer开始,这将是一个星期我无法解决这个问题:当我键入时:php-Slocalhost:8000-ddisplay_errors=1public/在浏览器上运行:“localhost:8000/test”,我有这个错误:Warning:Unknown:failedtoopenstream:PermissiondeniedinUnknownonline0Fatalerror:Unknown:Failedopeningrequired'public/'(include_path='.;C:\wamp64\bin\php7.1

phpunit 和 yii - (PHPUnit/Autoload.php) : failed to open stream:

用Yii安装phpunit时遇到很多问题。我跑:$phpunitunit/dbTest.php但结果是这个错误:PHPWarning:require_once(PHPUnit/Autoload.php):failedtoopenstream:Nosuchfileordirectoryin/opt/yii-1.1.10.r3566/framework/test/CTestCase.phponline12(include_path='.:/usr/bin:/usr/share/php:/usr/bin/pear:/usr/share/php/Zend/:/opt/php5.3.10/lib

PHP 在尝试执行 php 文件时无法打开 Stream no such file or directory

我不断得到:无法打开Stream:第2行没有这样的文件或目录“Path”当我尝试从命令行运行此php文件时。require_once'modules/Reports/ScheduledReports.php'VTScheduledReport::runScheduledReports($adb);我检查了文件是否存在,ScheduledReports.php中有一个名为classVTScheduledReport的类和runScheduledReports函数.在那儿。该函数如下所示:publicstaticfunctionrunScheduledReports($adb){requi

php - "Failed to open stream"错误,创建新迁移时

我正在尝试使用yii迁移系统,但在执行此命令时遇到此错误:./yiicmigratecreatebasic_data_migrate我收到这个错误:PHPError[2]:file_get_contents(C:\Bitnami\wappstack-5.4.28-0\apache2\htdocs\cv360\protected\migrations\template.php):failedtoopenstream:NosuchfileordirectoryinfileC:\Bitnami\wappstack-5.4.28-0\apache2\htdocs\yii\framework\c

php - SELinux 影响 "failed to open stream: Permission denied” PHP 错误

昨天我花了5个小时连续发现一个看似不合理的错误“failedtoopenstream.permissiondenied”,这是在任何写入文件系统的操作之后发生的:fopen(带有“w”和“a”标志),move_uploaded_file,file_put_contents.我已经多次重新检查目录所有者(用户和组-chown、chgrp),将文件夹属性更改为不安全的777(使用chmod的rwx),但它没有任何效果。我什至重新安装了Apache和PHP,但仍然面临同样的错误。由于在阅读各种文档数小时后出现错误的原因是SELinux限制自动应用于Apache服务httpd。我只是通过更改行

php - 无法在原子编辑器中安装 php-integrator-base 包

我是这个编辑器的新手,我想在php项目中试用它。我正在尝试配置这个包php-integrator-base在我的atomide中,但我有这个错误:ThesocketconnectionwiththePHPservercouldnotbeestablished.ThismeansthePHPservercouldnotbespawned.Thisismostlikelyanissuewithyoursetup,suchasyourPHPbinarynotbeingfound,anextensionmissingonyoursystem,...这是我对这个包的设置:这是我在ubuntudi