";没有指定输入文件“;Sagepay集成工具包中存在错误


"No input file specified" error in Sagepay integration kit

我是Sagepay的新手,我正试图建立一个测试站点来了解它,但当我尝试访问演示页面时,我一直遇到No input file specified错误。

测试文件(http://www.sagepay.co.uk/support/find-an-integration-document/form-integration)已放置在此处:

www.mydomain.com/dev/sagepaytest/

我无法访问的页面的一个例子是

www.mydomain.com/dev/sagepaytest/demo/form

我的.htaccess文件的内容是

RewriteEngine On
RewriteRule ^(assets).* $0 [L]
RewriteRule ^(app|bootstrap|config|cron|error|messages)'.php$ - [F,L]
RewriteRule ^(controller|helper|model|views) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

感谢

您使用的是哪个版本的PHP?如果是"FastCGI"版本,您可以尝试切换到"稳定",看看这是否解决了问题。

我花了48个小时来解决这个问题,看起来我离完成这个集成还有一步之遥。。。

在第40行的demo/app.php中,将PATH_INFO更改为QUERY_STRING(与ORIG_PATH_INFO更改为ORIG_QUERY_STRING

.htaccess中,最后一个重写规则必须是这样的RewriteRule ^(.*)$ index.php?/$1 [L]

由于我忘记了我的livesagepay帐户详细信息,我无法检查它是否工作到最后,然后我将获得新密码。但至少现在我可以看到表单集成页面