Jump to content

[SOLVED] Field 'sort' doesn't have a default value


gebeer
 Share

Recommended Posts

Hello,

on a page that is live for over a year now, we get this error when trying to add a new child page to a certain parent:

"Field 'sort' doesn't have a default value"

EDIT: here's the whole error message:

Bildschirmfoto 2017-02-13 um 14.01.50.png

Couldn't find anything related on Google so I post here.

The parent page has set sort for children by created date. 

No errors in eeror or exception log.

When trying to save the new child page, the system also says that the name is already taken. But page under same parent with same name does not exist. Page is created in the background, though.

When manually changing the name of the page (adding "-1" to the name), a new page is saved in the background but the system still says that the name is already taken.

Now I'm clueless of what to do. Any help would be much appreciated.

Link to comment
Share on other sites

On 2/14/2017 at 0:36 AM, BitPoet said:

Probably an update of MySQL to 5.6. Disable STRICT_TRANS_TABLE and the message should disappear.

Spot on, thank you. In my case it was

ONLY_FULL_GROUP_BY

  that caused the problem

This helped solving it:

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...