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.

Customising the CMS /

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

When I wen to dev/build?flush=1 I get an error


Go to End


3 Posts   1777 Views

Avatar
Marlie511

Community Member, 36 Posts

30 June 2009 at 5:24am

I am NEW to SilverStrip and I was following the tutorial and then did some exploring, renaming of my mysite\code files.

Now I get this error on this page: dev/build?flush=1

[User Error] Couldn't run query: ALTER TABLE `SiteTree` CHANGE `ClassName` `ClassName` enum('SiteTree','GhostPage') character set utf8 collate utf8_general_ci default 'SiteTree' Data truncated for column 'ClassName' at row 1

and another error in the admin under Site Content:
[Notice] Undefined index: Page

Please help. My co-work installed this on our test machine and I would like to get it fixed on my own.

Avatar
Willr

Forum Moderator, 5523 Posts

30 June 2009 at 11:57am

Looks like your mysql user does not have ALTER table rights. You will need these rights, this is a mysql setting. Normally to fix this I use PHPMyadmin - view the Privileges or something and make sure your mysql user has alter rights.

Avatar
Sam

Administrator, 690 Posts

2 July 2009 at 12:02am

Also, make sure that you still have a mysite/code/Page.php file.