【问题标题】:"No input file specified" error in Sagepay integration kitSagepay 集成套件中的“未指定输入文件”错误
【发布时间】:2015-02-23 12:34:38
【问题描述】:

我是 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 .htaccess opayo


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

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

      .htaccess最后一个RewriteRule必须是这样RewriteRule ^(.*)$ index.php?/$1 [L]

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

      【讨论】:

        猜你喜欢
        • 2015-02-12
        • 1970-01-01
        • 2011-09-10
        • 1970-01-01
        • 1970-01-01
        • 2014-02-06
        • 1970-01-01
        • 1970-01-01
        • 2013-01-11
        相关资源
        最近更新 更多