Title: page.php causing 500 &#8211; internal server error
Last modified: August 19, 2016

---

# page.php causing 500 – internal server error

 *  [wizbian01](https://wordpress.org/support/users/wizbian01/)
 * (@wizbian01)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-causing-500-internal-server-error/)
 * Hi Guys,
 * I’ve been chopping and changing around in my page.php and have got to the point
   where something’s invalid (unclosed <?php tag?) and causes a internal server 
   error. Was wondering if anyone could look at the code and tell me what’s out 
   of place.
 * `<?php
    /** * [@package](https://wordpress.org/support/users/package/) WordPress*
   @subpackage Default_Theme */
 * get_header(); ?>
 *  <div id=”content” class=”narrowcolumn” role=”main”>
 *  <div id=”news-bar”><!–News Sidebar–>
    <h2>News</h2> <?php query_posts(“showposts
   =3”); ?> <?php while (have_posts()) : the_post(); ?> “> <?php the_title(); ?>
   <?php the_time(‘M j, Y’); ?> <?php the_excerpt();?> <?php endwhile; ?> <div id
   =”news-footer”></div> </div>
 *  <h2 class=”page-title”><?php the_title(); ?></h2>
    <div class=”entry”> <?php
   the_content(‘<p class=”serif”>Read the rest of this page »</p>’); ?>
 *  <?php wp_link_pages(array(‘before’ => ‘<p>**Pages:** ‘, ‘after’ => ‘</p>’, ‘
   next_or_number’ => ‘number’)); ?>
 *  </div>
    </div> <?php endwhile; endif; ?> <?php edit_post_link(‘Edit this entry.’,‘
   <p>’, ‘</p>’); ?>
 *  </div>
 * <?php get_footer(); ?>’
 * Thanks in advance 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-causing-500-internal-server-error/#post-1279725)
 * Try dropping a copy of the file in the [WordPress pastebin](http://wordpress.pastebin.ca/)
   and post the pastebin url here.
 *  Thread Starter [wizbian01](https://wordpress.org/support/users/wizbian01/)
 * (@wizbian01)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-causing-500-internal-server-error/#post-1279889)
 * [http://wordpress.pastebin.ca/1674533](http://wordpress.pastebin.ca/1674533)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-causing-500-internal-server-error/#post-1279942)
 * I can’t see anything obviously wrong with that file. And a missing opening `<?
   php` or closing `?>` tag wouldn’t result in an internal 500 error. It’s far more
   likely to be an .htaccess issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘page.php causing 500 – internal server error’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-causing-500-internal-server-error/#post-1279942)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
