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