Copied to clipboard

Flag this post as spam?

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


  • Nick Goloborodko 8 posts 29 karma points
    May 12, 2011 @ 17:10
    Nick Goloborodko
    0

    XSLTSearch 404's on search.aspx

    Hi,

     

    I'm not sure if this is the appropriate forum for this question, but none the less: I've installed the XSLTSearch package, but when ever I try to go to /search.aspx - it throws up a 404. I did the complete republish... tried recreating Search page... even trying to access search.aspx in preview mode /1266.aspx with the same result...

    Has anyone encountered this kind of issue before?

    I'm running umbraco v 4.7.0 (Assembly version: 1.0.4090.21631) on IIS 7

    Any help greatly appreciated!

    Nick Goloborodko @ Xorbit

  • Kim Andersen 1447 posts 2196 karma points MVP
    May 12, 2011 @ 22:04
    Kim Andersen
    0

    Hi Nick

    Could you double check that the search-node in your content tree has a template selcted?

    /Kim A

  • Nick Goloborodko 8 posts 29 karma points
    May 13, 2011 @ 06:03
    Nick Goloborodko
    0

    Hi Kim,

     

    I have made sure that correct template was selected all the way though (and republished the entire site just to be certain) and the issues is still there. What is the best way to debug these sort of things?

     

    Thanks,

    Nick Goloborodko @ Xorbit

  • Fuji Kusaka 2203 posts 4220 karma points
    May 13, 2011 @ 09:34
    Fuji Kusaka
    0

    Hi Nick,

    Have you tried doing this in your Search Template ?

     

    <form method="get" action="search.aspx?">
            
    <umbraco:Macro source="-1" searchFields="@nodeName,bodyText,metaDescription" previewFields=" " searchBoxLocation="None" previewType="Beginning" resultsPerPage="5" previewChars="225" showPageRange="1" showOrdinals="1" showScores="0" showStats="0" Alias="XSLTsearch" runat="server"></umbraco:Macro>
    </form>

     

    It works for me under Umbraco V 4.7

     

    //fuji

  • Kim Andersen 1447 posts 2196 karma points MVP
    May 13, 2011 @ 11:57
    Kim Andersen
    0

    Hi again Nick

    Can you check the umbraco.config-file, to make sure that the node is actually written to the XML? Try opening up the file, and search for "search" to check if it's there.

    Does this only happen on the search.aspx or does it occour on other nodes as well?

    /Kim A

  • Nick Goloborodko 8 posts 29 karma points
    May 13, 2011 @ 16:12
    Nick Goloborodko
    0

    Hi Kim,

    I have this entry in the umbraco.config file:

    <XSLTsearch id="1266" parentID="1252" level="2" writerID="0" creatorID="0" nodeType="1262" template="1265" sortOrder="4" createDate="2011-05-13T02:39:53" updateDate="2011-05-13T02:53:03" nodeName="Search" urlName="search" writerName="Nick Goloborodko" creatorName="Nick Goloborodko" path="-1,1252,1266" isDoc="">

          <umbracoNaviHide>1</umbracoNaviHide>

        </XSLTsearch>

    All of the other pages work fine... it's just the search (which I've installed from Umbraco packages repository - v3.0.1 I believe)

    I'll check to see if all of the files have appropriate permissions (I'm currently assuming they do - since umbraco installed them it self)

    Once again, thank you very much for trying to help me - I really appreciate it!

    Nick Goloborodko @ Xorbit 

  • Nick Goloborodko 8 posts 29 karma points
    May 14, 2011 @ 05:26
    Nick Goloborodko
    0

    I've finally figured this out - I've made a bit of a mess with content place tags in the template. It is a bit unfortinate that this mistake gives such an ambigous error message.

    Thanks again for all of your help!

    Nick Goloborodko @ Xorbit 

  • Kim Andersen 1447 posts 2196 karma points MVP
    May 14, 2011 @ 11:30
    Kim Andersen
    0

    Hmm.. sounds weird. Could you show us the code that caused it to fail? Could be interesting to see what happened for further reference.

    /Kim A

  • Nick Goloborodko 8 posts 29 karma points
    May 14, 2011 @ 11:52
    Nick Goloborodko
    1

    So the code below was in a template that was used for the search page. (Note the nester asp:content tags...) I removed the top-level asp:content tag and the page started working as expected.

    <%@ Master Language="C#" MasterPageFile="~/masterpages/Page.master" AutoEventWireup="true" %>
    <asp:content ContentPlaceHolderId="mainContentPlaceHolder" runat="server>

    <asp:content ContentPlaceHolderId="scriptsContent" runat="server">
      <link href="/css/colorbox.css" rel="stylesheet" type="text/css" media="screen" />
    </asp:content>

    <asp:content ContentPlaceHolderId="pageContent" runat="server">
      <!-- BEGIN OF CONTENT -->
            <div id="content">
              <div class="maincontent">
                  
                    <!-- begin of content fullwidth -->
                  <div id="content-fullwidth">

                       
        <umbraco:Macro runat="server" Alias="XSLTsearch"
          macroAlias="XSLTsearch"
          source="-1"
          searchFields="@nodeName,metaKeywords,metaDescription,bodyText"
          previewFields="bodyText,metaDescription"
          previewType="beginning"
          searchBoxLocation="bottom"
          resultsPerPage="5"
          previewChars="255"
          showPageRange="0"
          showOrdinals="0"
          showScores="0"
          showStats="1">
        </umbraco:Macro>  
                    </div>
                    <!-- end of content fullwidth -->         
                    
                </div>
            </div>        
            <!-- END OF CONTENT -->
    </asp:content>
    </asp:content>

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 14, 2011 @ 12:22
    Jan Skovgaard
    0

    Hi Nick

    Thanks for sharing this. It's a classic when something goes wrong and sometimes one can stare himself blind on something like this - good to hear you got it all solved.

    /Jan

  • Kim Andersen 1447 posts 2196 karma points MVP
    May 14, 2011 @ 12:24
    Kim Andersen
    0

    Cool that you shared this Nick. But I still think it's weird that this gives a 404 instead og a YSOD. But well, glad you got your problem solved :)

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft