Revision Control
Complains that WP_POST_REVISIONS is defined and cannot operate (7 posts)

  1. db0
    Posted 4 years ago #

    I've had this message for a while (I think since version 3) and today I decided to investigate. I checked my wp_config.php and WP_POST_REVISIONS was not defined. However I know it's enabled by default, so I decided to set it to false. No luck either.

    So it seems no matter what I do, this plugin refuses to operate.


  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Perhaps WP_POST_REVISIONS has been defined by your theme. Try looking in the theme's functions.php file. The plugin has worked without any problems for me on multiple WP 3.x sites.

  3. db0
    Posted 4 years ago #

    Unfortunately, I don't seem to have a functions.php file in my theme.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Really? That's not impossible but it's pretty unusual. Have you looked through all of your other theme files?

  5. db0
    Posted 4 years ago #

    Nah, I need to get home where I have shell access in order to run a grep. I'll do that later.

  6. mediocrefred
    Posted 4 years ago #

    I have the same issue now. Did you resolve yours and if so, how?


  7. mediocrefred
    Posted 4 years ago #

    Found the issue and fixed it. For anybody else that encounters a similar issue and does not want to (or cannot afford to) take the site offline and disable all the plugins to test, here's what I did:

    1. After a fair amount of research, figured out that the attribute that determines whether the "Revisions" Meta Box shows in Screen Options is WP_POST_REVISIONS. This is set to "True" by default but, can be overridden in wp_config.php. More info here.

    2. Downloaded via FTP a copy of my entire web site. Using a text editor that can do a full-text search of *all* files (I used UltraEdit), I searched for WP_POST_REVISIONS.

    3. Found that it was being set to FALSE by a plugin - "postie" - on line 3 of postie-functions.php.

    4. Edited that file and commented out the line. Made a backup on my local system where I backup the few plugin files that I have had to override/hack so I can reapply my hacks after updating the plugin if needed. The first few lines of the file should look like this:

    $revisions= WP_POST_REVISIONS;
    //define('WP_POST_REVISIONS', false);     <<-- Commented this line
    //define('POSTIE_DEBUG', true);
    if (!ini_get('safe_mode')) {

    And voila... The Revisions meta box is visible again for posts and pages.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Revision Control
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic