• Resolved marieservais

    (@marieservais)


    Hi, I tried :
    – adding a define( ‘WP_POST_REVISIONS’, false ) in my wp-config.php file above the ABSPATH part;
    – using a plugin (disable-post-revision) allegedly tested with wordpress 5.0.1
    Nothing works, post revisions keep piling up in my database. Can anyone help me solve the problem ? Thanks.

    PS: I use WordPress 5.0.1 and Gutenberg.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m able to prevent post revisions from being stored in the database on WordPress 5.0.1. Can you confirm that your wp-config.php file is correctly uploaded to your web host?

    For help with the Disable Post Revision plugin, I recommend posting in the plugin’s support forums.

    Thread Starter marieservais

    (@marieservais)

    Thanks for your reply. Yes, my wp-config.php file is correctly uploaded and the define( ‘WP_POST_REVISIONS’, false ) placed before the ABSPATH part. Still, revisions keep appearing in the database. I really don’t understand.

    Could it have something to do with the php environment ? What’s your php version ?
    For me,
    – working with php versions 5.6, 7.0, 7.1: I have the above mentioned problem;
    – working with php versions 7.2, 7.3: I get the following warning on my webpage : “Use of undefined constant ‘WP_POST_REVISIONS’ – assumed ‘‘WP_POST_REVISIONS’’ (this will throw an Error in a future version of PHP) in /home/***/www/wp-config.php on line **”

    I’d really appreciate any help solving the problem and getting revisions disabled once and for all. Thanks in advance.

    Thread Starter marieservais

    (@marieservais)

    Actually, I have just found the solution in another, indirectly related support thread : the problem appears to have been caused by the quotes I used around ‘wp_post_revisions’ which happened to be curved quotes and not straight ones, and that hardly visible in my editor!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Post Revisions Not Working’ is closed to new replies.