Hallo zusammen,
seit dem Update auf WP 2.7 habe ich bei den Archivseiten für Tags folgenden Fehler:
ZitatCatchable fatal error: Object of class WP_Error could not be converted to string in /www/htdocs/w00a48ec/wp-content/themes/visionaryblog/archive.php on line 33
Der Code der Datei:
PHP
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="archivetitle">Kategorie: <?php echo single_cat_title(); ?></h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="archivetitle">Archiv für den <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="archivetitle">Archiv für <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="archivetitle">Archiv für <?php the_time('Y'); ?></h2>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2 class="archivetitle">Suchergebnisse</h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="archivetitle">Autor-Archiv</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="archivetitle">Blog-Archiv</h2>
<?php } ?>
<?php $beschreibung = category_description(); ?>
<?php echo "<p class='beschreibung'><span class='bold'>Beschreibung: </span>".strip_tags($beschreibung)."</p>"; ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small>Autor: <?php the_author() ?> | Datum: <?php the_time('j.m.Y') ?> um <?php the_time('H:i') ?> <?php edit_post_link('Bearbeiten'); ?></small>
<div class="entry">
<?php fb_the_content('Den kompletten Beitrag lesen »'); ?>
</div>
<p class="postmetadata">
In der Kategorie: <?php the_category(', ') ?> |
<?php comments_popup_link('Keine Kommentare »', '1 Kommentar »', '% Kommentare »'); ?> <br />
<?php the_tags(__('Tags: '), ', ', ' '); ?> <?php edit_post_link(__('Bearbeiten'),' | '); ?>
</p>
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
<?php else : ?>
<h2>Not Found</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>
Alles anzeigen
Ich hab echt keine Ahnung woran das liegt, hab schon einiges ausprobiert.
Danke schon mal!
Gruß
Wishu