Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Gary Stewart
Gary Stewart
14,142 Points

How to fix wordpress debug php notice: undefined index 00 in locale.php?

I have debug logging turned on on my wordpress site and when looking at the file I see the following notice coming up a lot.

[31-Jan-2016 22:56:52 UTC] PHP Notice: Undefined index: 00 in /var/sites/b/mysite.com/public_html/wp-includes/locale.php on line 287

From what I can gather it is a call to a function which is trying to process a month with a value of 00 but I'm not sure.

I am wondering if anyone has had this problem or where I am best looking in trying to fix it as it is clogging up the file every day!

Thanks Gary

5 Answers

Check your post's published dates and see if any of them are corrupted, I've seen this issue before when after an update, somehow a post didn't have a date set.

Gary Stewart
Gary Stewart
14,142 Points

Hi Luke, thank you for your tip, unfortunately after looking at my database it seems that all of the dates within the posts table look correct.

Do you have any other ideas?

Thanks Gary

Do you have any more details as far as what pages this happens on ?

http://wordpress.stackexchange.com/questions/178145/error-in-wp-title-on-year-archive-undefined-index-00

The above article details it a little more, looks like it is a known wont-fix issue as it pertains to incorrect data. Do you by chance have a month that is outside of the 1-12 range? (ie 13)

Gary Stewart
Gary Stewart
14,142 Points

Unfortunately nothing specific, at the moment I have the easy pie coming soon plugin active and if I visit the site I still get the error (this happened before the plugin was active as well).

All of the dates within the posts table of my database have correct month values, everything is between 01 and 12, this is really bugging me :(

Have you disabled every plugin, switched to a fresh theme, or even tried setting up a boilerplate site with the theme/plugin setup to see if that changes?

Gary Stewart
Gary Stewart
14,142 Points

Unfortunately I can't for the moment as its a business site going live in a few days, are there any functions or such like that could be causing the problem if it isn't anything to do with post publish dates?

Thank you!

Gary Stewart
Gary Stewart
14,142 Points

Ok I had a try with some of the plugins and have found the culprit! It is the SEO Ultimate plugin that is causing this error! Thank you for your help I will get in touch with them!

Gary Stewart
Gary Stewart
14,142 Points

For future reference of those who find this issue with the SEO Ultimate plugin, the plugin (thankfully) features a reinstall function within the settings, a quick reinstall and all these PHP notices are no more!

Hope this helps someone else! Thanks!