Hi,
After a fresh install of latest version of Merchello (forked from github) I get a NullException when trying to load the FastTrack demo site.
The exception occurs in _ProductBox.cshtml:
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: source
Source Error:
Line 8: {
Line 9: var images = Model.GetPropertyValue<List<IPublishedContent>>("image");
Line 10: if (images.Any())
Line 11: {
Line 12: <a href="@Model.Url" alt="@Model.Name"><img class="img-responsive" src="@images.FirstOrDefault().GetCropUrl(200, 200)" alt="@Model.Name"></a>
The backend runs fine. If I outcomment the problem lines in _ProductBox.cshtml it works as well - just without images.
The images are present in the medialibrary and the ID's matches.
Am I missing something obvious here?
Has anyone experienced this?
/Jesper
Merchello NullException after github fork
Hi, After a fresh install of latest version of Merchello (forked from github) I get a NullException when trying to load the FastTrack demo site. The exception occurs in _ProductBox.cshtml:
Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: source
Source Error:
The backend runs fine. If I outcomment the problem lines in _ProductBox.cshtml it works as well - just without images.
The images are present in the medialibrary and the ID's matches.
Am I missing something obvious here? Has anyone experienced this? /Jesper
Ok -- found the answer: It seems that
Should be:
is working on a reply...