[2] ErrorException in Channel.php line 44

array_merge(): Argument #2 is not an array

  1. $filter = $this->request->get('filter/a', []);
  2. $orderby = $this->request->get('orderby', '');
  3. $orderway = $this->request->get('orderway', '', 'strtolower');
  4. $multiple = $this->request->get('multiple/d', 0);
  5. $params = [];
  6. $filter = $this->request->get();
  7. $filter = array_diff_key($filter, array_flip(['orderby', 'orderway', 'page', 'multiple']));
  8. if (isset($filter['filter'])) {
  9. $filter = array_merge($filter, $filter['filter']);
  10. }
  11. if ($filter) {
  12. $filter = array_filter($filter, 'strlen');
  13. $params['filter'] = $filter;
  14. $params = $filter;
  15. }
  16. if ($orderby) {
  17. $params['orderby'] = $orderby;
  18. }

Call Stack

  1. in Channel.php line 44
  2. at Error::appError(2, 'array_merge(): Argum...', '/www/wwwroot/hengxiu...', 44, ['config' => ['system_user_id' => '1', 'sitename' => '恒修居', 'sitelogo' => '/uploads/20210126/0b...', ...], 'diyname' => null, 'channel' => object(Channel), ...])
  3. at array_merge(['filter' => ''], '') in Channel.php line 44
  4. at Channel->index()
  5. at call_user_func_array([object(Channel), 'index'], []) in Route.php line 76
  6. at Route->execute('cms', 'channel', 'index')
  7. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'channel', 'index']) in App.php line 343
  8. at App::invokeMethod(['\think\addons\Route', 'execute'], ['filter' => '', 'page' => '2', 'id' => '44', ...]) in App.php line 470
  9. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'channel', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/hengxiu...') in index.php line 23

Environment Variables

GET Data

filter
page
2
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.hengxiuju.com
PATH_INFO
/44.html
REDIRECT_STATUS
200
SERVER_NAME
hengxiuju.com
SERVER_PORT
443
SERVER_ADDR
172.25.30.221
REMOTE_PORT
48722
REMOTE_ADDR
34.230.35.103
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/hengxiuju/public
DOCUMENT_URI
/index.php
REQUEST_URI
/44.html?filter=&page=2
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/44.html&filter=&page=2
SCRIPT_FILENAME
/www/wwwroot/hengxiuju/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711616039.9174
REQUEST_TIME
1711616039
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/hengxiuju/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711616039.9178
THINK_START_MEM
404696
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/hengxiuju/thinkphp/
LIB_PATH
/www/wwwroot/hengxiuju/thinkphp/library/
CORE_PATH
/www/wwwroot/hengxiuju/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/hengxiuju/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/hengxiuju/
EXTEND_PATH
/www/wwwroot/hengxiuju/extend/
VENDOR_PATH
/www/wwwroot/hengxiuju/vendor/
RUNTIME_PATH
/www/wwwroot/hengxiuju/runtime/
LOG_PATH
/www/wwwroot/hengxiuju/runtime/log/
CACHE_PATH
/www/wwwroot/hengxiuju/runtime/cache/
TEMP_PATH
/www/wwwroot/hengxiuju/runtime/temp/
CONF_PATH
/www/wwwroot/hengxiuju/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
/www/wwwroot/hengxiuju/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/www/wwwroot/hengxiuju/addons/