代码点火器错误

发布于 2024-08-02 17:02:03 字数 1477 浏览 2 评论 0原文

我目前正在开发一个带有 codeigniter 的网站,该网站使用 PayPal 标准付款。付款后,PayPal 使用 IPN 通知将信息发送回网站,并将用户连同信息一起作为 PDT 返回到网站。我使用两者,因为我提供数字下载。

PDT 和 IPN 都通过将其发送回 Paypal 来验证它们发送的信息是否确实来自 Paypal。如果贝宝识别出这是真实交易,则会返回已验证的交易。

一切都在沙盒中工作正常,但现在我已经将贝宝切换到生活它已经停止工作。我已经检查了所有常见的罪魁祸首,例如仍然指向沙箱。

当贝宝将我转发回我网站上的成功页面时。我看到以下错误,IPN 也失败并显示无效响应。

PHP Warning:  require(../system/libraries/Exceptions.php) [function.require]: failed to open stream: No such file or directory in C:\Domains\mydomain.com\system\codeigniter\Common.php on line 116
PHP Warning:  require(../system/libraries/Exceptions.php) [function.require]: failed to open stream: No such file or directory in C:\Domains\ mydomain.com\system\codeigniter\Common.php on line 116
PHP Fatal error:  require() [function.require]: Failed opening required ‘../system/libraries/Exceptions.php’ (include_path=’.;C:\PHP5\pear’) in C:\Domains\mydomain.com\system\codeigniter\Common.php on line 116

奇怪的是,当我刷新页面时,我没有收到错误,并且 PDT 信息已按预期验证并显示。即使在成功控制器函数的第一行代码上使用 die() 语句,我也会看到相同的错误,刷新时会显示 die() 输出而不是错误。

我按照此处的建议使用 $config['uri_protocol'] = “PATH_INFO”; $config['enable_query_strings'] = TRUE;

来允许查询字符串和段。 http://codeigniter.com/forums/viewthread/99570/

我正在使用 IIS 并且Pear 似乎已安装。

我的应用程序文件夹与系统文件夹位于同一级别。

有谁知道为什么会发生这种情况。

任何帮助或见解将不胜感激。

谢谢

I am currently developing a site with codeigniter that uses paypal standard payments. When a payment is made paypal sends the information back to the site using an IPN notification and returns the user to the site along with the info as a PDT. I use both because I am giving digital downloads.

Both PDT and IPN verify that the information they have been sent really came from paypal by sending it back to paypal. If paypal recognises that it is a real transaction it returns verified.

Things all work fine in the sandbox but now that I have switched paypal to live it has stopped working. I have check for all the usual culprits, such as still pointing to the sandbox.

When paypal forwards me back to the success page on my site. I see the following error, the IPN also fails with an INVALID response.

PHP Warning:  require(../system/libraries/Exceptions.php) [function.require]: failed to open stream: No such file or directory in C:\Domains\mydomain.com\system\codeigniter\Common.php on line 116
PHP Warning:  require(../system/libraries/Exceptions.php) [function.require]: failed to open stream: No such file or directory in C:\Domains\ mydomain.com\system\codeigniter\Common.php on line 116
PHP Fatal error:  require() [function.require]: Failed opening required ‘../system/libraries/Exceptions.php’ (include_path=’.;C:\PHP5\pear’) in C:\Domains\mydomain.com\system\codeigniter\Common.php on line 116

The strange thing is that when I refresh the page I don’t get the error and the PDT information is verified and displayed as expected. I see the same error even with a die() statement on the first line of code in my success controller function, when refreshed the die() output is shown instead of the error.

I am using $config[‘uri_protocol’] = “PATH_INFO”; $config[‘enable_query_strings’] = TRUE;

as suggested here to allow query strings and segments.
http://codeigniter.com/forums/viewthread/99570/

I am using IIS and Pear appears to be installed.

I have the application folder at the same level as the system folder.

Does anybody have any ideas why this is happening.

Any help or insights would be much appreciated.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

顾铮苏瑾 2024-08-09 17:02:03

$config['uri_protocol'] 的值更改为 REQUEST_URI 有帮助吗?

Does changing the value of $config[‘uri_protocol’] to REQUEST_URI help?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文