我不知道從哪裏開始修復此問題。我有一個Ubuntu和Windows雙啓動服務器。在Ubuntu中,一切工作正常,但在Windows(使用WAMP)中,我在我的一些網站上發現了神祕的PHP錯誤,而其他人(使用PHP)正常工作。僅在Windows服務器上出現PHP錯誤
Ubuntu screenshot http://newplayproject.org/wp-content/uploads/2012/10/screenshot-windows.jpg
,因爲它在Ubuntu的正常使用,我猜其實有沒有我的代碼中的錯誤,但我很想念在Windows上一些PHP模塊。有任何想法嗎?
在迴應的意見之一,這裏有一個「循環blog.php的」內容:
<?php
global $options;
foreach ($options as $value) {
if (get_settings($value['id']) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings($value['id']); }
}
?>
<?php get_header(); ?>
<? if ($xs_enable_static_feature == "false") { ?>
<? } else { ?>
<img src="<?php header_image(); ?>" alt="Static Image" class="static-image" width="880" height="280" title="Static Image" />
<? } ?>
<? if ($xs_disable_slider== "true") { ?>
<? } else { ?>
<?php get_template_part('nivoslider') ?>
<? } ?>
<div id="main">
<h1>Latest Posts</h1>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large'); ?>
<div class="post">
<div class="postcontent">
<?
// Checks To See If, Thumbnails Are Disabled
if ($xs_disable_thumbnails_archieve == "true") { ?>
<?
//If Not Disabled, Show Thumbnails
} else { ?>
<div class="postimg">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/functions/timthumb.php?src=<?php
if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) {
echo $thumbnail[0];
} else {
$postimage = get_post_meta($post->ID, 'post-image', true);
if ($postimage) {
echo $postimage;
} else {
echo catch_that_image();
}
}
?>&h=<?php echo $xs_thumbnail_height ?>&w=<?php echo $xs_thumbnail_width ?>&s=1" width="<?php echo $xs_thumbnail_width ?>" height="<?php echo $xs_thumbnail_height ?>" alt="<?php the_title(); ?>" /></a>
</div><!-- /postimg -->
<? } ?>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
</div><!-- End Post Content -->
</div><!-- End Post -->
<?php endwhile; ?>
<?php endif; ?>
<?php
//Check For the Page Navi Plugin
if (function_exists('wp_pagenavi')) {
wp_pagenavi();
//Show Default Navigation if Page Navi Is Not Installed
} else { ?>
<div class="paginate">
<div class="paginate-left"><?php previous_posts_link('Newer Posts') ?></div>
<div class="paginate-right"><?php next_posts_link('Older Posts') ?></div>
</div><!-- /paginate -->
<? } ?>
</div><!-- End Main -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
你需要發佈你的代碼和你得到的錯誤,而不是截圖。 – j08691
請發佈loop-blog.php的內容。 – AndreKR
可能不是因爲文件在那裏結束。 :)在第62行之前必須有一個開口支架或其他物品。 – AndreKR