The MU forums have moved to WordPress.org

Search is broken (4 posts)

  1. Konstantin
    Inactive
    Posted 20 years ago #

    If you try and search for something at http://www.bloghost.cl/kostya/, you'll get an error and go to the following url: http://www.bloghost.cl/wp-inst/index.php?s=

    What do I need to fix there? Sorry, I am new to php :P

  2. TomK32
    Member
    Posted 20 years ago #

    you have to change the action="" in TEMPLATE_PATH . searchform.php (if i remember correctly).
    make sure something like http://www.bloghost.cl/kostya/?s=algunas comes out afterwards.

    of my installations the vhost one is fine, the subdir one is not.

    UPDATE: here we go
    <form method="get" id="searchform" action="<?php echo get_bloginfo('url'), $_SERVER['PHP_SELF']; ?>">

  3. Konstantin
    Inactive
    Posted 20 years ago #

    That fixed it right away :) Thanks.

  4. amulheirn
    Member
    Posted 19 years ago #

    I've got the same issue - searching in a user's blog seems to search the main site.

    I tried to implement the solution above but it didn't seem to work. I inserted the "get_bloginfo('url')," into the searchform.php of one of my templates.

    Is that the correct thing to do? I wasn't sure what TomK32 was referring to by "TEMPLATE_PATH". Does that mean the path to the themes? (In my case, this is /var/www/html/wp-content/themes/<themename>)

    Any help appreciated.

About this Topic

  • Started 20 years ago by Konstantin
  • Latest reply from amulheirn