Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi folks
I'm trying to refresh and old website. It's a 6.1.6 setup. But I keep getting an error when trying to Umbraco.TypedMedia in macro. This is the code:
@inherits Umbraco.Web.Macros.PartialViewMacroPage @{ var backgroundfolder = Model.MacroParameters["backgroundFolder"]; var backgroundSelection = Umbraco.TypedContent(backgroundfolder); } @foreach (var item in backgroundSelection.Children().RandomOrder().Take(1)) { var imageID = item.GetPropertyValue("backgroundImage"); var image = Umbraco.TypedMedia(imageID); <div class="top fpItem cc" style=""> <div class="carsearch"> @Model.Content.GetPropertyValue("bodyText") </div> </div> }
And the error I get in the Umbraco.TraceLog is
Could not create an index searcher with the supplied lucene director
Does anyone have a clue what could be the problem
mvh
Hi Gísli
It looks like your site can't access to app_data folder, there it should create indexes for media, content and members search.
TypedMedia uses these indexes, can you check that all folders have needed permissions?
It should be like here: https://our.umbraco.org/documentation/getting-started/setup/install/permissions
I hope it will help you.
Thanks,
Alex
Did you fix the issue?
Can you share the solution or some details.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco 6, Typed Media not working
Hi folks
I'm trying to refresh and old website. It's a 6.1.6 setup. But I keep getting an error when trying to Umbraco.TypedMedia in macro. This is the code:
And the error I get in the Umbraco.TraceLog is
Does anyone have a clue what could be the problem
mvh
Hi Gísli
It looks like your site can't access to app_data folder, there it should create indexes for media, content and members search.
TypedMedia uses these indexes, can you check that all folders have needed permissions?
It should be like here: https://our.umbraco.org/documentation/getting-started/setup/install/permissions
I hope it will help you.
Thanks,
Alex
Hi Gísli
Did you fix the issue?
Can you share the solution or some details.
Thanks,
Alex
is working on a reply...