Hallo Leute,
bei dieser Seite scheint ein schwerwiegendes Problem aufgetreten zu sein.
meinemarie.org
Durch testen habe ich rausgefunden, dass die Funktionen scheinbar nicht erreichbar sind, wenn ich die index.php im Theme selbst aufrufe.
Zitat
Fatal error: Call to undefined function: get_header() in /meinserver/wp-content/themes/Brightness Theme/index.php on line 1
Ich gebe euch mal die Quelltexte für index und functions.php aus dem Brightness Theme Verzeichnis.
index.php
<?php get_header(); ?>
<?php
$efeatured = get_option("efeatured");
if ($efeatured !== "disable") { ?>
<div class="featured">
<div class="wrap">
<div class="featuredwrap">
<div class="leftalign">
<?php
//Code automatically inserted by Featurific for Wordpress plugin
if(is_home()) //If we're generating the home page (remove this line to make Featurific appear on all pages)...
if(function_exists('insert_featurific')) //If the Featurific plugin is activated...
insert_featurific(); //Insert the HTML code to embed Featurific
?>
<?php
$featuredcat = get_option('featuredcat');
$my_query = new WP_Query("category_name=$featuredcat&showposts=1");
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<span class="smalltitle">Titelgeschichte</span>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<a href="<?php the_permalink(); ?>"><img src="<?php $nothumb = get_bloginfo('template_directory'); $thumb = get_post_meta($post->ID, "Titelbild", true); if ($thumb == NULL) { echo ''.$nothumb.'/images/defaultthumbfeatured.jpg'; } else { echo $thumb; } ?>" alt="Post Title" /></a>
<div class="postcontent">
<?php
$text = get_the_excerpt();
echo '<p>'.$text.'</p>';
?>
<a href="<?php the_permalink(); ?>" class="more-link"></a>
</div>
<div style="clear:both;"></div>
<?php endwhile; ?>
</div>
<div class="rightalign">
<!--<?php
$eadv = get_option("eadv");
if ($eadv !== "disable") { ?>
<span class="smalltitle">Werbung</span>
<div class="advertisment">
<?php
$big_ad = get_option("big_ad");
$big_ad = stripslashes($big_ad);
if($big_ad == "") {
echo "Go to Wordpress Dashboard » Design Tab » Brightness Settings and add advertising codes!";
}
else {
echo $big_ad;
}
?>
</div>
<?php } ?>-->
<a href="<?php bloginfo('url'); ?>/?page_id=129" class="papier-link1"></a>
<a href="<?php bloginfo('url'); ?>/?page_id=2" class="papier-link2"></a><a href="<?php bloginfo('url'); ?>/?page_id=250" class="papier-link3"></a>
<a href="<?php bloginfo('url'); ?>/?page_id=154" class="papier-link4"></a>
</div>
<div style="clear:both;"></div>
</div>
</div>
</div>
<?php } ?>
<div style="display: block; height: 21px; width: 100%;"></div>
<div class="wrap">
<div class="maincontent">
<div class="newssection">
<div class="heading">
<h3>Die 10 neuesten Artikel</h3>
<a href="<?php bloginfo('url'); ?>/?feed=rss2" title="RSS Feeds" class="rss">RSS Feed</a>
<div class="clear"></div>
</div>
<?php $odd_or_even = 'odd'; ?>
<?php
if (is_home()) {
query_posts("cat=-89");
}
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="article <?php echo $odd_or_even; ?>">
<?php $odd_or_even = ('odd'==$odd_or_even) ? 'even' : 'odd'; ?>
<div class="left">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_thumb(); ?></a>
<?php the_time('j. M Y') ?><br />
<?php if(function_exists('coauthors_posts_links')) coauthors(', ',', '); else the_author(); ?>
</div>
<div class="right">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p><?php
$text = get_the_excerpt();
echo ''.$text.'';
?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Weiterlesen »</a></p>
</div>
<div class="clear"></div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<div class="clear"></div>
</div>
<!--<div class="newssection"><div class="heading"><h3>Neueste Videos</h3><div class="clear"></div></div>
<div style="text-align:center; width: 500px;"><a href="http://flashandburn.net/youtubeBadge/marieredaktion/goto"><img border="0" src="http://flashandburn.net/youtubeBadge/marieredaktion/logo:1-color:ffffff/recent.png"></a></div>
</div>-->
<?php include (TEMPLATEPATH . '/newssections.php'); ?>
<?php wp_cumulus_insert(); ?>
</div>
<?php get_sidebar(); ?>
<div class="clear"></div>
</div>
<?php get_footer(); ?>
Alles anzeigen
Ich hoffe, ihr könnt mir wenigstens Hilfe zur Selbsthilfe geben, denn durch die functions.php blicke ich (noch) nicht ganz durch.
Zum Problem zu sagen ist, dass wir vor 4 Wochen einen Ausfall des Servers hatten, aber Homepages, die auf dem gleichen Server lagen, liefen danach wieder fehlerfrei.
Danke im Voraus, Tobi