I'm receiving this error when trying to do a search of our site:
403 Permission Denied
You do not have permission for this request /omeka/search.php?search=mask&submit=Search
The site is here:
-Trevor James
FCPS Webmaster
I'm receiving this error when trying to do a search of our site:
403 Permission Denied
You do not have permission for this request /omeka/search.php?search=mask&submit=Search
The site is here:
-Trevor James
FCPS Webmaster
Hi Trevor,
It appears you're using the prepackaged minimalist theme - have you made any revisions to it?
Additionally, has the htaccess file been moved intact to your server? More often than not 403 errors are caused by modifications and/or deletions of htaccess files.
- Dave
Hi, actually this is an error in the design of that theme. Back when we initially designed the themes, the search mechanism wasn't working properly, so we were putting boilerplate code in where the search bar should be. The code for that should actually be the following:
<?php simple_search(array(), uri('items/browse')); ?>
If you replace the HTML for the existing form with the above code, it should work fine. If you don't feel comfortable editing the source code, then feel free to wait for the next release when it should work fine.
Thanks for catching that!
Excellent! That solved it. And if anyone is interested here are some more details:
1) The PHP search code (per KrisKelly's note) needs to be tweaked in the "header.php" file here:
/omeka/themes/minimalist/common/header.php
You also need to tweak the formatting of the search box by adding in some HTML formatting code (to surround your PHP) if you want the search box to float back to the right corner of the theme page.
Thanks!
-Trevor
Let me just tweak my previous post -
just add back the <div id="searchwrap"></div> to surround the PHP code and the search box should stay in the top right corner.
-Trevor
Thanks, Trevor.
This topic has been closed to new replies.