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

Error upon deleting page types/classes


Go to End


2 Posts   5166 Views

Avatar
bo

Community Member, 10 Posts

4 April 2008 at 10:31pm

Edited: 04/04/2008 10:37pm

What mistake am I making when deleting page types/classes? If I create ExamplePage.php, try it out in the CMS and then remove it, db/build?flush=1 gives me:

FATAL ERROR: DATABASE ERROR: Couldn't run query: ALTER TABLE 'SiteTree' [or 'SiteTree_Live'] CHANGE 'ClassName' 'ClassName' enum('SiteTree','Page','BlogEntry',[etc. ExamplePage is not included]) character set utf8 collate utf8_general_ci default 'SiteTree' | Data truncated for column 'ClassName' at row 4

Problems with settings, e.g. in MySQL? Have I missed something about class deletion? The problem doesn't occur every time I delete classes, but most of them.

Avatar
dany_doo

Community Member, 13 Posts

13 May 2008 at 9:18pm

I have the same problem after renaming some page types. I always get an mysql error #1265 date truncated or something like that.

Help!