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.

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   4692 Views


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.


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.