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.


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

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

Error upon deleting page types/classes


2 Posts   4254 Views


4 April 2008 at 10:31pm (Last edited: 4 April 2008 10:37pm), Community Member, 10 Posts

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.


13 May 2008 at 9:18pm Community Member, 13 Posts

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