Jump to:

5516 Posts in 1734 Topics by 1221 members

Customising the CMS

SilverStripe Forums » Customising the CMS » When I wen to dev/build?flush=1 I get an error

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

Page: 1
Go to End
Author Topic: 1139 Views
  • Marlie511
    Avatar
    Community Member
    36 Posts

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

    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.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: When I wen to dev/build?flush=1 I get an error Link to this post

    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.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: When I wen to dev/build?flush=1 I get an error Link to this post

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

    1139 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.