Getting strtotime() Errors in WordPress When You Try to Write Pages?

I was getting some odd errors when I tried to write a new Page in WordPress (even though it endedup working). “Pages”, if you aren’t familiar with them, Pages are static pages within your site such as a Contact Me page or an Accessibility Statement. Anyhow, I discovered that if you try to create a new page — and if you're running PHP5 — you get this error:

Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in /home/username/public_html/wordpress/ wp-includes/template-functions-links.php on line 55

There’s a bug report on this issue and it’s already been fixed. Well, it's been fixed in the codebase and it’ll presumably make it into the next release of WordPress (1.51). But if you want the fix now, you can modify edit-page-form.php on your own; it’s just a two-line change and you can copy-n-paste the new lines from the changeset attached to that bug.

2 thoughts on “Getting strtotime() Errors in WordPress When You Try to Write Pages?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.