新增加一个标签
保存后点标签预览,出错
// 调试结束 $this->debug(false); $this->numRows = $this->PDOStatement->rowCount(); return $this->numRows; } catch (\PDOException $e) { if ($this->isBreak($e)) { return $this->close()->execute($sql, $bind); } throw new PDOException($e, $this->config, $this->getLastsql()); } catch (\Throwable $e) { if ($this->isBreak($e)) { return $this->close()->execute($sql, $bind); } throw $e; } catch (\Exception $e) { if ($this->isBreak($e)) { return $this->close()->execute($sql, $bind); }
at Connection->execute('INSERT INTO `qb_labe...', ['data__id' => ['', 1], 'data__if_js' => ['1', 1], 'data__title' => ['我的第一个APP', 2], ...]) in Query.php line 241
at Query->execute('INSERT INTO `qb_labe...', ['data__id' => ['', 1], 'data__if_js' => ['1', 1], 'data__title' => ['我的第一个APP', 2], ...]) in Query.php line 2208
at Query->insert(['id' => '', 'if_js' => '1', 'title' => '我的第一个APP', ...], false, false, null) in Model.php line 1144
at Model->save(['id' => '', 'if_js' => '1', 'title' => '我的第一个APP', ...], []) in Model.php line 1625
at Model::create(['id' => '', 'if_js' => '1', 'title' => '我的第一个APP', ...]) in AddEditList.php line 394
at Applabel->saveAddContent() in AddEditList.php line 411
at Applabel->addContent() in Applabel.php line 119
at Applabel->add() in common.php line 420
at plugin_action('label', 'applabel', 'add', ['id' => '', 'if_js' => '1', 'title' => '我的第一个APP', ...]) in Plugin.php line 157
at Plugin->execute()
at ReflectionMethod->invokeArgs(object(Plugin), []) in App.php line 343
at App::invokeMethod([object(Plugin), 'execute'], []) in App.php line 602
at App::module(['admin', 'plugin', 'execute'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
at App::exec(['type' => 'module', 'module' => ['admin', 'plugin', 'execute']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
at App::run() in start.php line 19
at require('/home/ftp/1/12524839...') in admin.php line 23
SQLSTATE | 23000 |
Driver Error Code | 1062 |
Driver Error Message | Duplicate entry 'APP11' for key 'name' |
Error Code | 10501 |
Error Message | SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'APP11' for key 'name' |
Error SQL | INSERT INTO `qb_label` (`id` , `if_js` , `title` , `name` , `type` , `uid` , `create_time`) VALUES (0 , 1 , '我的第一个APP' , 'APP11' , 'shop' , 1 , 1526633409) |
type | mysql |
hostname | localhost |
database | 123456 |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | qb_ |
debug | true |
deploy | 0 |
rw_separate | false |
master_num | 1 |
slave_no | |
fields_strict | false |
result_type | 2 |
resultset_type | array |
auto_timestamp | false |
datetime_format | Y-m-d H:i:s |
sql_explain | false |
builder | |
query | \think\db\Query |
break_reconnect | false |
GET Data
empty
id
if_js
1
title
我的第一个APP
name
APP11
type
shop
Files
empty
user_sid
5bfb768d4f
__guid
251322896.331929613092093800.1526629734320.1274
passport
1 123456 BVJWBlUHBVFVAg0GAwwLBVYBVVkACAAJBlUBVFIGAVcQIBO|EDDb82042be81
PHPSESSID
432ec0439d90fe09e2b3ef21a0ba8bbd
label_set
set
monitor_count
11
Session
empty
PHPRC
/tmp/php-125248391.ini
PHP_FCGI_MAX_REQUESTS
0
HOSTNAME
1wku
TERM
linux
SHELL
/bin/bash
HISTSIZE
1000
SSH_CLIENT
119.141.24.103 37244 22
SSH_TTY
/dev/pts/1
USER
root
LS_COLORS
rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
SSH_AUTH_SOCK
/tmp/ssh-Qekyk16448/agent.16448
/var/spool/mail/root
PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
PWD
/root/hl-tmp/kangle
LANG
C
HISTCONTROL
ignoredups
SHLVL
5
HOME
/root
LOGNAME
root
CVS_RSH
ssh
SSH_CONNECTION
119.141.24.103 37244 31.220.14.188 22
LESSOPEN
||/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES
1
_
/vhs/kangle/bin/kangle
VH_NAME
125248391
DOCUMENT_ROOT
/home/ftp/1/125248391/wwwroot/
REMOTE_PORT
2709
REMOTE_ADDR
116.30.204.134
SERVER_PORT
80
SERVER_ADDR
31.220.14.188
SCRIPT_FILENAME
/home/ftp/1/125248391/wwwroot/admin.php
PATH_TRANSLATED
/home/ftp/1/125248391/wwwroot/admin.php/admin/plugin/execute/plugin_name/label/plugin_controller/applabel/plugin_action/add.html
PATH_INFO
/admin/plugin/execute/plugin_name/label/plugin_controller/applabel/plugin_action/add.html
SCRIPT_NAME
/admin.php
REQUEST_URI
/admin.php/admin/plugin/execute/plugin_name/label/plugin_controller/applabel/plugin_action/add.html
REQUEST_METHOD
POST
SERVER_PROTOCOL
HTTP/1.1
SERVER_NAME
gecgw.com
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
kangle/3.5.7
CONTENT_LENGTH
87
HTTP_COOKIE
user_sid=5bfb768d4f; __guid=251322896.331929613092093800.1526629734320.1274; passport=1%09123456%09BVJWBlUHBVFVAg0GAwwLBVYBVVkACAAJBlUBVFIGAVcQIBO%7CEDDb82042be81; PHPSESSID=432ec0439d90fe09e2b3ef21a0ba8bbd; label_set=set; monitor_count=11
HTTP_ACCEPT_LANGUAGE
zh-CN,zh;q=0.8
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_REFERER
http://gecgw.com/admin.php/admin/plugin/execute/plugin_name/label/plugin_controller/applabel/plugin_action/add.html
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
CONTENT_TYPE
application/x-www-form-urlencoded
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS
1
HTTP_ORIGIN
http://gecgw.com
HTTP_CACHE_CONTROL
max-age=0
HTTP_CONNECTION
keep-alive
HTTP_HOST
gecgw.com
FCGI_ROLE
RESPONDER
PHP_SELF
/admin.php/admin/plugin/execute/plugin_name/label/plugin_controller/applabel/plugin_action/add.html
REQUEST_TIME_FLOAT
1526633409.6939
REQUEST_TIME
1526633409
Environment Variables
empty
APP_PATH
/home/ftp/1/125248391/wwwroot/application/
ENTRANCE
admin
ADMIN_FILE
admin.php
THINK_VERSION
5.0.18
THINK_START_TIME
1526633409.6947
THINK_START_MEM
386952
EXT
.php
DS
/
THINK_PATH
/home/ftp/1/125248391/wwwroot/thinkphp/
LIB_PATH
/home/ftp/1/125248391/wwwroot/thinkphp/library/
CORE_PATH
/home/ftp/1/125248391/wwwroot/thinkphp/library/think/
TRAIT_PATH
/home/ftp/1/125248391/wwwroot/thinkphp/library/traits/
ROOT_PATH
/home/ftp/1/125248391/wwwroot/
EXTEND_PATH
/home/ftp/1/125248391/wwwroot/extend/
VENDOR_PATH
/home/ftp/1/125248391/wwwroot/vendor/
RUNTIME_PATH
/home/ftp/1/125248391/wwwroot/runtime/
LOG_PATH
/home/ftp/1/125248391/wwwroot/runtime/log/
CACHE_PATH
/home/ftp/1/125248391/wwwroot/runtime/cache/
TEMP_PATH
/home/ftp/1/125248391/wwwroot/runtime/temp/
CONF_PATH
/home/ftp/1/125248391/wwwroot/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/home/ftp/1/125248391/wwwroot/vendor/ezyang/htmlpurifier/library
TEMPLATE_PATH
/home/ftp/1/125248391/wwwroot/template/
IS_POST
true
PUBLIC_URL
/public/
PUBLIC_PATH
/home/ftp/1/125248391/wwwroot/public/
PLUGINS_PATH
/home/ftp/1/125248391/wwwroot/plugins/
CACHE_DIR
/home/ftp/1/125248391/wwwroot/application/../runtime/
IN_ADMIN
true
LABEL_SET
true
IN_PLUGIN
label#applabel#add
ThinkPHP V5.0.18 { 十年磨一剑-为API开发设计的高性能框架 }
APP11 这个关键字存在了.换一个吧
我的也是,只出现在cms模块上,在这也没搞明白这个,是远程获取数据用的吗