Copied to clipboard

Flag this post as spam?

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


  • Eran Meir 401 posts 543 karma points
    Jul 31, 2012 @ 19:49
    Eran Meir
    0

    Error loading MacroEngine script (file: Search.cshtml)

    when i type "" in the hebrew site i get an error 
    Error loading MacroEngine script (file: Search.cshtml)

    this is from umbdebugshowtrace


    System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
      at System.String.Format(IFormatProvider provider, String format, Object[] args)
      at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
      at ASP._Page_macroScripts_Search_cshtml.<>c__DisplayClasse.<ShowSummary>b__d(TextWriter __razor_helper_writer) in c:\inetpub\wwwroot\4.8\macroScripts\Search.cshtml:line 44
      at System.Web.WebPages.WebPageBase.Write(HelperResult result)
      at ASP._Page_macroScripts_Search_cshtml.Execute() in c:\inetpub\wwwroot\4.8\macroScripts\Search.cshtml:line 22
      at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
      at System.Web.WebPages.WebPage.ExecutePageHierarchy()
      at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
      at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
      at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage) 1.377300 0.274599
    umbracoMacro Loading IMacroEngine script [done] 1.377890 0.000590
    umbracoMacro Error loading MacroEngine script (file: Search.cshtml, Type: ''
    Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
      at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId) 1.377944 0.000054
    renderMacro

  • Eran Meir 401 posts 543 karma points
    Jul 31, 2012 @ 19:50
    Eran Meir
    0

    wtf, the forums removes hebrew words, anyway i tried looking for the word umbraco in hebrew :)

  • Jorge Lusar 150 posts 489 karma points
    Jul 31, 2012 @ 20:07
    Jorge Lusar
    0

    Hi Eran,

    You're talking about the new version 1.1.0, right?

    J

  • Eran Meir 401 posts 543 karma points
    Jul 31, 2012 @ 20:07
    Eran Meir
    0

    indeed

  • Jorge Lusar 150 posts 489 karma points
    Jul 31, 2012 @ 20:34
    Jorge Lusar
    0

    Yep, I could replicate the issue. Did you have the same problem with v1.0.3 and/or v.1.0.4? I'm starting to think it might be related to Examine in Umbraco 4.8 rather than the package itself as I have not changed the core search functionality 

  • Eran Meir 401 posts 543 karma points
    Jul 31, 2012 @ 20:36
    Eran Meir
    0

    didn't check it before, i got intrested at this package after you added hebrew website

  • Jorge Lusar 150 posts 489 karma points
    Jul 31, 2012 @ 21:06
    Jorge Lusar
    0

    Ok, I'll have a look and let you know if I find out what it is going ok. I have also add it to the github bugtracker https://github.com/jorgelusar/ubootstrap/issues/1

    Thanks,

    J

  • Eran Meir 401 posts 543 karma points
    Jul 31, 2012 @ 21:08
    Eran Meir
    0

    sweet thank you, this is very important to me since me and eran are going to promote it in our local umbraco community :)

  • Jorge Lusar 150 posts 489 karma points
    Aug 01, 2012 @ 18:18
    Jorge Lusar
    1

    Hi Eran,

    Found the problem. It's a very simple one. The SearchResults (plural) item in the dictionary is formatted wrong. Try to format it I a proper way and it will work.

  • Eran Meir 401 posts 543 karma points
    Aug 01, 2012 @ 20:40
    Eran Meir
    0

    you are right, we need to remove the {2} from the string

  • Adam Nilsson 27 posts 117 karma points
    Jun 05, 2013 @ 14:06
    Adam Nilsson
    0

    Hi!

    I got the same issue as Eran for the Swedish language. If I change to Swedish with the same format as the English one it dosent work either.

    Your search for '{0}' matches {1} pages

    Din sökning av '{0}' matchar {1} sidor

    I use umbraco 4.9 and ubootstrap 1.1.0

    Any suggestions?

    Regards Adam

    Error Loading Razor Script (file: Search) Object reference not set to an instance of an object. at ASP._Page_macroScripts_Search_cshtml.Execute() in c:\inetpub\wwwroot\iftac\macroScripts\Search.cshtml:line 20 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.WebPages.WebPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage) at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage) 0,076895 0,000208 umbracoMacro Loading IMacroEngine script [done] 0,076920 0,000025 umbracoMacro Error loading MacroEngine script (file: Search.cshtml, Type: '' Object reference not set to an instance of an object. at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)

     

    I have found the problem there is no ExamineIndex for Swedish in ubootstrap package!

     

Please Sign in or register to post replies

Write your reply to:

Draft