[10501] PDOException in Connection.php line 463

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1

  1. $query->readMaster();
  2. }
  3. $this->numRows = $this->PDOStatement->rowCount();
  4. return $this->numRows;
  5. } catch (\PDOException $e) {
  6. if ($this->isBreak($e)) {
  7. return $this->close()->execute($sql, $bind, $query);
  8. }
  9. throw new PDOException($e, $this->config, $this->getLastsql());
  10. } catch (\Throwable $e) {
  11. if ($this->isBreak($e)) {
  12. return $this->close()->execute($sql, $bind, $query);
  13. }
  14. throw $e;
  15. } catch (\Exception $e) {
  16. if ($this->isBreak($e)) {
  17. return $this->close()->execute($sql, $bind, $query);
  18. }

Call Stack

  1. in Connection.php line 463
  2. at Connection->execute('UPDATE `client_artic...', [], object(Query)) in Query.php line 262
  3. at Query->execute('UPDATE `client_artic...', [], object(Query)) in Query.php line 2390
  4. at Query->update(['hits' => ['inc', 1]]) in Query.php line 604
  5. at Query->setField('hits', ['inc', 1]) in Query.php line 633
  6. at Query->setInc('hits') in Common.php line 390
  7. at Common->hits(null, 'client_article') in Article.php line 154
  8. at Article->detail()
  9. at ReflectionMethod->invokeArgs(object(Article), []) in App.php line 343
  10. at App::invokeMethod([object(Article), 'detail'], []) in App.php line 610
  11. at App::module(['home', 'Article', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  12. at App::exec(['type' => 'module', 'module' => ['home', 'Article', 'detail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  13. at App::run() in start.php line 19
  14. at require('/www/wwwroot/www.wir...') in index.php line 18

Exception Datas

PDO Error Info
SQLSTATE 42000
Driver Error Code 1064
Driver Error Message You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Database Status
Error Code 10501
Error Message SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Error SQL UPDATE `client_article` SET `hits`=`hits`+1 WHERE ( id= )
Database Config
type mysql
hostname 127.0.0.1
database www_wirecablemak
hostport 3306
dsn
params []
charset utf8
prefix client_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
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

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

first
1711653653
think_var1
en-us
ipInfo
a:5:{s:2:"id";i:654;s:8:"ip_start";s:8:"58720256";s:6:"ip_end";s:8:"68088319";s:12:"abbreviation";s:2:"US";s:7:"country";s:13:"United States";}
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/news/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802.html
QUERY_STRING
s=/home/Article/detail/name/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/2.0
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=/home/Article/detail/name/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802
REDIRECT_URL
/index.php/news/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802.html
REMOTE_PORT
48086
SCRIPT_FILENAME
/www/wwwroot/www.wirecablemakingmachine.com/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/www.wirecablemakingmachine.com/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/www.wirecablemakingmachine.com/
REMOTE_ADDR
3.236.219.157
SERVER_PORT
443
SERVER_ADDR
172.31.25.182
SERVER_NAME
www.wirecablemakingmachine.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.wirecablemakingmachine.com Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
www.wirecablemakingmachine.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
H2_STREAM_TAG
536-3
H2_STREAM_ID
3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH
off
H2PUSH
off
HTTP2
on
SSL_TLS_SNI
www.wirecablemakingmachine.com
HTTPS
on
SCRIPT_URI
https://www.wirecablemakingmachine.com/news/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802.html
SCRIPT_URL
/news/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802.html
REDIRECT_STATUS
200
REDIRECT_H2_STREAM_TAG
536-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
www.wirecablemakingmachine.com
REDIRECT_HTTPS
on
REDIRECT_SCRIPT_URI
https://www.wirecablemakingmachine.com/news/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802.html
REDIRECT_SCRIPT_URL
/news/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802.html
REDIRECT_REDIRECT_STATUS
200
REDIRECT_REDIRECT_H2_STREAM_TAG
536-3
REDIRECT_REDIRECT_H2_STREAM_ID
3
REDIRECT_REDIRECT_H2_PUSHED_ON
REDIRECT_REDIRECT_H2_PUSHED
REDIRECT_REDIRECT_H2_PUSH
off
REDIRECT_REDIRECT_H2PUSH
off
REDIRECT_REDIRECT_HTTP2
on
REDIRECT_REDIRECT_SSL_TLS_SNI
www.wirecablemakingmachine.com
REDIRECT_REDIRECT_HTTPS
on
REDIRECT_REDIRECT_SCRIPT_URI
https://www.wirecablemakingmachine.com/news/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802.html
REDIRECT_REDIRECT_SCRIPT_URL
/news/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711653653.0639
REQUEST_TIME
1711653653
PATH_INFO
/home/Article/detail/name/transportation-finished-argentina-customer-received-hooha-coiling-and-packing-machine-85802
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.wirecablemakingmachine.com/application/
APP_DEBUG
true
THINK_VERSION
5.0.21
THINK_START_TIME
1711653653.064
THINK_START_MEM
374136
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.wirecablemakingmachine.com/thinkphp/
LIB_PATH
/www/wwwroot/www.wirecablemakingmachine.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.wirecablemakingmachine.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.wirecablemakingmachine.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.wirecablemakingmachine.com/
EXTEND_PATH
/www/wwwroot/www.wirecablemakingmachine.com/extend/
VENDOR_PATH
/www/wwwroot/www.wirecablemakingmachine.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.wirecablemakingmachine.com/runtime/
LOG_PATH
/www/wwwroot/www.wirecablemakingmachine.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.wirecablemakingmachine.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.wirecablemakingmachine.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.wirecablemakingmachine.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false