[2] ErrorException in Index.php line 324

A non-numeric value encountered

  1. $path = '/' . $leibie;
  2. $total = 0;
  3. $num = 100;
  4. if ($leibie == 'key'){
  5. $n_info['name']= '关键字';
  6. $max_id = $total = Db::name('keyword')->order('id desc')->cache(86400)->limit(1)->value('id');
  7. // $page_max_id = ($page-1) * $num + $min_id-1;
  8. $page_max_id = $max_id - $page * $num;
  9. $where = '1=1 ';
  10. if($max_id) $where .= ' and id > '.$page_max_id;
  11. // var_dump($page_max_id);
  12. $data = Db::name('keyword')->where($where)
  13. ->paginate($num, false, ['path' => $path . '[PAGE]/', 'total' => $max_id]);
  14. $list = [];
  15. foreach ($data as $v) {
  16. $v['m_seo_url'] = seo_url('keyword/detail', $v['id'] ,'/');
  17. $v['share_url'] = seo_url('keyword/detail', $v['id'] , '/');

Call Stack

  1. in Index.php line 324
  2. at Error::appError() in Index.php line 324
  3. at Index->suoyin()
  4. at ReflectionMethod->invokeArgs() in Container.php line 395
  5. at Container->invokeReflectMethod() in Module.php line 131
  6. at Module->think\route\dispatch\{closure}()
  7. at call_user_func_array() in Middleware.php line 185
  8. at Middleware->think\{closure}()
  9. at call_user_func() in Middleware.php line 130
  10. at Middleware->dispatch() in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}()
  14. at call_user_func_array() in Middleware.php line 185
  15. at Middleware->think\{closure}()
  16. at call_user_func() in Middleware.php line 130
  17. at Middleware->dispatch() in App.php line 435
  18. at App->run() in index.php line 26

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER http://www.book6789.com/keyword-1/
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.book6789.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME zhanqun52.ruanwenfa.com
SERVER_PORT 443
SERVER_ADDR 172.17.0.14
REMOTE_PORT 43928
REMOTE_ADDR 18.232.179.191
SERVER_SOFTWARE nginx/1.19.7
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/www.zhanqun52.com/public
DOCUMENT_URI /index.php
REQUEST_URI /keyword-1/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/keyword-1/
SCRIPT_FILENAME /www/wwwroot/www.zhanqun52.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711687127.9937
REQUEST_TIME 1711687127
Environment Variablesempty
ThinkPHP Constants
ROOT_PATH /www/wwwroot/www.zhanqun52.com/public/../
APP_PATH /www/wwwroot/www.zhanqun52.com/public/../application/
PUBLIC_PATH /www/wwwroot/www.zhanqun52.com/public/../public/
EXTEND_PATH /www/wwwroot/www.zhanqun52.com/public/../extend/
DS /
FILTER_VALIDATE_BOOL 258