• I have an issue with a WordPress site that I have not been able to solve – recently (I don’t know exactly), the first post in the list on the homepage of my site has a link with a date of 1970/01/01, so it is a broken link. All other posts show their correct dates. If I add a new post, the problem only occurs on the first in the list (when the post is the second in the list, the date and link is correct.) The same problem occurs when you execute a search – the first result has a bad URL because it has the date 1970 in it, instead of the actual date of the post.

    The site is http://www.houseonrynkushill.com

    Any thoughts or has anyone seen this before?

    Thanks in advance –

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you tried:
    -deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    -switching to the default theme to rule out any theme-specific problems.

    Thread Starter dcamin

    (@dcamin)

    Yes, those were among the first steps I tried. I have also downgraded to various versions (all the way back to 3.9.9) and upgraded PHP and MySQL on the server to current versions. The problem persists. The posts themselves are fine, it is only when they are displayed in a list, such as on the homepage or in a search results list. The first one in the list has the 1970 date but the others in the list are all fine.

    Dates look fine to me. The IBM memorabilia is cool.

    Nope…the first post on the home page has this URI:

    http://www.houseonrynkushill.com/1970/01/01/local-mcm-house-for-sale/

    and the first post in this category:

    http://www.houseonrynkushill.com/category/bedroom/

    has this URI:

    http://www.houseonrynkushill.com/1970/01/01/the-boys-room/

    1970/01/01 is the beginning of the Unix epoch, which makes me wonder if there is something strange with your server setup. Have you run a php_info test to see if anything weird comes up?

    Thread Starter dcamin

    (@dcamin)

    Kjodle – I have a test page to pull php_info from and I have checked it. Nothing seems out of the ordinary. (If you had more knowledge than me (which is limited on that topic) and wanted to look, I can point you to a page with it.) I’m running on a WIMP stack, no Linux. It’s really vexing.

    Amarjit – thanks for the comment on the memorabilia. It’s fun to have all of those historical things to share.

    Thread Starter dcamin

    (@dcamin)

    Any other ideas on this? This issue is still happening. Through some digging, I did notice that I had a few posts that appeared to have had bad links inserted into them – some sort of hack. I cleaned them up, tightened the security profile of the site up, and ensured MySQL and PHP are all up to date. I’ve effectively swapped out all of the WordPress core files (by downgrading\upgrading) and run the Sucuri plugins. No dice. Anecdotally, it seems that the issue is when the query is run, the first result is somehow messed up. I don’t know enough about the queries and query process to analyze it to figure it out, though.

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

The topic ‘First Post Date Always 1970’ is closed to new replies.