CWS-Start icon indicating copy to clipboard operation
CWS-Start copied to clipboard

Umbraco 7 compatability

Open dunc85 opened this issue 12 years ago • 3 comments

Just tried to install CWS-Start on a new installation of Umbraco 7, but I get the following error during installation. Has anyone got this working?

Also just noticed that the path shown in the error is not where I have the Umbraco installation, so I'm not sure why that path is like that.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.] umbraco.cms.businesslogic.web.Access.RenameMemberShipRole(String oldRolename, String newRolename) +97 umbraco.cms.businesslogic.member.MemberGroup.Save() +114 CWSStart.Web.CWSExtensions.RegisterStartupEvents.AddCustomMemberGroup() in c:\inetpub\wwwroot\Personal\CWS-Start\CWSStart.Web\CWSStart.Web\CWSExtensions\RegisterStartupEvents.cs:82

dunc85 avatar Feb 10 '14 15:02 dunc85

I uninstalled the package and then reinstalled and it seems to have installed ok this time - no error messages.

But I seem to get a variety of other errors when viewing the front end.

dunc85 avatar Feb 10 '14 15:02 dunc85

Most of the issues are caused by the document type aliases. In the project they are set to be CWS-whatever , while umbraco 7 strips the dash in the name. Therefore removing the dash from the views will fix most of the issues: e.g.:

In the templates you have: @{ Layout = "CWS-Master.cshtml"; }

by default. To fix, simply change it to:

@{ Layout = "CWSMaster.cshtml"; }

dimmalo avatar Mar 08 '14 12:03 dimmalo

Sounds like a good pull request to me :)

warrenbuckley avatar Mar 08 '14 22:03 warrenbuckley