订单提交特慢,错误如下

2016-07-07 15:36 来源:www.chinab4c.com 作者:ecshop专家

版本:2.6.2

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /data/htdocs/ecshop090430/flow.php on line 1864

Warning: file_get_contents(http://cps.longtuo.com/status?oid=2009092612983&os=0&aoid=328) [function.file-get-contents]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /data/htdocs/ecshop090430/flow.php on line 1864

回答:
s.jpg

  1. elseif ($_REQUEST['step'] == 'add_package_to_cart')
  2. {
  3. include_once('includes/cls_json.php');
  4. $_POST['package_info'] = json_str_iconv($_POST['package_info']);

  5. $result = array('error' => 0, 'message' => '', 'content' => '', 'package_id' => '');
  6. $json= new JSON;

  7. (说明:这里是1864行) if (empty($_POST['package_info']))
  8. {
  9. $result['error'] = 1;
  10. die($json->encode($result));
  11. }

  12. $package = $json->decode($_POST['package_info']);

  13. /* 如果是一步购物,先清空购物车 */
  14. if ($_CFG['one_step_buy'] == '1')
  15. {
  16. clear_cart();
  17. }
复制代码

请问是否修改过程序,如果修改过,可以先用源文件覆盖下

问题已解决,是防火墙引起的,希望以后有类似情况出现的朋友,可以参考问题排查!

恩,以前没碰到这样的问题。谢谢提醒。又多知道一个错误的解决方法。

不会吧。防火墙也会造成这个问题。。
我以为是权限问题啊。