WordPress.org

Ready to get started?Download WordPress

Forums

Theme Development: Trying to get property of non-object error (1 post)

  1. Edward R. Jenkins
    Member
    Posted 1 year ago #

    Hey Guys,

    I'm working on a Newspaper theme that uses a dateline block in the header. The block displays the last time content was pubished or updated via the_modified_time.

    This causes problems on the 404 page. I receive the following error:

    Trying to get property of non-object in /xxxxxxxxx/dev/wp-includes/general-template.php on line 1523

    I added a conditional tag around the element that removed it from 404 error pages; however, this does not help when a visitor gets the error when trying to pull up something with the loop (else: nothing found, etc.).

    Any advice is appreciated.

    Here's the code:

    http://pastebin.com/Jiejtpbj

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Edward R. Jenkins
  • This topic is not resolved
  • WordPress version: 3.5