Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi

Having a linking problem with my search form, I think it has to do something with pretty urls.

When I do a search, I get a blank "Page not found" page with this link:

Code: Select all
http://www.cocktailsopmensenmaat.be/search/?s=rum&nc=1


The search form is linked this way:

Code: Select all
 <cms:search_form msg='Zoek op website' processor="<cms:link 'search.php'/>" />


Maybe there is a better way to link?

Thanks for looking into it.
Hi,

There is nothing, that I can see, in there that is likely to conflict with prettyURLs.

In all probability, you've have failed to regenerate the .htaccess file after adding the search template and so the rules for search.php are not present.

Please regenerate the .htaccess file and let me know if this solves the problem.

Thanks.
Took up this project today.
I regenerate the .htaccess file but it doesn't solve the problem.

But I discovered that the search form is working fine when I'm logged in as super-admin.
Not being logged in = search form is not found.

This is the code in the sidebar of the webpage:
Code: Select all
<div class="col-md-12">
     <cms:search_form msg='Zoek op website' processor="<cms:link 'search.php'/>" />
</div>


This is the code of search.php
Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:template  title="zoek" hidden='1' order="1000" />
<!DOCTYPE html>
<html lang="en">
  <head>
    <title><cms:show k_page_title /></title>
    <cms:embed 'styles.html' />
  </head>
  <body>
    <div class="container">
      <cms:embed 'header.html' />
    </div>
    <div class="container-fluid page-intro">
       <h4></h4>
    </div>
      <!-- <div class="row page-intro">
       
      </div> -->
      <div class="container">
        <div class="row">
        <div class="col-md-8 page-content">
            <!-- <cms:search_form /> -->
                <cms:search>
                    <cms:if k_paginated_top >
                        <div>
                            <cms:if k_paginator_required >
                                Page <cms:show k_current_page /> of <cms:show k_total_pages /><br>
                            </cms:if>
                            <cms:show k_total_records /> pagina(s) gevonden
                        </div>
                    </cms:if>

                    <h1><a href="<cms:show k_page_link/>"><cms:show k_search_title /></a></h1>
                    <cms:show k_search_excerpt />
                   
                    <cms:paginator />

                </cms:search>
        </div>
      <cms:embed 'sidebar.html' />
      </div>
      </div>
     
    </div>
    <cms:embed 'footer.html' />
  </body>
</html>
<?php COUCH::invoke(); ?>


Thanks for looking into it
Please check if the access permission for the search template ('Advanced settings' dropdown in edit screen) is set to everybody.
Aha, indeed, the page was set to "Unpublished"...
No idea why. :-)

Thanks!
5 posts Page 1 of 1
cron