Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/258.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 贝宝可以';无法访问我的网站(IPN,.htaccess)_Php_.htaccess_Paypal Ipn - Fatal编程技术网

Php 贝宝可以';无法访问我的网站(IPN,.htaccess)

Php 贝宝可以';无法访问我的网站(IPN,.htaccess),php,.htaccess,paypal-ipn,Php,.htaccess,Paypal Ipn,当有人在我的opencart网站上使用paypal standard付款时,付款就完成了,但IPN通知从未到达我的网站。 回信地址很好,但贝宝似乎无法访问我的网站 在我的.htaccess文件或主机设置中是否有可以更改的内容?我真的不知道现在该怎么办 我甚至在我的网站上创建了一个名为ipn.php的虚拟php脚本,当它打开时会向我发送一封电子邮件。我给了它的地址贝宝作为通知地址,但它也没有被调用 更新:在Paypal的沙箱中使用IPN模拟器进行测试后,我得到以下错误:IPN交付失败:I/O错误:

当有人在我的opencart网站上使用paypal standard付款时,付款就完成了,但IPN通知从未到达我的网站。 回信地址很好,但贝宝似乎无法访问我的网站

在我的.htaccess文件或主机设置中是否有可以更改的内容?我真的不知道现在该怎么办

我甚至在我的网站上创建了一个名为ipn.php的虚拟php脚本,当它打开时会向我发送一封电子邮件。我给了它的地址贝宝作为通知地址,但它也没有被调用

更新:在Paypal的沙箱中使用IPN模拟器进行测试后,我得到以下错误:IPN交付失败:I/O错误:连接超时;嵌套异常为java.net.ConnectException:连接超时

我的htaccess文件:

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. 

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 

#RewriteBase /
RewriteRule sitemap.xml /farmaciagimeno.com/index.php?route=feed/google_sitemap
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) /farmaciagimeno.com/index.php?_route_=$1 [L,QSA]


### Additional Settings that may need to be enabled for some servers 
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

RedirectMatch 301 ^/farmaciagimeno.com(.*)$ http://www.farmaciagimeno.com$1
#1.要使用URL别名,您需要在启用mod#u rewrite的情况下运行apache。
# 2. 在opencart目录中,将htaccess.txt重命名为.htaccess。
#有关任何支持问题,请访问:http://www.opencart.com
选项+FollowSymlinks
#防止Directoy上市
选项-索引
#阻止直接访问文件
命令拒绝,允许
全盘否定
#搜索引擎优化URL设置
重新启动发动机
#如果您的opencart安装没有在主web文件夹上运行,请确保您的文件夹在ie中运行。/been/shop/
#重写基/
重写规则sitemap.xml/farmaciagimeno.com/index.php?route=feed/google_sitemap
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^([^?]*)/farmaciagimeno.com/index.php?\u路由=$1[L,QSA]
###某些服务器可能需要启用的其他设置
###通过删除前面的#符号来取消对命令的注释。
###如果在启用以下任何设置后出现“内部服务器错误500”,请恢复#,因为这意味着您的主机不允许这样做。
# 1. 如果您的购物车一次只允许您添加一个项目,则可以启用register_globals。这可能会禁用它:
#php_标志寄存器_全局关闭
# 2. 如果您的购物车启用了魔法报价,这可能会使其禁用:
php_标志魔术_引号_gpc关闭
# 3. 设置最大上载文件大小。大多数主机将对此进行限制,并且不允许覆盖它,但您可以尝试
#php_值上传_最大_文件大小999M
# 4. 设置最大邮件大小。如果有很多产品选项或表单未保存所有字段时出现错误,请取消对此行的注释
#php_值post_最大尺寸999M
# 5. 设置脚本可以花费的最大时间。如果有很多产品选项或表单未保存所有字段时出现错误,请取消对此行的注释
#php_值最大执行时间200
# 6. 设置接收输入的最长时间。如果有很多产品选项或表单未保存所有字段时出现错误,请取消对此行的注释
#php_值最大输入时间200
重定向匹配301^/farmaciagimeno.com(.*)$http://www.farmaciagimeno.com$1

我不知道,你的
.htaccess
现在是什么样子?您是否在服务器日志中收到任何错误?请分享你目前拥有的…我在我的服务器日志中没有看到任何错误消息。我用.htaccess文件更新了我的问题,好像你不是唯一一个对PayPal IPN有问题的人。今天上午还有一个问题,不是同一个问题,而是同一个IPN问题。