peterpp Posted April 22, 2014 Posted April 22, 2014 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
RyanJ Posted April 23, 2014 Posted April 23, 2014 This would lead me to believe you are missing the search.php file or something is messed up in it. I would start there.
peterpp Posted April 24, 2014 Author Posted April 24, 2014 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.
RyanJ Posted April 24, 2014 Posted April 24, 2014 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.
peterpp Posted April 25, 2014 Author Posted April 25, 2014 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.
Wanze Posted April 25, 2014 Posted April 25, 2014 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
peterpp Posted April 28, 2014 Author Posted April 28, 2014 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.
Jonathan Posted November 15, 2014 Posted November 15, 2014 Hi Pravin, Did you eventually get this working? I am having the same issue.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now