Jahia in English > Simple search shown...

0 (0 Good)
0 (0 Bad)

Simple search shown in preview mode but not displayed in live mode

by  mholmberg »  2013/05/30 08:32

Hello,

 

I am starting to build a new jahia and I have to use the simple search component at the header top bar. I add the component  at the template level and it shows up correctly in preview mode but when I switch to live mode (empting cache more than once) it does not appear there. From logs I get this:

2013-05-30 10:56:13,233: ERROR [http-8082-1] org.jahia.services.render.filter.RenderChain: Error while rendering the resource: Resource{node=/sites/vavs/templates/base/logo/custom-rows-960gs/navCol2/simple-search-form, primaryNodeTypeName='jnt:simpleSearchForm', templateType='html', template='', configuration='module'} -> java.lang.ArrayIndexOutOfBoundsException: 1
2013-05-30 10:56:13,233: ERROR [http-8082-1] org.jahia.taglibs.template.include.ModuleTag: java.lang.ArrayIndexOutOfBoundsException: 1
org.jahia.services.render.filter.RenderFilterException: java.lang.ArrayIndexOutOfBoundsException: 1

 

Any hints?

 

thank

  • Simple search shown in preview mode but not displayed in live mode
    2013/05/30 09:15

    mholmberg <p> Hello,</p> <p> &nbsp;</p> <p> I am starting to build a new jahia and I have to use the simple search component at the header top bar. I add the component &nbsp;at the template level and it shows up correctly in preview mode but when I switch to live mode (empting cache more than once) it does not appear there. From logs I get this:</p> <div> 2013-05-30 10:56:13,233: ERROR [http-8082-1] org.jahia.services.render.filter.RenderChain: Error while rendering the resource: Resource{node=/sites/vavs/templates/base/logo/custom-rows-960gs/navCol2/simple-search-form, primaryNodeTypeName=&#39;jnt:simpleSearchForm&#39;, templateType=&#39;html&#39;, template=&#39;&#39;, configuration=&#39;module&#39;} -&gt; java.lang.ArrayIndexOutOfBoundsException: 1</div> <div> 2013-05-30 10:56:13,233: ERROR [http-8082-1] org.jahia.taglibs.template.include.ModuleTag: java.lang.ArrayIndexOutOfBoundsException: 1</div> <div> org.jahia.services.render.filter.RenderFilterException: java.lang.ArrayIndexOutOfBoundsException: 1</div> <p> &nbsp;</p> <p> Any hints?</p> <p> &nbsp;</p> <p> thank</p>

  • Number of messages  22
    Registration date May 30, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Simple search shown in preview mode but not displayed in live mode

    by  theklem »  2013/05/30 09:24

    You have to add the search result page in your site and publish it also. Otherwise the component does not appear. There is a test in the search component code to verify that the search result page is present, if not, as we can't display the search results, the component is automaticaly hidden.

     

  • Re: Simple search shown in preview mode but not displayed in live mode
    2013/05/30 09:24

    theklem <p> You have to add the search result page in your site and publish it also. Otherwise the component does not appear. There is a test in the search component code to verify that the search result page is present, if not, as we can&#39;t display the search results, the component is automaticaly hidden.</p> <p> &nbsp;</p>

  • Number of messages  85
    Registration date May 30, 2013
    0 (0 Good)
    0 (0 Bad)

    Simple search shown in preview mode but not displayed in live mode

    by  mholmberg »  2013/05/30 09:39

    I added a simpe search result also but it won't publish it and the flag remeains red/orange color.  here are some screenshots

     

     

     

     

    I think I am missing something in the mechanism but I am not really sure what

     

    thanks

  • Simple search shown in preview mode but not displayed in live mode
    2013/05/30 09:39

    mholmberg <p> I added a simpe search result also but it won&#39;t publish it and the flag remeains red/orange color. &nbsp;here are some screenshots</p> <p> &nbsp;</p> <p> <img alt="" src="https://dl.dropboxusercontent.com/u/1770113/Screen%20Shot%202013-05-30%20at%2011.32.44%20AM.png" style="width: 700px; height: 288px;" /></p> <p> &nbsp;</p> <p> &nbsp;</p> <p> <img alt="" src="https://dl.dropboxusercontent.com/u/1770113/Screen%20Shot%202013-05-30%20at%2011.33.05%20AM.png" style="width: 512px; height: 220px;" /></p> <p> &nbsp;</p> <p> I think I am missing something in the mechanism but I am not really sure what</p> <p> &nbsp;</p> <p> thanks</p>

  • Number of messages  22
    Registration date May 30, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Simple search shown in preview mode but not displayed in live mode

    by  theklem »  2013/05/30 09:58

    If you have several languages on you site, go in edit mode and open the engine (the form to edit properties) of your search result page, then use the language switcher  (top right of the "Engine") to switch from one lang to another, and give a title to this page in all languages (can be the same, no importance) as to be published in a given language a page needs a name in that particular language.

    A page without a title can not be correctly displayed in various cases (links, menus...), that's why the title must exist in all languages. I guess that's the problem you're facing. I haden't the time to try to reproduce your problem locally, but this seems clearly the origin of your problem.

  • Re: Simple search shown in preview mode but not displayed in live mode
    2013/05/30 09:58

    theklem <p> If you have several languages on you site, go in edit mode and open the engine (the form to edit properties) of your search result page, then use the language switcher &nbsp;(top right of the &quot;Engine&quot;) to switch from one lang to another, and give a title to this page in all languages (can be the same, no importance) as to be published in a given language a page needs a name in that particular language.</p> <p> A page without a title can not be correctly displayed in various cases (links, menus...), that&#39;s why the title must exist in all languages. I guess that&#39;s the problem you&#39;re facing. I haden&#39;t the time to try to reproduce your problem locally, but this seems clearly the origin of your problem.</p>

  • Number of messages  85
    Registration date May 30, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Simple search shown in preview mode but not displayed in live mode

    by  mholmberg »  2013/05/30 10:06

    No, I just have only one language configured, swedish... and even when I do add the title to the page I get that javascript error. I can not really understand what is wrong with it and how to correct that error. 

    actually when I go in the studio I have two languages there, english and swedish - can that be the problem

     

    thanks

  • Re: Re: Simple search shown in preview mode but not displayed in live mode
    2013/05/30 10:40

    mholmberg <p> No, I just have only one language configured, swedish... and even when I do add the title to the page I get that javascript error. I can not really understand what is wrong with it and how to correct that error.&nbsp;</p> <p> actually when I go in the studio I have two languages there, english and swedish - can that be the problem</p> <p> &nbsp;</p> <p> thanks</p>

  • Number of messages  22
    Registration date May 30, 2013
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page