ページの新規追加でSQLエラー

2019年1月30日 at 15:48

サイトマップからページを新規追加しようとすると、
エラーが表示されページが追加できない状況です。

解決方法をご教示いただけませんでしょうか。
何卒よろしくお願いいたします。

以下エラーメッセージとシステムの環境です。
Exception Occurred: /data/wwwroot/concrete/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:112 An exception occurred while executing 'insert into Pages (cID, siteTreeID, ptID, cParentID, uID, cInheritPermissionsFrom, cOverrideTemplatePermissions, cInheritPermissionsFromCID, cDisplayOrder, pkgID, cIsActive) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["741", null, "11", null, "1", "TEMPLATE", null, 225, 0, 0, 0]:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'cParentID' cannot be null (0)

システム環境 --------------------------------------------------------------------------------------------------------

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Manual Nav (2.2.0), Pixel Theme (2.1.0), Pure Accordion (0.9.2)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - In all cases.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips

# Server API
apache2handler

# PHP Version
7.0.33

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, recode, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 512M
post_max_size - 64M
sql.safe_mode - Off
upload_max_filesize - 64M
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - no value
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

タグ:

Re: ページの新規追加でSQLエラー

2019年1月30日 at 19:52
多言語の設定をしていますか?

http://www.concrete5.org/developers/bugs/8-1-0/integrity-constraint-violation-1048-column-cparentid-cannot-be-n

8.2.1 系で多言語の設定でバグがあるのでデフォルト言語を一時的に変えてみると動くというフォーラム記事があります。
 

Re: ページの新規追加でSQLエラー

2019年1月31日 at 8:46
Katzさん
早速ご回答頂きありがとうございます。

はい、この事象が発生しているサイトでは3言語の多言語設定をしています。

ご参照頂いたフォーラムの記事も参考にデフォルト言語の設定を一時的に変更してみましたが
以下の同様のエラーメッセージが表示されます。
他の解決方法がございましたらご共有いただければ幸いです。

宜しくお願いいたします。

An exception occurred while executing 'insert into Pages (cID, siteTreeID, ptID, cParentID, uID, cInheritPermissionsFrom, cOverrideTemplatePermissions, cInheritPermissionsFromCID, cDisplayOrder, pkgID, cIsActive) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["747", null, "11", null, "1", "TEMPLATE", null, 225, 0, 0, 0]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'cParentID' cannot be null