分享
  • 收藏
  • 举报
    X
    站外APP预览出错
    1603
    4

    新增加一个标签

    保存后点标签预览,出错





    [10501] PDOException in Connection.php line 456

    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'APP11' for key 'name'

                // 调试结束            $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);            }

    Call Stack

    1. in Connection.php line 456

    2. at Connection->execute('INSERT INTO `qb_labe...', ['data__id' => ['', 1], 'data__if_js' => ['1', 1], 'data__title' => ['我的第一个APP', 2], ...]) in Query.php line 241

    3. at Query->execute('INSERT INTO `qb_labe...', ['data__id' => ['', 1], 'data__if_js' => ['1', 1], 'data__title' => ['我的第一个APP', 2], ...]) in Query.php line 2208

    4. at Query->insert(['id' => '', 'if_js' => '1', 'title' => '我的第一个APP', ...], falsefalsenull) in Model.php line 1144

    5. at Model->save(['id' => '', 'if_js' => '1', 'title' => '我的第一个APP', ...], []) in Model.php line 1625

    6. at Model::create(['id' => '', 'if_js' => '1', 'title' => '我的第一个APP', ...]) in AddEditList.php line 394

    7. at Applabel->saveAddContent() in AddEditList.php line 411

    8. at Applabel->addContent() in Applabel.php line 119

    9. at Applabel->add() in common.php line 420

    10. at plugin_action('label', 'applabel', 'add', ['id' => '', 'if_js' => '1', 'title' => '我的第一个APP', ...]) in Plugin.php line 157

    11. at Plugin->execute()

    12. at ReflectionMethod->invokeArgs(object(Plugin), []) in App.php line 343

    13. at App::invokeMethod([object(Plugin), 'execute'], []) in App.php line 602

    14. at App::module(['admin', 'plugin', 'execute'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456

    15. at App::exec(['type' => 'module', 'module' => ['admin', 'plugin', 'execute']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139

    16. at App::run() in start.php line 19

    17. at require('/home/ftp/1/12524839...') in admin.php line 23

    Exception Datas

    PDO Error Info
    SQLSTATE23000
    Driver Error Code1062
    Driver Error MessageDuplicate entry 'APP11' for key 'name'
    Database Status
    Error Code10501
    Error MessageSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'APP11' for key 'name'
    Error SQLINSERT INTO `qb_label` (`id` , `if_js` , `title` , `name` , `type` , `uid` , `create_time`) VALUES (0 , 1 , '我的第一个APP' , 'APP11' , 'shop' , 1 , 1526633409)
    Database Config
    typemysql
    hostnamelocalhost
    database123456
    hostport3306
    dsn
    params[]
    charsetutf8
    prefixqb_
    debugtrue
    deploy0
    rw_separatefalse
    master_num1
    slave_no
    fields_strictfalse
    result_type2
    resultset_typearray
    auto_timestampfalse
    datetime_formatY-m-d H:i:s
    sql_explainfalse
    builder
    query\think\db\Query
    break_reconnectfalse

    Environment Variables

    GET Data

    empty

    POST Data

    id

    if_js

    1

    title

    我的第一个APP

    name

    APP11

    type

    shop

    Files

    empty

    Cookies

    user_sid

    5bfb768d4f

    __guid

    251322896.331929613092093800.1526629734320.1274

    passport

    1 123456 BVJWBlUHBVFVAg0GAwwLBVYBVVkACAAJBlUBVFIGAVcQIBO|EDDb82042be81

    PHPSESSID

    432ec0439d90fe09e2b3ef21a0ba8bbd

    label_set

    set

    monitor_count

    11

    Session

    empty

    Server/Request Data

    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

    MAIL

    /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

    ThinkPHP Constants

    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开发设计的高性能框架 }






    10
    赏礼
    赏钱
    收藏
    点击回复
        全部留言
    • 4
    • admin 超级管理员 消费:3.03元 2019-08-17 14:30 14:306楼

      APP11 这个关键字存在了.换一个吧

    0 赏钱 赏礼回复
    0 赏钱 赏礼回复
    • wr1688 风格开发者 消费:2593.25元 2019-08-17 13:55 13:556楼

      我的也是,只出现在cms模块上,在这也没搞明白这个,是远程获取数据用的吗

    0 赏钱 赏礼回复
    • fkenuiabcd 风格开发者 消费:55.05元 2018-05-21 11:51 11:516楼

    0 赏钱 赏礼回复
    更多回复
    恢复多功能编辑器
  • 3 1
  • 推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

     
    网页即时交流
    QQ咨询
    咨询热线
    020-28998648