Title: Footer.php file generates a Parse Error
Last modified: August 19, 2016

---

# Footer.php file generates a Parse Error

 *  [fox-mulder](https://wordpress.org/support/users/fox-mulder/)
 * (@fox-mulder)
 * [16 years ago](https://wordpress.org/support/topic/footerphp-file-generates-a-parse-error/)
 * I’ve setup a local installation for testing my site and it works perfectly fine,
   without any errors. But if I upload it (all the files) to a hosting service, 
   it generates this error on the site:
 * Parse error: syntax error, unexpected $end in /home/mc7xdp1h6n52dwjt/******.***/
   wp-content/themes/******_***/footer.php on line 13
 * Unfortunately, Line 13 says: </html>, and if I get rid of that, the next line
   up is </body>, and that generates the same error, with line number changing to
   12.
 * Here’s the full file:
 *     ```
       <div id="foot">
       				<p>
       					<?php bloginfo('name'); ?> powered by
       	<a href="http://wordpress.org/">WordPress</a>
       					<?php if (!is_page()) : ?>
   
       					<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
       				</p>
       			</div>
       		</div>
       		<?php wp_footer(); ?>
       	</body>
       </html>
       ```
   
 * Any ideas on how to get rid of this error?

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years ago](https://wordpress.org/support/topic/footerphp-file-generates-a-parse-error/#post-1502027)
 * your `<?php if (!is_page()) :` does not have an `endif;` .
 *  Thread Starter [fox-mulder](https://wordpress.org/support/users/fox-mulder/)
 * (@fox-mulder)
 * [16 years ago](https://wordpress.org/support/topic/footerphp-file-generates-a-parse-error/#post-1502236)
 * Hmmm…if that’s really the problem, then it should also give me that error on 
   my local installation of it, but it doesn’t. In any case, I’ll get rid of that
   and see if that solves the problem. If not, I’ll just comment out everything 
   I don’t want.

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

The topic ‘Footer.php file generates a Parse Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [fox-mulder](https://wordpress.org/support/users/fox-mulder/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/footerphp-file-generates-a-parse-error/#post-1502236)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
