Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gísli Freyr Svavarsson 43 posts 126 karma points
    Jan 20, 2017 @ 10:30
    Gísli Freyr Svavarsson
    0

    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:

        @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

  • Alex Skrypnyk 6133 posts 23952 karma points MVP 7x admin c-trib
    Jan 20, 2017 @ 13:23
    Alex Skrypnyk
    100

    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

  • Alex Skrypnyk 6133 posts 23952 karma points MVP 7x admin c-trib
    Jan 30, 2017 @ 20:48
    Alex Skrypnyk
    0

    Hi Gísli

    Did you fix the issue?

    Can you share the solution or some details.

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft