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
- NodeJs Request.Get Example with Error Handling
- NodeJs HTTPS.Get Example with Error Handling
- How to Find PHP.ini Location
- How to Enable Display of Errors in PHP
- Go One Directory Level Up/Back with Dirname() in PHP
- Save a String to File in Python
- Create a File Name with Current Date & Time in Python
- Get Current Script Path in Python
Updated Posts
- Compress Word, Excel and PowerPoint Office Documents
- Download OpenVPN 2.4.7 and TAP-Windows
- api-ms-win-crt-runtime-l1-1-0.dll is missing
- jQuery Get File Extension Before Uploading File
- Estimate Number of Visitors and Pageviews of any Website
- How to Configure OVH Email POP3 with Thunderbird
- Simple jQuery File Upload SimpleUpload.js
- Repeat AJAX GET Until a Specific Response is Met in jQuery