Forums » Alpha Release Candidate

Search leads to 403 error

(6 posts)
  • Started 7 months ago by trevorjames
  • Latest reply from davelester
  • This topic is closed
  • This topic is resolved

Tags:

  1. 7 months ago # | |

    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:

    http://variantcube.com/omeka/

    -Trevor James
    FCPS Webmaster

  2. 6 months ago # | |

    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

  3. 6 months ago # | |

    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!

  4. 6 months ago # | |

    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

  5. 6 months ago # | |

    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

  6. 6 months ago # | |

    Thanks, Trevor.

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.