Jump to:

794 Posts in 409 Topics by 304 members


SilverStripe Forums » Widgets » Adding widgets to page.php - sidebarID error

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 1751 Views
  • Emms
    Community Member
    9 Posts

    Adding widgets to page.php - sidebarID error Link to this post

    Hi all,
    I am trying to add widgets to my page.php file but am getting the following error when running dev/build:

    [User error] Couldn't run query: ALTER TABLE 'Page' ADD 'SidebarID' int(11) not null default '0', ADD index 'SidebarID' (SidebarID) Duplicate column name 'SidebarID'

    I have tried dropping the SidebarID columns from the tables in the database and letting it rebuild, but then while the dev/build completed successfully I faced another error and display problems in the CMS after doing this so have had to restore the old tables.

    The site previously had widgets enabled, but then for some reason the code got removed (no idea how or why). Now this is happening when I try and put it back in.

    Can anyone give me any advice on how to fix this?

  • pbolger
    Community Member
    22 Posts

    Re: Adding widgets to page.php - sidebarID error Link to this post

    Did you manage to work out what the problem was? I have a similar issue.

    Paul b

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.