Welcome-欢迎光临(中国区)拉斯维加斯-官方网站



[2] ErrorException in ProductController.php line 50

count(): Parameter must be an array or an object that implements Countable

  1. if (empty($categoryId)) {
  2. $categories = $product['categories'];
  3. if(isset($GLOBALS['_city_name'])){
  4. if($GLOBALS['_city_name']){
  5. $categories[0]['name']=$GLOBALS['_city_name'].$categories[0]['name'];
  6. }
  7. }
  8. if (count($categories) > 0) {
  9. $this->assign('category', $categories[0]);
  10. } else {
  11. abort(404, '产品未指定分类!');
  12. }
  13. } else {
  14. $category = $portalCategoryModel->where('id', $categoryId)->where('status', 1)->find();

Call Stack

  1. in ProductController.php line 50
  2. at Error::appError(2, 'count(): Parameter m...', '/www/wwwroot/www.snb...', 50, ['portalCategoryModel' => object(PortalCategoryModel), 'postService' => object(PostService), 'productId' => '4372', ...])
  3. at count(null) in ProductController.php line 50
  4. at ProductController->index()
  5. at ReflectionMethod->invokeArgs(object(ProductController), []) in App.php line 197
  6. at App::invokeMethod([object(ProductController), 'index'], []) in App.php line 416
  7. at App::module(['portal', 'Product', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...], false) in App.php line 296
  8. at App::exec(['type' => 'module', 'module' => ['portal', 'Product', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 124
  9. at App::run() in index.php line 42

Exception Datas

Error Context
portalCategoryModel []
postService {}
productId 4372
categoryId 0
product Resource
prevProduct { "id": 4235, "parent_id": 0, "post_type": 3, "post_format": 1, "user_id": 1, "post_status": 1, "comment_status": 1, "is_top": 0, "is_top_mobile": 0, "recommended": 0, "post_hits": 23526, "post_download_hits": 177, "post_like": 0, "comment_count": 0, "create_time": 1551487586, "update_time": 1639105673, "published_time": 1551486360, "delete_time": 0, "post_order": 0, "post_title": "BTCR-1100\/1200 \u73b0\u91d1\u5faa\u73af\u673a\u82af", "post_subhead": "", "post_tag": "", "post_keywords": "", "post_excerpt": "\u5b9e\u73b0\u7eb8\u5e01\u9ad8\u901f\u5b58\u53d6\u6b3e", "post_source": "", "post_related_product": "0", "post_procplx": null, "post_procpxh": null, "post_pronumber": "BTCR-1100\/1200", "post_content": "\n

\u4ea7\u54c1\u4ecb\u7ecd<\/span><\/strong><\/span>
<\/span><\/p>\n

\u8be5\u5d4c\u5165\u5f0f\u6a21\u5757\u5e7f\u6cdb\u5e94\u7528\u4e8e\u94f6\u884c\u7f51\u70b9\u8f6c\u578b\u73b0\u91d1\u81ea\u52a9\u8bbe\u5907\u4e2d\uff0c\u5b9e\u73b0\u5168\u9762\u989d\u7eb8\u5e01\u9ad8\u901f\u5b58\u53d6\u6b3e\u529f\u80fd\uff0c\u5b9e\u73b0\u9ad8\u67dc\u73b0\u91d1\u4e1a\u52a1\u81ea\u52a9\u5316\uff0c\u52a9\u529b\u94f6\u884c\u7f51\u70b9\u964d\u672c\u589e\u6548\u3002<\/span><\/p>\n


<\/span><\/p>\n

\u4ea7\u54c1\u7279\u70b9<\/span><\/strong><\/span><\/p>\n

\u9ad8\u901f\u949e\u7968\u5904\u7406\u80fd\u529b\uff0c\u6700\u9ad8\u53ef\u8fbe\u523012\u5f20\/\u79d2<\/span><\/p>\n

\u9057\u5fd8\u56de\u6536\u529f\u80fd\uff0c\u5c06\u7528\u6237\u9057\u5fd8\u7684\u949e\u7968\u56de\u6536<\/span><\/p>\n

\u72ec\u7acb\u6682\u5b58\u6a21\u5757\uff0c\u5b9e\u73b0\u5b58\u6b3e\u539f\u5e01\u8fd4\u8fd8<\/span><\/p>\n

\u5faa\u73af\u949e\u7bb1\u81ea\u52a8\u76d8\u70b9\u529f\u80fd\uff0c30\u5206\u949f\u5373\u53ef\u5b8c\u6210\u5355\u53f0\u8fdc\u7a0b\u76d8\u70b9<\/span><\/p>\n

\u53cc\u51fa\u949e\u53e3\u8bbe\u8ba1\uff0c\u652f\u6301\u591a\u79cd\u5e94\u7528\u6a21\u5f0f<\/span><\/p>\n


<\/p>\n", "post_proxpfb": "", "post_sconfig": "", "post_content_filtered": null, "more": { "thumbnail": "portal\/20190301\/0aa981a9b9e68712a7583d3914cb7765.png", "template": "", "photos": [ { "url": "portal\/20211204\/655c58f57bcf285f66ff063a9948fb57.jpg", "name": "BTCR-1100 BTCR-1 200.jpg" } ] }, "pagetype": 1, "type": "products", "last_time": 1761031196, "alias": "", "d_id": 0, "display_position": 0, "home_show_web": 0, "home_show_mobile": 0, "pclevel": 0, "mlevel": 0, "ip": null }

nextProduct { "id": 4448, "parent_id": 0, "post_type": 3, "post_format": 1, "user_id": 1, "post_status": 1, "comment_status": 1, "is_top": 0, "is_top_mobile": 0, "recommended": 0, "post_hits": 24670, "post_download_hits": 135, "post_like": 0, "comment_count": 0, "create_time": 1558669337, "update_time": 1639364479, "published_time": 1558669140, "delete_time": 0, "post_order": 0, "post_title": "BCB-226L \u8fc5\u9f99\u5206\u62e3\u673a", "post_subhead": "", "post_tag": "", "post_keywords": "", "post_excerpt": "\u9488\u5bf9\u5feb\u9012\u672b\u7aef\u5206\u62e3\u3001\u4ed3\u914d\u4e00\u4f53\u3001\u4e8c\u6b21\u5206\u62e3\u3001\u4fe1\u51fd\u5206\u62e3\u3001\u603b\u5206\u5e97\u5206\u62e3\u7b49\u5e94\u7528\u573a\u666f", "post_source": "", "post_related_product": "0", "post_procplx": null, "post_procpxh": null, "post_pronumber": "BCB-226L ", "post_content": "\n

\u4ea7\u54c1\u4ecb<\/span><\/strong>\u7ecd<\/span><\/strong>
<\/span><\/p>\n

\u65b0\u5317\u6d0b\u9488\u5bf9\u5feb\u9012\u672b\u7aef\u5206\u62e3\u3001\u4ed3\u914d\u4e00\u4f53\u3001\u4e8c\u6b21\u5206\u62e3\u3001\u603b\u5206\u5e97\u5206\u62e3\u7b49\u5e94\u7528\u573a\u666f\uff0c\u63a8\u51fa\u4e86\u5168\u65b0\u4ea7\u54c1\u2014\u2014\u65b0\u5317\u6d0b\u8fc5\u9f99\u5206\u62e3\u673a\u3002<\/span><\/p>\n


<\/p>\n

\u7cfb\u7edf\u4f18\u52bf<\/span><\/strong><\/p>\n

\u66f4\u7701\u5730<\/span><\/strong><\/p>\n

\u4ea7\u54c1\u8bbe\u8ba1\u5c0f\u5de7\uff0c\u51cf\u5c11\u5360\u5730\u7a7a\u95f4<\/span><\/p>\n

\u964d\u4f4e\u573a\u5730\u9650\u5236\uff0c\u5c0f\u573a\u5730\u4e5f\u80fd\u81ea\u52a8\u5316<\/span><\/p>\n

\u66f4\u7701\u94b1\u00a0\u00a0<\/span><\/strong> <\/span><\/p>\n

\u4ea7\u54c1\u4ea7\u80fd\u9ad8\uff0c\u5206\u62e3\u6548\u7387\u6700\u9ad8\u53ef\u8fbe8000\u4ef6\/\u5c0f\u65f6\uff0c\u540c\u65f6\u6027\u4ef7\u6bd4\u8fdc\u9ad8\u4e8e\u540c\u7c7b\u8bbe\u5907<\/span><\/p>\n

\u4ea7\u54c1\u7075\u6d3b\u7ec4\u5408\uff0c\u53ef\u6839\u636e\u4e1a\u52a1\u91cf\u63d0\u5347\u968f\u65f6\u589e\u52a0\u5206\u62e3\u8bbe\u5907\uff0c\u65e0\u9700\u4e00\u6b21\u6027\u6295\u5165\u8fc7\u591a\u8d44\u91d1<\/span><\/p>\n

\u914d\u5408\u65b0\u5317\u6d0b\u5206\u62e3\u67dc\u7ec4\u5408\u4f7f\u7528\uff0c\u5206\u62e3\u65b9\u6848\u66f4\u5177\u9ad8\u6027\u4ef7\u6bd4<\/span><\/p>\n

\u66f4\u7701\u529b\u7701\u5fc3<\/span><\/strong>\u00a0\u00a0 <\/span><\/p>\n

\u4ea7\u54c1\u53ef\u5feb\u901f\u4e0a\u7ebf\uff0c5\u5929\u5185\u5b8c\u6210\u5b89\u88c5<\/span><\/p>\n

\u65e0\u9700\u590d\u6742\u7684\u57fa\u5efa\u6216\u5916\u56f4\u914d\u5957\u8bbe\u65bd\u5efa\u8bbe\uff0c\u4ea7\u54c1\u5bf9\u573a\u5730\u8981\u6c42\u4f4e<\/span><\/p>\n

\u64cd\u4f5c\u9ad8\u5ea61m\uff0c\u4eba\u5de5\u64cd\u4f5c\u66f4\u8f7b\u677e\uff0c\u6613\u4e0e\u76ae\u5e26\u673a\u7b49\u8bbe\u5907\u5bf9\u63a5<\/span><\/p>\n

\u6a21\u5757\u5316\uff0c\u9ad8\u67d4\u6027\uff0c\u53ef\u5b9e\u73b0\u7075\u6d3b\u5b9a\u5236\u548c\u6539\u9020<\/span><\/p>\n


<\/p>\n", "post_proxpfb": "", "post_sconfig": "\n

\n\n\n\n\n\n\n\n\n\n

\u6280\u672f\u6307\u6807\/\u914d\u7f6e\u4fe1\u606f<\/span><\/strong><\/p><\/td><\/tr>\n

\u4e3b\u7ebf\u8fd0\u884c\u901f\u5ea6<\/span><\/p><\/td>\n

1.2m\/s<\/span><\/p><\/td>\n<\/tr>\n

\u7406\u8bba\u5206\u62e3\u6548\u7387<\/span><\/p><\/td>\n

6000-8000\u4ef6\/\u5c0f\u65f6<\/span><\/p><\/td>\n<\/tr>\n

\u7cfb\u7edf\u566a\u97f3<\/span><\/p><\/td>\n

\u226472db<\/span><\/p><\/td>\n<\/tr>\n

\u5355\u4e2a\u5c0f\u8f66\u8d1f\u8f7d<\/span><\/p><\/td>\n

MAX.10kg<\/span><\/p><\/td>\n<\/tr>\n

\u5206\u62e3\u5dee\u9519\u7387<\/span><\/p><\/td>\n

\u22640.01%<\/span><\/p><\/td>\n<\/tr>\n

\u5206\u62e3\u7834\u635f\u7387<\/span><\/p><\/td>\n

\u22640.01%<\/span><\/p><\/td>\n<\/tr>\n

\u626b\u7801\u8bc6\u522b\u7387<\/span><\/p><\/td>\n

99%<\/span><\/p><\/td>\n<\/tr>\n

\u6574\u673a\u5c3a\u5bf8<\/span><\/p><\/td>\n

28.5m*2.5m*3.2m(L*W*H \u00a0 41\u683c\u53e3)<\/span><\/p><\/td>\n<\/tr>\n

\u5c0f\u8f66\u64cd\u4f5c\u9ad8\u5ea6<\/span><\/p><\/td>\n

1050mm<\/span><\/p><\/td>\n<\/tr>\n<\/tbody><\/table>\n


<\/p>\n", "post_content_filtered": null, "more": { "thumbnail": "portal\/20210527\/b43d8a78954335cc9d74b99107b5f91b.jpg", "template": "" }, "pagetype": 1, "type": "products", "last_time": 1761029611, "alias": "", "d_id": 0, "display_position": 0, "home_show_web": 0, "home_show_mobile": 0, "pclevel": 0, "mlevel": 0, "ip": null }

tplName product
categories Resource

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
vffgv01bq23p8siv8kitv2emjf
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=vffgv01bq23p8siv8kitv2emjf
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1
PATH_INFO
/product/4372.html
HTTP_HOST
snbc.cn
REDIRECT_STATUS
200
SERVER_NAME
www.snbc.cn
SERVER_PORT
80
SERVER_ADDR
172.16.67.42
REMOTE_PORT
40516
REMOTE_ADDR
23.231.76.82
SERVER_SOFTWARE
nginx/1.26.3
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.snbc.cn
DOCUMENT_URI
/index.php
REQUEST_URI
/product/4372.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/product/4372.html
SCRIPT_FILENAME
/www/wwwroot/www.snbc.cn/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1761033485.1341
REQUEST_TIME
1761033485
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
APP_TRACE
false
CMF_ROOT
/www/wwwroot/www.snbc.cn/
APP_PATH
/www/wwwroot/www.snbc.cn/app/
CMF_PATH
/www/wwwroot/www.snbc.cn/simplewind/cmf/
PLUGINS_PATH
/www/wwwroot/www.snbc.cn/plugins/
EXTEND_PATH
/www/wwwroot/www.snbc.cn/simplewind/extend/
VENDOR_PATH
/www/wwwroot/www.snbc.cn/simplewind/vendor/
RUNTIME_PATH
/www/wwwroot/www.snbc.cn/data/runtime/
THINKCMF_VERSION
5.0.170927
THINK_VERSION
5.0.11
THINK_START_TIME
1761033485.1344
THINK_START_MEM
406424
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.snbc.cn/simplewind/thinkphp/
LIB_PATH
/www/wwwroot/www.snbc.cn/simplewind/thinkphp/library/
CORE_PATH
/www/wwwroot/www.snbc.cn/simplewind/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.snbc.cn/simplewind/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.snbc.cn/
LOG_PATH
CACHE_PATH
/www/wwwroot/www.snbc.cn/data/runtime/cache/
TEMP_PATH
/www/wwwroot/www.snbc.cn/data/runtime/temp/
CONF_PATH
/www/wwwroot/www.snbc.cn/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/www.snbc.cn/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.1