Title: PHP error in wp-includes/post-template.php
Last modified: August 24, 2016

---

# PHP error in wp-includes/post-template.php

 *  [Rob_Huska](https://wordpress.org/support/users/rob_huska/)
 * (@rob_huska)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/php-error-in-wp-includespost-templatephp/)
 * When I hit some pages on my local site (404 specifically) I am getting this error:
 * Trying to get property of non-object in /path-to-site/wp-includes/post-template.
   php line 264
 * doing a quick google search it appears there are a lot of live sites out there
   that probably do not even know they are getting this error as well.
 * here is what i searched:
 * “trying to get property of non-object in wp-includes/post-template.php line 264”
 * all results on page 1 were websites with that error on the page somewhere (most
   of the time hidden). Only 1 result is a stackoverflow that had no answers. I 
   have a screenshot of my results, but I guess there is no way to upload it to 
   here. BTW I do have debugging turned off.
 * Thanks for any help!

Viewing 1 replies (of 1 total)

 *  Thread Starter [Rob_Huska](https://wordpress.org/support/users/rob_huska/)
 * (@rob_huska)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/php-error-in-wp-includespost-templatephp/#post-5960587)
 * Also I just noticed that it is only doing that on the 404 page of Blog 1 of my
   WP multisite setup. The other do not show this error, just the main site.

Viewing 1 replies (of 1 total)

The topic ‘PHP error in wp-includes/post-template.php’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Rob_Huska](https://wordpress.org/support/users/rob_huska/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/php-error-in-wp-includespost-templatephp/#post-5960587)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
