Hallo, seit cirka einer halben Stunde erhalte ich eine Fehlermeldung in meinem Blog auf http://www.starsontv.com und zwar folgenden:
Einmal:
Code
[B]Warning[/B]: unserialize() expects parameter 1 to be string, array given in [B]/www/htdocs/w00872f1/content/wp-content/themes/starmagazine/header.php[/B] on line [B]35[/B]
Und einmal:
Code
[B]Warning[/B]: unserialize() expects parameter 1 to be string, array given in [B]/www/htdocs/w00872f1/content/wp-content/themes/starmagazine/footer.php[/B] on line [B]7[/B]
Ich habe nichts an emienm Blog gemacht, die fehlermeldung war plötzlich einfach da.
Auch habe ich ein Backup eingespielt, aber die Fehlermeldungen bleiben.
Woran könnte das liegen?
Kann mir Jemand helfen, als Hilfe habe ich mal header.php und footer.php mitgepostet:
header.php
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
<title><?php wp_title( '-', true, 'right' ); echo wp_specialchars( get_bloginfo('name'), 1 ) ?></title>
<?php if (get_option('thestars_feedburner') == 'Enable') { ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php echo(get_option('thestars_feedburner_rss')); ?>" />
<?php } else { ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<?php }; ?>
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" type="text/css" media="screen" />
<?php if (get_option('thestars_color_scheme') <> 'Original') { ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/style-<?php echo(get_option('thestars_color_scheme'));?>.css" type="text/css" media="screen" />
<?php }; ?>
<!--[if lte IE 6]><script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/supersleight-min.js"></script><![endif]-->
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/custom.js"></script>
<?php if (trim(get_option('thestars_header_code')) <> "" ) { echo stripslashes(get_option('thestars_header_code')); } ?>
<?php if (is_singular()) wp_enqueue_script('comment-reply'); ?>
<!-- start -->
<?php wp_head(); ?>
<!-- end -->
</head>
<body class="<?php body_class() ?>">
<?php
$excludes = '';
if (is_array($exclude_pages = unserialize(get_option('thestars_exclude_page')))) {
$excludes = implode(',', $exclude_pages);
}
?>
<div id="top">
<div class="pads clearfix">
<ul>
<li><?php wp_list_pages("sort_order=".get_option('thestars_order_page')."&depth=3&exclude=".$excludes."&title_li="); ?></li>
<li id="t-search"><div class="hide"><?php include (TEMPLATEPATH . '/searchform.php'); ?></div></li>
<li>
<?php if (get_option('thestars_feedburner') == 'Enable') { ?>
<a href="<?php echo(get_option('thestars_feedburner_rss')); ?>"><?php _e( 'Subscribe', 'wpbx' ); ?></a>
<?php } else { ?>
<a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe to Posts"><?php _e( 'Subscribe', 'wpbx' ); ?></a>
<?php }; ?>
</li>
</ul>
</div>
</div>
<div id="header">
<div class="pads clearfix">
<a href="<?php echo get_settings('home'); ?>"><img id="site-logo" src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" /></a>
<?php if (get_option('thestars_ads') == 'Enable') { ?>
<div id="ad468x60" class="adblock">
<?php include(TEMPLATEPATH . '/ads/ads-468x60.php'); ?>
</div> <!-- end banner image block -->
<?php }; ?>
</div>
</div><!-- #header -->
<div id="menu">
<div class="pads">
<ul id="nav" class="clearfix">
<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive() && !(is_category())) or (is_single()) or (is_paged()) or (is_search())) { ?>current-cat<?php } else { ?>cat-item<?php } ?>"><a href="<?php echo get_settings('home'); ?>"><?php _e( 'Home', 'wpbx' ) ?></a></li>
<!-- change "depth=3" to suit your menu depth level, and change "exclude=x" with the category ID that you want exclude from the menu (multiple categories separated by , (comma) -->
<?php
$excludes = '';
if (is_array($exclude_cats = unserialize(get_option('thestars_exclude_cat')))) {
$excludes = implode(',', $exclude_cats);
}
?>
<?php wp_list_categories("orderby=".get_option('thestars_sort_cat')."&order=".get_option('thestars_order_cat')."&depth=3&exclude=".$excludes."&title_li="); ?>
</li>
</ul>
</div>
</div>
<div id="container">
<div class="pads clearfix">
Alles anzeigen
footer.php
PHP
</div>
</div><!-- #container -->
<?php
$excludes = '';
if (is_array($exclude_pages = unserialize(get_option('thestars_exclude_page_bottom')))) {
$excludes = implode(',', $exclude_pages);
}
?>
<div id="footer">
<div class="pads">
<ul id="menu-bottom" class="clearfix">
<li id="mb-home" class="<?php if (((is_home()) && !(is_paged())) or (is_archive() && !(is_category())) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>"><?php _e( 'Home', 'wpbx' ) ?></a></li>
<?php wp_list_pages("sort_order=".get_option('thestars_order_page_bottom')."&depth=3&exclude=".$excludes."&title_li="); ?>
</ul>
</div>
<div class="footerlinks">
<p id="copy-link">© <?php echo date('Y'); ?> <span><?php bloginfo('name'); ?></span>. All rights reserved. A <a href="http://www.premiumwp.com/">Premium WordPress Theme</a> Design</p>
</div>
</div><!-- #footer -->
<?php wp_footer() ?>
<?php if (trim(get_option('thestars_footer_analytics')) <> "" ) { echo stripslashes(get_option('thestars_footer_analytics')); } ?>
</body>
</html>
Alles anzeigen
Ich hoffe, mir kann Jemand helfen, denn die Seite ist online und wird täglich mit Artikeln gefüllt.
Hoffe auf Eure Hilfe.Vielen Dank schon mal.
Gruß Sebi
EDIT: Nach cirka zwei Stunden war die Fehlermeldung plötzlich wieder verschwunden. Wo sie aber herkam und womit das zu tun hatte, weiß ich nicht.