Jump to content

Recommended Posts

Posted

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

Posted

This would lead me to believe you are missing the search.php file or something is messed up in it. I would start there.

Posted

This would lead me to believe you are missing the search.php file or something is messed up in it. I would start there.

Hi, 

  I have search.php file.

Posted

Does your search.php file include to proper files as well? A link or more information from you will be needed in order to help you out. 

Posted

Does your search.php file include to proper files as well? A link or more information from you will be needed in order to help you out. 

yes..its perfect.

Posted

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

Posted

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.

  • 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
×
×
  • Create New...