Invision Community 5: A video walkthrough creating a custom theme and homepage By Matt Thursday at 04:02 PM
Alexander Archon Posted April 9 Posted April 9 Hello, We've recently completed upgrades to the latest version and have found that a previously working integration is now failing through the REST API. The error logs show an SQL issue: INSERT INTO `cms_database_revisions` ( `revision_member_id`, `revision_date`, `revision_database_id`, `revision_record_id`, `revision_data` ) VALUES ( 5268, 1712654770, 1, NULL, '{<DATA OMITTED>}' ) Column 'revision_record_id' cannot be null Looking further we can see that code was introduced in 4.7.15 that now tries to save a revision when creating a new record in this core file: applications/cms/api/records.php if ( $item::database()->revisions ) { $revision = new \IPS\cms\Records\Revisions; $revision->database_id = $item::$customDatabaseId; $revision->record_id = $item->_id; // .... rest of file It sounds similar to the reported issue here after a search of this forum: It would be great to know if there is a fix we can apply from a working case, or if this is a bug? Many thanks.
Solution teraßyte Posted April 9 Solution Posted April 9 It's indeed the same issue. I posted a fix here if you can't wait for IPS to fix it in the next (?) version: Marc and Afrodude 2
Clover13 Posted April 9 Posted April 9 FWIW I didn't need to store revisions for my use case, so I turned that off and it will work as it should. If you need revisions you'll have to wait for a fix or do something custom as @teraßyte mentioned.
Stuart Silvester Posted May 1 Posted May 1 We have released a patch to address this issue. Please go to AdminCP > System > Support and apply the patch from the first/top left box. If you do not see an option to install the patch, you already have the latest release. SeNioR- and Clover13 2
Recommended Posts