System Error

[8] ErrorException in Advclick.php line 51

未定义数组索引: adv_clicknum

  1. if(empty($adv_info['adv_link'])){
  2. $adv_info['adv_link'] = HOME_SITE_URL;
  3. }
  4. $url = str_replace(array('&'), array('&'), $adv_info['adv_link']);
  5. /**
  6. * 写入点击率表
  7. */
  8. $adv_param['adv_id'] = $adv_id;
  9. $adv_param['adv_clicknum'] = $adv_info['adv_clicknum'] + 1;
  10. $adv_model->editAdv($adv_param);
  11. /**
  12. * 广告链接跳转
  13. */
  14. $this->redirect($url);
  15. }
  16. }
  17. ?>

Call Stack

  1. in Advclick.php line 51
  2. at Error::appError(8, 'Undefined index: adv...', '/www/wwwroot/51gamec...', 51, ['adv_model' => object(Adv), 'adv_id' => 64, 'condition' => ['adv_id' => 64], ...]) in Advclick.php line 51
  3. at Advclick->advclick()
  4. at ReflectionMethod->invokeArgs(object(Advclick), []) in App.php line 343
  5. at App::invokeMethod([object(Advclick), 'advclick'], []) in App.php line 611
  6. at App::module(['home', 'Advclick', 'Advclick'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['home', 'Advclick', 'Advclick']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/51gamec...') in index.php line 21

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

cart_goods_num
0

Session

home

Fatal error: Uncaught think\exception\ErrorException: A non well formed numeric value encountered in /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php:516 Stack trace: #0 [internal function]: think\Error::appError(8, 'A non well form...', '/www/wwwroot/51...', 516, Array) #1 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(516): date('Y-m-d H:i:s', '2020-05-17 08:4...') #2 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(615): think\Model->formatDateTime('2020-05-17 08:4...', 'Y-m-d H:i:s') #3 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(883): think\Model->getAttr('create_time') #4 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(2273): think\Model->toArray() #5 [internal function]: think\Model->jsonSerialize() #6 /www/wwwroot/51gamecard.com/thinkphp/tpl/think_exception.tpl(423): json_encode(Array, 128) #7 /www/wwwroot/51gamecard.com/thinkphp/library/think/exception/Handle.php(178): include('/www/wwwroot/51...') #8 /www/wwwroot/51gamecard.com/thinkphp/library/ in /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php on line 516

[1] ErrorException in Model.php line 516

Uncaught think\exception\ErrorException: A non well formed numeric value encountered in /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php:516
Stack trace:
#0 [internal function]: think\Error::appError(8, 'A non well form...', '/www/wwwroot/51...', 516, Array)
#1 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(516): date('Y-m-d H:i:s', '2020-05-17 08:4...')
#2 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(615): think\Model->formatDateTime('2020-05-17 08:4...', 'Y-m-d H:i:s')
#3 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(883): think\Model->getAttr('create_time')
#4 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(2273): think\Model->toArray()
#5 [internal function]: think\Model->jsonSerialize()
#6 /www/wwwroot/51gamecard.com/thinkphp/tpl/think_exception.tpl(423): json_encode(Array, 128)
#7 /www/wwwroot/51gamecard.com/thinkphp/library/think/exception/Handle.php(178): include('/www/wwwroot/51...')
#8 /www/wwwroot/51gamecard.com/thinkphp/library/

  1. * @param mixed $format 日期格式
  2. * @param bool $timestamp 是否进行时间戳转换
  3. * @return mixed
  4. */
  5. protected function formatDateTime($time, $format, $timestamp = false)
  6. {
  7. if (false !== strpos($format, '\\')) {
  8. $time = new $format($time);
  9. } elseif (!$timestamp && false !== $format) {
  10. $time = date($format, $time);
  11. }
  12. return $time;
  13. }
  14. /**
  15. * 数据写入 类型转换
  16. * @access public
  17. * @param mixed $value 值
  18. * @param string|array $type 要转换的类型

Call Stack

  1. in Model.php line 516
  2. at Error::appShutdown()

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

cart_goods_num
0

Session

home

Fatal error: Uncaught think\exception\ErrorException: A non well formed numeric value encountered in /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php:516 Stack trace: #0 [internal function]: think\Error::appError(8, 'A non well form...', '/www/wwwroot/51...', 516, Array) #1 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(516): date('Y-m-d H:i:s', '2020-05-17 08:4...') #2 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(615): think\Model->formatDateTime('2020-05-17 08:4...', 'Y-m-d H:i:s') #3 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(883): think\Model->getAttr('create_time') #4 /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php(2273): think\Model->toArray() #5 [internal function]: think\Model->jsonSerialize() #6 /www/wwwroot/51gamecard.com/thinkphp/tpl/think_exception.tpl(423): json_encode(Array, 128) #7 /www/wwwroot/51gamecard.com/thinkphp/library/think/exception/Handle.php(178): include('/www/wwwroot/51...') #8 /www/wwwroot/51gamecard.com/thinkphp/library/ in /www/wwwroot/51gamecard.com/thinkphp/library/think/Model.php on line 516