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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

[SOLVED] Database error when creating new page


Go to End


2 Posts   647 Views

Avatar
Harley

Community Member, 165 Posts

17 February 2015 at 1:33am

Hi,

I have a site which I've developed locally (works perfectly). I've put it on my live server and imported the database but now I'm getting this error when I attempt to create any page type:

Error at line 598 of /../../../html/framework/model/MySQLDatabase.php

The database error is a bit vague though. I've checked the database to see if there were any broken tables but everything appears to be fine. I've also inserted rows just to rule out the possibility of keys not being created for tables such as 'Sitetree_live' etc.

The thing is that after getting the error message, if I go back to 'Pages' I can see 'New Page [draft]' in my site tree. So the page is being created fine.

Any advice would be greatly appreciated.

Version: SS3.1

Avatar
Harley

Community Member, 165 Posts

19 February 2015 at 11:49pm

I got to the bottom of this. In the end it was quite simple but took a while to figure out the problem after much digging.

I went through each table in the database looking for any extra fields that shouldn't have been there, just on a hunch.

I found some fields in SiteTree belonging to the Workflow module which I originally had but later got rid of. By removing those fields saving page types worked again.

Cheers