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.

Widgets /

Discuss SilverStripe Widgets.

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

Adding widgets to page.php - sidebarID error


Go to End


2 Posts   2932 Views

Avatar
Emms

Community Member, 9 Posts

25 February 2010 at 9:52am

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?

Avatar
pbolger

Community Member, 22 Posts

3 July 2011 at 10:55pm

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

Paul b