[2] ErrorException in Channel.php line 48

array_merge(): Expected parameter 2 to be an array, string given

  1. $orderway = $this->request->get('orderway', '');
  2. $multiple = $this->request->get('multiple/d', 0);
  3. $orderway = $orderway && in_array(strtolower($orderway), ['asc', 'desc']) ? $orderway : 'desc';
  4. $params = [];
  5. $filter = $this->request->get();
  6. $filter = array_diff_key($filter, array_flip(['orderby', 'orderway', 'page', 'multiple']));
  7. if (isset($filter['filter'])) {
  8. $filter = array_merge($filter, $filter['filter']);
  9. unset($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;

Call Stack

  1. in Channel.php line 48
  2. at Error::appError()
  3. at array_merge() in Channel.php line 48
  4. at Channel->index()
  5. at call_user_func_array() in Route.php line 78
  6. at Route->execute()
  7. at ReflectionMethod->invokeArgs() in App.php line 343
  8. at App::invokeMethod() in App.php line 470
  9. at App::exec() in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/yiaini....') in index.php line 23

Environment Variables

GET Data

filter
orderby
default
orderway
asc
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
PATH_TRANSLATED
redirect:/index.php/c/caiyizhanshi.html/caiyizhanshi.html
PATH_INFO
/c/caiyizhanshi.html
SCRIPT_NAME
/index.php
REQUEST_URI
/c/caiyizhanshi.html?filter=&orderby=default&orderway=asc
QUERY_STRING
filter=&orderby=default&orderway=asc
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/2.0
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
filter=&orderby=default&orderway=asc
REDIRECT_URL
/c/caiyizhanshi.html
REMOTE_PORT
55072
SCRIPT_FILENAME
/www/wwwroot/yiaini.com/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/yiaini.com/public
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/yiaini.com/public
REMOTE_ADDR
3.86.235.207
SERVER_PORT
443
SERVER_ADDR
172.19.174.50
SERVER_NAME
yiaini.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at yiaini.com Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
yiaini.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
H2_STREAM_TAG
402-3
H2_STREAM_ID
3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH
off
H2PUSH
off
HTTP2
on
SSL_TLS_SNI
yiaini.com
HTTPS
on
REDIRECT_STATUS
200
REDIRECT_H2_STREAM_TAG
402-3
REDIRECT_H2_STREAM_ID
3
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH
off
REDIRECT_H2PUSH
off
REDIRECT_HTTP2
on
REDIRECT_SSL_TLS_SNI
yiaini.com
REDIRECT_HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/c/caiyizhanshi.html
REQUEST_TIME_FLOAT
1711679132.5538
REQUEST_TIME
1711679132
Environment Variables
empty

ThinkPHP Constants

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