[2] ErrorException in 06418dca35356821f4d68bf356dd1450.php line 834

substr() expects parameter 3 to be integer, string given

  1. $a = $show_pid['productlist_ids'];
  2. //取第一个分类出现的位置
  3. $b = strpos($show_pid['productlist_ids'],',');
  4. if(!$b){
  5. $b = $show_pid['productlist_ids'];
  6. }
  7. //第一个分类
  8. $c = substr($a,0,$b);
  9. //$productlist = Db::name('productlist')->where('id','like',$show_pid['productlist_ids'])->find();
  10. $productlist = Db::name('productlist')->where('id',$c)->find();
  11. ?>
  12. <div class="scroll">
  13. <div class="list">
  14. <ul>
  15. <?php $selectlist_color = Db::name('productatt')->distinct(true)->field('color')->order('weigh asc')->where(array('productshow_id'=>$id,'name'=>$name))->select();?>
  16. <li id="color">

Call Stack

  1. in 06418dca35356821f4d68bf356dd1450.php line 834
  2. at Error::appError(2, 'substr() expects par...', '/www/wwwroot/lailin....', 834, ['cacheFile' => '/www/wwwroot/lailin....', 'vars' => ['user' => null, 'site' => ['name' => 'L Living来邻', 'keywords' => 'L Living来邻', 'description' => 'L LIVING来邻家居...', ...], 'config' => ['site' => ['name' => 'L Living来邻', 'languages' => ['backend' => 'zh-cn', 'frontend' => 'zh-cn'], 'cdnurl' => '', ...], 'upload' => ['cdnurl' => '', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...], ...], 'user' => null, ...])
  3. at substr('', 0, '') in 06418dca35356821f4d68bf356dd1450.php line 834
  4. at include('/www/wwwroot/lailin....') in File.php line 53
  5. at File->read('/www/wwwroot/lailin....', ['user' => null, 'site' => ['name' => 'L Living来邻', 'keywords' => 'L Living来邻', 'description' => 'L LIVING来邻家居...', ...], 'config' => ['site' => ['name' => 'L Living来邻', 'languages' => ['backend' => 'zh-cn', 'frontend' => 'zh-cn'], 'cdnurl' => '', ...], 'upload' => ['cdnurl' => '', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...], ...]) in Template.php line 188
  6. at Template->fetch('/www/wwwroot/lailin....', ['user' => null, 'site' => ['name' => 'L Living来邻', 'keywords' => 'L Living来邻', 'description' => 'L LIVING来邻家居...', ...], 'config' => ['site' => ['name' => 'L Living来邻', 'languages' => ['backend' => 'zh-cn', 'frontend' => 'zh-cn'], 'cdnurl' => '', ...], 'upload' => ['cdnurl' => '', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...], ...], []) in Think.php line 86
  7. at Think->fetch('/www/wwwroot/lailin....', ['user' => null, 'site' => ['name' => 'L Living来邻', 'keywords' => 'L Living来邻', 'description' => 'L LIVING来邻家居...', ...], 'config' => ['site' => ['name' => 'L Living来邻', 'languages' => ['backend' => 'zh-cn', 'frontend' => 'zh-cn'], 'cdnurl' => '', ...], 'upload' => ['cdnurl' => '', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...], ...], []) in View.php line 163
  8. at View->fetch() in Product.php line 258
  9. at Product->show('14')
  10. at ReflectionMethod->invokeArgs(object(Product), ['14']) in App.php line 343
  11. at App::invokeMethod([object(Product), 'show'], []) in App.php line 611
  12. at App::module(['index', 'Product', 'show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  13. at App::exec(['type' => 'module', 'module' => ['index', 'Product', 'show']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www/wwwroot/lailin....') in index.php line 24

Environment Variables

GET Data

name
餐桌
color
灰橡色
size
W2000xD1000xH760MM
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/Product/show/id/14?name=%E9%A4%90%E6%A1%8C&color=%E7%81%B0%E6%A9%A1%E8%89%B2&size=W2000xD1000xH760MM
QUERY_STRING
name=%E9%A4%90%E6%A1%8C&color=%E7%81%B0%E6%A9%A1%E8%89%B2&size=W2000xD1000xH760MM
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/2.0
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
name=%E9%A4%90%E6%A1%8C&color=%E7%81%B0%E6%A9%A1%E8%89%B2&size=W2000xD1000xH760MM
REDIRECT_URL
/Product/show/id/14
REMOTE_PORT
43094
SCRIPT_FILENAME
/www/wwwroot/lailin.ocean-ad.vip/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/lailin.ocean-ad.vip/public
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/lailin.ocean-ad.vip/public
REMOTE_ADDR
3.238.79.169
SERVER_PORT
443
SERVER_ADDR
172.17.192.23
SERVER_NAME
lliving.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at lliving.com Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
lliving.com
HTTP_REFERER
http://lliving.com/Product/show/id/14?name=%E9%A4%90%E6%A1%8C&color=%E7%81%B0%E6%A9%A1%E8%89%B2&size=W2000xD1000xH760MM
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
H2_STREAM_TAG
3395-3
H2_STREAM_ID
3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH
off
H2PUSH
off
HTTP2
on
SSL_TLS_SNI
lliving.com
HTTPS
on
REDIRECT_STATUS
200
REDIRECT_H2_STREAM_TAG
3395-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
lliving.com
REDIRECT_HTTPS
on
REDIRECT_PATH_INFO
Product/show/id/14
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711664493.7584
REQUEST_TIME
1711664493
PATH_INFO
Product/show/id/14
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/lailin.ocean-ad.vip/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711664493.7588
THINK_START_MEM
387048
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/lailin.ocean-ad.vip/thinkphp/
LIB_PATH
/www/wwwroot/lailin.ocean-ad.vip/thinkphp/library/
CORE_PATH
/www/wwwroot/lailin.ocean-ad.vip/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/lailin.ocean-ad.vip/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/lailin.ocean-ad.vip/
EXTEND_PATH
/www/wwwroot/lailin.ocean-ad.vip/extend/
VENDOR_PATH
/www/wwwroot/lailin.ocean-ad.vip/vendor/
RUNTIME_PATH
/www/wwwroot/lailin.ocean-ad.vip/runtime/
LOG_PATH
/www/wwwroot/lailin.ocean-ad.vip/runtime/log/
CACHE_PATH
/www/wwwroot/lailin.ocean-ad.vip/runtime/cache/
TEMP_PATH
/www/wwwroot/lailin.ocean-ad.vip/runtime/temp/
CONF_PATH
/www/wwwroot/lailin.ocean-ad.vip/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/lailin.ocean-ad.vip/addons/