Re: CIF Importer

2015年8月12日 at 15:17

まず、サンプルコンテンツ付でインストールした5.7.4.2に、このアドオンを使って添付のxml(https://github.com/hissy/addon_csv_xml_converterにサンプルとして表示されているもの)を読み込ませたところ、
下記のエラーが表示されました

Doctrine \ DBAL \ Exception \ NotNullConstraintViolationException
An exception occurred while executing 'insert into Pages (cID, ptID, cParentID, uID, cInheritPermissionsFrom, cOverrideTemplatePermissions, cInheritPermissionsFromCID, cDisplayOrder, pkgID) values (?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["195", "5", null, "1", "TEMPLATE", null, "151", 0, 0]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'cParentID' cannot be null
/Applications/MAMP/htdocs/c57-2/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php

Re: CIF Importer

2015年8月12日 at 15:53
経過報告です。
多分、完全なXMLじゃなかったので、このようなエラーが出ています。

おそらく完全であろうXMLを用意してインポートしたら、空白のサイトでも、既にページがあるサイトでもインポートされました。

後者の場合は、既存のページを維持したまま、追加でコンテンツがインストールされました。