System Error

[2] ErrorException in TopLogger.php line 22

mkdir(): Permission denied

  1. if (null === $this->fileHandle)
  2. {
  3. if (empty($this->conf["log_file"]))
  4. {
  5. trigger_error("no log file spcified.");
  6. }
  7. $logDir = dirname($this->conf["log_file"]);
  8. if (!is_dir($logDir))
  9. {
  10. mkdir($logDir, 0777, true);
  11. }
  12. $this->fileHandle = fopen($this->conf["log_file"], "a");
  13. }
  14. return $this->fileHandle;
  15. }
  16. public function log($logData)
  17. {
  18. if ("" == $logData || array() == $logData)

Call Stack

  1. in TopLogger.php line 22
  2. at Error::appError(2, 'mkdir(): Permission ...', 'D:\wwwroot\chexu\ven...', 22, ['logDir' => '/tmp/logs'])
  3. at mkdir('/tmp/logs', 511, true) in TopLogger.php line 22
  4. at TopLogger->getFileHandle() in TopLogger.php line 40
  5. at TopLogger->log(['2018-07-19 13:57:26', '<?xml version="1.0" ...']) in TopClient.php line 337
  6. at TopClient->execute(object(TbkDgMaterialOptionalRequest)) in Taobao.php line 4
  7. at Taobao->superSearch('https://item.taobao....') in Goods.php line 4
  8. at Goods->superSearch('533831958886') in Goods.php line 4
  9. at Goods->index()
  10. at ReflectionMethod->invokeArgs(object(Goods), []) in App.php line 196
  11. at App::invokeMethod([object(Goods), 'index'], []) in App.php line 408
  12. at App::module(['index', 'goods', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 295
  13. at App::exec(['type' => 'module', 'module' => ['index', 'goods', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  14. at App::run() in start.php line 18
  15. at require('D:\wwwroot\chexu\thi...') in index.php line 20

Exception Datas

Error Context
logDir /tmp/logs

Environment Variables

GET Data

[ "id", "his_goods_ids", "WEB_CACHE_STATUS", "goods-", "-", "details", "GoodsCate", "status", "name", "historyGoods", "", "likeGoods", "title", "goods", "hisGoods", "cate", "tags", "alias", "index", "\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u5546\u54c1ID", "intro", "price", "coupon_price", "seo_title", "seo_keywords", "seo_keys", "seo_description", "code", "get.code", "trim", "id,goods_id,cid,title,price,discount_price,coupon_price,intro,img,coupon_id,coupon_url,coupon_receive,coupon_surplus,coupon_total,volume,shop_type,ems,start_time,end_time,seo_keys", "GOODS_AUTO_STATUS", "Goods", "goods_id", "in", "end_time", "gt", "id desc", "id|goods_id", "cid", "volume desc", "https:\/\/item.taobao.com\/item.htm?id=", "list", "coupon_info", "\u51cf", "\u5143", "\/http\\:\\\/\\\/\/si", "\/\/", "small_images", "string", "\/https\\:\\\/\\\/\/si", "\/\\\/\\\/\/si", "http:\/\/", "img", "discount_price", "zk_final_price", "reserve_price", "shop_type", "user_type", "B", "C", "coupon_id", "volume", "coupon_url", "couponUrl", "coupon_end_time" ]

[1] ErrorException in think_exception.tpl line 423

Uncaught exception 'think\exception\ErrorException' with message 'json_encode(): Invalid UTF-8 sequence in argument' in D:\wwwroot\chexu\thinkphp\tpl\think_exception.tpl:423
Stack trace:
#0 [internal function]: think\Error::appError(2, 'json_encode(): ...', 'D:\\wwwroot\\chex...', 423, Array)
#1 D:\wwwroot\chexu\thinkphp\tpl\think_exception.tpl(423): json_encode(Array, 128)
#2 D:\wwwroot\chexu\thinkphp\library\think\exception\Handle.php(166): include('D:\\wwwroot\\chex...')
#3 D:\wwwroot\chexu\thinkphp\library\think\exception\Handle.php(84): think\exception\Handle->convertExceptionToResponse(Object(think\exception\ErrorException))
#4 D:\wwwroot\chexu\thinkphp\library\think\Error.php(47): think\exception\Handle->render(Object(think\exception\ErrorException))
#5 [internal function]: think\Error::appException(Object(think\exception\ErrorException))
#6 {main}
thrown

  1. <?php } else { ?>
  2. <h3 class="subheading"><?php echo $label; ?></h3>
  3. <div>
  4. <?php foreach ((array) $value as $key => $val) { ?>
  5. <div class="clearfix">
  6. <div class="col-md-3"><strong><?php echo htmlentities($key); ?></strong></div>
  7. <div class="col-md-9"><small>
  8. <?php
  9. if(is_array($val) || is_object($val)){
  10. echo htmlentities(json_encode($val, JSON_PRETTY_PRINT));
  11. } else if(is_bool($val)) {
  12. echo $val ? 'true' : 'false';
  13. } else if(is_scalar($val)) {
  14. echo htmlentities($val);
  15. } else {
  16. echo 'Resource';
  17. }
  18. ?>
  19. </small></div>

Call Stack

  1. in think_exception.tpl line 423
  2. at Error::appShutdown()

Environment Variables

GET Data

[ "id", "his_goods_ids", "WEB_CACHE_STATUS", "goods-", "-", "details", "GoodsCate", "status", "name", "historyGoods", "", "likeGoods", "title", "goods", "hisGoods", "cate", "tags", "alias", "index", "\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u5546\u54c1ID", "intro", "price", "coupon_price", "seo_title", "seo_keywords", "seo_keys", "seo_description", "code", "get.code", "trim", "id,goods_id,cid,title,price,discount_price,coupon_price,intro,img,coupon_id,coupon_url,coupon_receive,coupon_surplus,coupon_total,volume,shop_type,ems,start_time,end_time,seo_keys", "GOODS_AUTO_STATUS", "Goods", "goods_id", "in", "end_time", "gt", "id desc", "id|goods_id", "cid", "volume desc", "https:\/\/item.taobao.com\/item.htm?id=", "list", "coupon_info", "\u51cf", "\u5143", "\/http\\:\\\/\\\/\/si", "\/\/", "small_images", "string", "\/https\\:\\\/\\\/\/si", "\/\\\/\\\/\/si", "http:\/\/", "img", "discount_price", "zk_final_price", "reserve_price", "shop_type", "user_type", "B", "C", "coupon_id", "volume", "coupon_url", "couponUrl", "coupon_end_time" ]