[2] ErrorException in Query.php line 936

Illegal offset type

  1. }
  2. }
  3. if ($prefix && false === strpos($table, '.') && 0 !== strpos($table, $prefix) && 0 !== strpos($table, '__')) {
  4. $table = $this->getTable($table);
  5. }
  6. }
  7. if (isset($alias) && $table != $alias) {
  8. $table = [$table => $alias];
  9. }
  10. }
  11. return $table;
  12. }
  13. /**
  14. * 查询SQL组装 union
  15. * @access public

Call Stack

  1. in Query.php line 936
  2. at Error::appError(2, 'Illegal offset type', '/www/wwwroot/cspccom...', 936, ['join' => '', 'alias' => '', 'table' => ['cspc_archives' => 'archives'], ...]) in Query.php line 936
  3. at Query->getJoinTable('', '') in Query.php line 1147
  4. at Query->view('', '*', '.aid=archives.id') in Cate.php line 92
  5. at Cate->content('818')
  6. at ReflectionMethod->invokeArgs(object(Cate), ['818']) in Container.php line 395
  7. at Container->invokeReflectMethod(object(Cate), object(ReflectionMethod), ['id' => '818']) in Module.php line 132
  8. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  9. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  13. at Module->exec() in Dispatch.php line 168
  14. at Dispatch->run() in App.php line 432
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  19. at Middleware->dispatch(object(Request)) in App.php line 435
  20. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /index/cate/content/id/818.html
QUERY_STRING s=/index/cate/content/id/818.html
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING s=/index/cate/content/id/818.html
REDIRECT_URL /index/cate/content/id/818.html
REMOTE_PORT 20000
SCRIPT_FILENAME /www/wwwroot/cspccom/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/cspccom/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/cspccom/public
REMOTE_ADDR 23.104.192.18
SERVER_PORT 80
SERVER_ADDR 172.16.10.101
SERVER_NAME www.e-cspc.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at www.e-cspc.com Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
HTTP_ACCEPT_ENCODING deflate, gzip
HTTP_ACCEPT */*
HTTP_HOST www.e-cspc.com
HTTP_USER_AGENT Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1576388766.1992
REQUEST_TIME 1576388766
Environment Variablesempty
ThinkPHP Constantsempty