Hallo ihr,
ich habe heute mein WP-Blog von v.2.0.4 auf 2.1 (latest) aktualisiert. Leider hat mein - für 2.0.x. designtes - Theme wohl ein Problem mit der Neuinstallation ... denn es bringt immer eine lustige Fehlermeldung, siehe
http://www.sunshineshaped.de :
Code
[B]WordPress Datenbank-Fehler:[/B] [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT cat_id, cat_name FROM
Ich vermute, daß es an der sidebar.php meines Themes liegt (da die ganzen "Standard"themes für 2.1 ohne Probleme funktionieren, bin aber nicht soo der Crack, daß ich sagen könnte, woran es liegt. Vielleicht kann mir ja einer von Euch helfen ?
Meine sidebar.php:
PHP
<div class="left">
<div class="sub_cats"><br style="line-height:12px "/>
<div class="left_head">Categories:</div><br style="line-height:15px "/>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
</div>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/hr2.jpg" alt="" width="206" height="5" align="top" style="margin:0px 0px 0px 0px "/>
<div class="sub_cats">
<div class="left_head">Archives:</div><br style="line-height:15px "/>
<ul>
<?php get_archives('monthly','10','custom','<li>','</li>'); ?>
</ul>
</div>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/hr2.jpg" alt="" width="206" height="5" align="top" style="margin:0px 0px 0px 0px "/>
<?php
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
foreach ($link_cats as $link_cat) {
?>
<div class="sub_cats">
<div class="left_head"><?php echo $link_cat->cat_name; ?></div><br style="line-height:15px "/>
<ul>
<?php get_links($link_cat->cat_id, '<li>', '</li>', '<br />', FALSE, 'id', TRUE,
TRUE, -1, TRUE); ?>
</ul>
</div>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/hr2.jpg" alt="" width="206" height="5" align="top" style="margin:0px 0px 0px 0px "/>
<?php } ?>
<div class="sub_cats">
<div class="left_head">Meta:</div><br style="line-height:15px "/>
<ul>
<?php wp_register('<li>', '</li>'); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</div>
</div>
Alles anzeigen
Wenn jemand weiß, was es sein könnte ... (vielleicht die Umstellung von get_links?) nur her damit! Wäre Euch sehr dankbar. :???: