hallo,
wenn ich einen suchbegriff eingebe im suchfeld auf der seite erscheint unter "suchergebnisse:":
"
Catchable fatal error: Object of class WP_Error could not be converted to string in /.../wp-content/themes/arthemia/search.php on line 34
"
manchmal erscheinen auch ein paar suchergebnisse und dann dadrunter diese fehlermeldung.
der code ab zeile 31 sieht so aus:
"
<div class="clearfloat">
<h3 class="cat_title"><?php
$category = get_the_category();
echo(get_category_parents($category[0]->cat_ID, TRUE, ' » ')); ?></h3>
<table><tr><p style="float:left;"><td><?php if (function_exists('get_cat_icon')) get_cat_icon(); ?></td><td style="vertical-align:;"><div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div></td></p></tr></table>
<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Kein Kommentar', '1 Kommentar', '% Kommentare');?> <span><?php edit_post_link('[Edit]', '', ''); ?></span> <?php if(function_exists('the_views')) { the_views(); } ?>]</div>
<div class="spoiler">
<?php $values = get_post_custom_values("Image");
if (isset($values[0])) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=150&h=150&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="150px" height="150px" /></a>
<?php } ?>
"
Kann jemand helfen?