Support » How-To and Troubleshooting » Post date incorrect: Year showing as 0000

Post date incorrect: Year showing as 0000

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hop into a shell and identify your current version of php. I think
    php –version should do it. Note the version and then see if there are any known bug reports in php relative to that issue in that version.

    This may be relative information. ( PPC or not, I think it’s possible that it may be a php related issue ).


    That does appear to be the issue! My PHP version (5.2.10) is the version listed in that link.
    I guess I’ll have to upgrade PHP. I’ll be switching to snow leopard soon anyway.



    I have the same problem on one of my blogs, but don’t understand how to fix it. I’ve used the blog for a few years with no problem and all of a sudden all the dates crapped out, with no changes.

    Is it just an issue of updating the PHP? If so, why did the problem happen with no changes to the blog?


    Just like Alison I’d like to know how do I fix this. Upgrading to 10.6 is not an option because I’m using an old PPC mac as my server.
    Is there an upgraded PHP I can download and install that will play nice with what’s already installed (in case Apple releases any further 10.5.x upgrades or security fixes or whatever)?



    name99, I found out elsewhere that upgrading to 5.2.11 will solve the problem.

    Anyway, instead of doing that, we just switched everything to a new Mac Mini (Intel) and are using 5.3. That fixed it, of course, but I can’t believe this hasn’t been fixed. Huge problem.

    How do I upgrade to 5.2.11?

    I went to http://www.entropy.ch/software/macosx/php/
    downloaded the 5.2.30 installer and ran it. The install apparently went fine (the phpinfo test page looks as expected), but when I go to my wordpress page I get a blank white page with big letters saying “Error establishing a database connection”.

    Going to php.net I see that there is a 5.2.11 tarball. Is installing as simple as a
    make clean
    make install
    ? Will that give me something that both hooks up to apache2 and can communicate with mysql (unlike, apparently, the 5.3.0 install)?

    Or is there some trivial thing I need to do to get Mark Liyanage’s php to play nice with wordpress?



    I’m on a ppc, running 10.5.8, having Apache2, and PHP Version 5.2.10.

    I’m having the same year 0000 problem, and the Entropy link above is fine to know, but neither PHP Entropy PHP 5.3.0-3.pkg nor Entropy PHP 5.2.9-7.pkg resulted in a successfull installation:

    The Installer application ended the installation wit hthis message:

    “Install Failed
    The following install step failed: run postupgrade script for entropy-php. Contact the software manufacturer for assistance.”

    It is quite borin to see that all the files seem to have been installed properly though, and that these kept my Apache from restarting properly. Apache choked on the php load module that the developer thought to put into an awkward location.

    The idea described on th webpage tells to unload the actual php module in the httpd.conf before installation. That’s because he loads his php with a similar line, but in a file apart.

    That file he has put into his own installation folder /usr/local/php5/


    he symlinks to that file trough the other loadmodules folder of Apache (/etc/apache2/other/

    First of all I don’t like that style of putting things in own places and adding symlinks etc,
    second of all, he’s put redundant stuff into the file that apache would find in php5.conf, in the same /etc/apache2/other/. I don’t see the logic…

    So, it hasn’t helped me a bit neither, and I’m allergic to such ways of developing without proper info, and the arrogance he has in his writing.

    By the way the proper way would be:

    (1) unload the php module you had active in httpd.conf, by recommenting the line

    LoadModule php5_module libexec/apache2/libphp5.so

    (add a “#” in front of it)

    (2) end apache by disabling Web Sharing in the System Preferences/Sharing pane

    (3) install his package

    (4) Re-enable Apache by re-enabling Web Sharing in System Preferences/Sharing

    End of the story:
    If you have the same problems, don’t hope on an easy workaround here…



    in the meantime I have a small workaround as the function y in php works properly:

    I changed the general settings of my blog to have as date stamp the custom setting:

    F d, 20y

    in this way it returns the year as 2009, composed by the 20 and the 09 as output…

    If you ever started before 2000, this is not really a proper option.

    Anyone got a simply solution otherwise??

    Any sign of a resolution to this basic issue?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Post date incorrect: Year showing as 0000’ is closed to new replies.