客户端的服务器被移动,而magento cron.php从未被设置。当我启用它们时,我发现Magento正在发布到paypal:
Cron/usr/bin/php-q/home/dev/public_html/Cron.php
* About to connect() to api-3t.paypal.com port 443 (#0)
* Trying 173.0.88.69...
* connected
* Connected to api-3t.paypal.com (173.0.88.69) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: C=US; ST=California; L=San Jose; O=PayPal, Inc.; OU=PayPal Production; CN=api-3t.paypal.com
* start date: 2013-07-03 00:00:00 GMT
* expire date: 2015-09-18 23:59:59 GMT
* subjectAltName: api-3t.paypal.com matched
* issuer: C=US; O=VeriSign, Inc.; OU=VeriSign Trust Network; OU=Terms of use at https://www.verisign.com/rpa (c)10; CN=VeriSign Class 3 Secure Server CA - G3
* SSL certificate verify ok.
> POST /nvp HTTP/1.1
Host: api-3t.paypal.com
Accept: */*
Content-Length: 225
Content-Type: application/x-www-form-urlencoded
* upload completely sent off: 225 out of 225 bytes
< HTTP/1.1 200 OK
< Date: Tue, 25 Mar 2014 01:45:04 GMT
< Server: Apache
< Content-Length: 240
< Connection: close
< Content-Type: text/plain; charset=utf-8
<
* Closing connection #0
其中有一堆是从cron作业输出的。我立即禁用了cron。
我一辈子都找不到:1:magento联系贝宝的任何原因(这是一个开发服务器,自[从生产服务器的副本]建立以来还没有完整的订单)2:在Magento或Payal的任何日志都可以告诉我它到底在发布什么。
有人能透露一些信息吗?我们真的需要让cron工作起来,这样我们就可以运行网站地图生成,但我不愿意让它毫无理由地与Paypal对话。
我们目前正在使用Paypal Payments Pro和Express Checkout
谢谢,Mike
这是从贝宝获取报告的标准Magento cron作业,不用担心。你是对的,这是paypal_fetch_selement_reports的工作。它被放在app/code/core/Mage/Baypal/etc/config.xml中:
<crontab>
<jobs>
<paypal_fetch_settlement_reports>
<run>
<model>paypal/observer::fetchReports</model>
</run>
</paypal_fetch_settlement_reports>
</jobs>
</crontab>