Failed Upgrade to 8.1.0 from 5.7.5.13

Permalink 19 16 Browser Info Environment
I receive this error on upgrade to 8.1.0 from 5.7.5.13:

Doctrine \ DBAL \ Exception \ NotNullConstraintViolationException
An exception occurred while executing 'insert into Pages (cID, siteTreeID, ptID, cParentID, uID, cInheritPermissionsFrom, cOverrideTemplatePermissions, cInheritPermissionsFromCID, cDisplayOrder, pkgID, cIsActive) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["210", "0", 0, "208", "1", "TEMPLATE", "0", null, 0, 0, 1]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'cInheritPermissionsFromCID' cannot be null

1 Attachment


Status: New
jmcgarvey
patej replied on at Permalink Reply
patej
Updating 5.7.5.13 ––> 5.8.1.0 through Dashboard from updates directory results in the described error.
patej replied on at Permalink Reply
patej
I just tried several times through the dashboard auto-updater (previously 8.1.0 wasn't available through that) and I get the same error. Looking into the error stack the problem comes when updated tries to add page /desktop in concrete/config/install/upgrade/desktops.xml. The page CID it refers to in the $cInheritPermissionFromCID (which is null) is /welcome, but I can't figure out where it goes wrong. I even tried to modify concrete5-8.1.0/concrete/src/Page/Page.php by adding
if($cInheritPermissionsFromCID==null){$cInheritPermissionsFromCID=1;}
just to see what happens and the script continued, but it failed again with a different error.

What can the problem be? Any help highly appreciated!

concrete5 Environment Information

Can not get environment due to failure

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36