Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Weird DB Error


Go to End


2 Posts   2225 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

30 October 2007 at 10:24am

I keep getting this error when I add content:

Error: DATABASE ERROR: Couldn't run query: insert into `NewsItem_versions` SET `Publish_Date` = null, `Expiration_Date` = null, `ClassName` = 'NewsItem', `Created` = null, `LastEdited` = null, `Body` = null, `MyNewsHolderID` = '0', `Headline` = null, `RecordID` = 54, `Version` = 1, `AuthorID` = 1 | Unknown column 'ClassName' in 'field list'
At line 386 in /home/virtual/bpflegal.com/httpdocs/sapphire/core/model/Database.php

Why is it trying to add ClassName to the _versions table? That doesn't make any sense. Where should I be looking for a problem?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

11 December 2008 at 10:26am

Edited: 11/12/2008 10:27am

resolved