Constant WP_POST_REVISIONS already defined

Posted on December 11, 2016 at 11:46 am

If you get this warning message in your WordPress website:

Notice: Constant WP_POST_REVISIONS already defined in /var/www/wordpress/wp-config.php on line 95

Make sure that the definition of the constant WP_POST_REVISIONS is after WordPress has been loaded. Edit wp-config.php and make sure WP_POST_REVISIONS is defined after require_once(ABSPATH . ‘wp-settings.php’); like this:

/** Disable post revisions */
define('WP_POST_REVISIONS', false );
/** Disable plugin and theme editor */
define('DISALLOW_FILE_EDIT', true);
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

Other Posts

Updated Posts