WordPress.org

Ready to get started?Download WordPress

Forums

Submit for Review for Admin Users - Solution (4 posts)

  1. nowfals
    Member
    Posted 2 years ago #

    If you upgrade or install wordpress and find that you are no more able to add new posts or pages (no PUBLISH button), but are able to edit and update old posts here is what you do.

    Update these two files : -

    1) /wp-admin/includes/schema.php
    Replace '0000-00-00 00:00:00' with '1000-01-01 00:00:00'

    2) /wp-includes/post.php

    replace every '0000-00-00 00:00:00' with '1000-01-01 00:00:00'

    You will get your PUBLISH button again for all your new posts.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    No! Never, ever, edit core WordPress files!

  3. nowfals
    Member
    Posted 2 years ago #

    Most of the MySql hosted on the web do not set SQL-MODE set to Traditional (AKA Strict).

    In my case of 12+ hours ( finding no solution for STRICT Mode) of fixing this on a SQL-MODE Strict, it would never work. Hence you have to change the core files.

    All variations of installing a new version of wordpress, new database from scratch would also not work if the mode is STRICT.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    If you think there's an issue in core, submit a patch.

Topic Closed

This topic has been closed to new replies.

About this Topic