This was done on SimplyTest.me with the Devel module added:

Drupal\Core\Database\DatabaseExceptionWrapper: 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 ' '1373704617', '0', '1373704617')' at line 1: INSERT INTO {forum_index} (nid, title, tid, sticky, created, comment_count, last_comment_timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, , :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => 207 [:db_insert_placeholder_1] => Rusticus [:db_insert_placeholder_2] => 1 [:db_insert_placeholder_4] => 1373704617 [:db_insert_placeholder_5] => 0 [:db_insert_placeholder_6] => 1373704617 ) in Drupal\Core\Database\Connection->query() (line 571 of /home/s4465d8fbc820c87/www/core/lib/Drupal/Core/Database/Connection.php).

Drupal\Core\Entity\EntityStorageException: 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 ' '1373704617', '0', '1373704617')' at line 1: INSERT INTO {forum_index} (nid, title, tid, sticky, created, comment_count, last_comment_timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, , :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => 207 [:db_insert_placeholder_1] => Rusticus [:db_insert_placeholder_2] => 1 [:db_insert_placeholder_4] => 1373704617 [:db_insert_placeholder_5] => 0 [:db_insert_placeholder_6] => 1373704617 ) in Drupal\Core\Entity\DatabaseStorageControllerNG->save() (line 404 of /home/s4465d8fbc820c87/www/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php).

Comments

mgifford’s picture

ryandamiencarter@gmail.com’s picture

Component: forum.module » rest.module

I also get this error when trying to POST a node using the rest module:

node
DATE Friday, August 2, 2013 - 09:11
USER admin
LOCATION http://drupal8-ryry.rhcloud.com/entity/node
REFERRER
MESSAGE Drupal\Core\Database\DatabaseExceptionWrapper: 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 ' '0')' at line 1: INSERT INTO {node_comment_statistics} (nid, cid, last_comment_timestamp, last_comment_name, last_comment_uid, comment_count) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, , :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => 11 [:db_insert_placeholder_1] => 0 [:db_insert_placeholder_2] => 1375434666 [:db_insert_placeholder_3] => [:db_insert_placeholder_5] => 0 ) in Drupal\Core\Database\Connection->query() (line 571 of /var/lib/openshift/51dfb9e150044688dd0002a7/app-root/data/downloads/drupal-8.x-dev/core/lib/Drupal/Core/Database/Connection.php).
SEVERITY Error

Using the following request:

curl -i -v -X POST --cookie "SESSe46efe7dc225d1653f1a20e490c9ca3c=tq3Sgcxd-JV54d1VOb45W-E5zV08rs_MH5sC79fvQpI" -H "Content-Type: application/hal+json" -H "Accept: application/hal+json" -H "X-CSRF-Token: HNIl-DvX-alKT7oTMLCqnBMHnASmU8-QSPlKnkpdrRc" -d '{"type":[{"value":"article"}],"title":[{"value":"New Article"}],"_links":{"type":{"href":"http://drupal8-ryry.rhcloud.com/rest/type/node/article"}}}' http://drupal8-ryry.rhcloud.com/entity/node

ryandamiencarter@gmail.com’s picture

Component: rest.module » forum.module

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

quietone’s picture

Status: Active » Closed (cannot reproduce)
Issue tags: +Bug Smash Initiative

Not sure if this issue belongs in Devel or not. In either case, I cannot reproduce the error.

On Drupal 8.9.0 I did a standard install, enabled book and forum and devel_generate. I generated 5 users and then content for all content types. There were no errors.

The error in #2 is about an error when trying to POST a node using the rest module. There are no steps to reproduce provided. If you are experiencing that error, create a new issue.

Therefore, closing as cannot reproduce. If you are experiencing this problem reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").

Thanks!