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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2725 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