Happy new year everybody!
New year - new problems :-p
after the server move to a new wonderful 4GB Quad core server, all the sites, even most of the galleries, load under 1 second. On the old server I thought, it was just the slow server that produced this problem.
But still -
the search function on my site doesn't work and I have no idea why. Once you send the form, it calls index.php?s=searchword and loads forever and forever...
Can you help me on what causes it?
This is the search page:
http://johnny-depp.org/jdorg/search/
the same happens when I put the search widget into the sidebar.
This is my search.php (the template for the search site)
<?php /* Template Name: Search*/ ?>
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header(); ?>
<?php if (have_posts()) : ?>
<h1 class="pagetitle">Search Results</h1>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?>>
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('l, F jS, Y') ?></small>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<?php endif; ?>
<h2 class="center"Try a different search?</h2>
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<p><input name="s" type="text" id="s" size="33" maxlength="99" />
<input type="submit" class="submit" value="Search »" /></p>
</form>
<br style="clear:both;margin:10px 0;" />
<?php get_sidebar(); ?>
<?php get_footer(); ?>
this my searchform.php (although I also removed this file to have the search.php call for the default searchform - same problem)
` <form id="searchform" method="get" action="/">
<div>
<input type="text" class="alignleft" style="clear:none;" name="s" id="s" size="25" />
<input type="submit" style="width:auto" value="Search"/><br class="clear" />
</div>
</form>`
what have I done wrong?
Thank you, Martina.