Jump to content

search not working


peterpp
 Share

Recommended Posts

Hi,

    I have installed processwire with foundation. I have edited my site a lot. Now i need site search. But my search is not working. It gives me a blank page. I have placed below code where i want search box.

<form id='search-form' action='<?php echo $config->urls->root?>search/' method='get''>
<input type="text" name="q" value="<?php echo $sanitizer->entities($input->whitelist('q')); ?>" placeholder="" />
<button type='submit' class="button prefix">Search</button>
</form>

I copied this code from _main.php file. I have removed _main.php file as it is not required for me.

Plz help me.

Regards,

Pravin

Link to comment
Share on other sites

Well a blank page usually means a PHP error you're not seeing for some reason. Or a blank template?

Try enabling debug mode by setting $config->debug = true; in /site/config.php

Maybe you get some useful error messages. Otherwise, you could also check your error log in /site/assets/logs/.

Cheers

Link to comment
Share on other sites

Well a blank page usually means a PHP error you're not seeing for some reason. Or a blank template?

Try enabling debug mode by setting $config->debug = true; in /site/config.php

Maybe you get some useful error messages. Otherwise, you could also check your error log in /site/assets/logs/.

Cheers

Ok..I will try.

Link to comment
Share on other sites

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...