Title: Enabling Post Revision causes Diff.php error output.
Last modified: August 20, 2016

---

# Enabling Post Revision causes Diff.php error output.

 *  [stuartshields](https://wordpress.org/support/users/stuartshields/)
 * (@stuartshields)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/enabling-post-revision-causes-diffphp-error-output/)
 * Hi all,
 * This could be a case of me using an old tag or something to do with my server.
 * However, I’ve enabled Post revision using the following code:
    `define('WP_POST_REVISIONS',
   true );`
 * When I go into the history of the Post (or Page), I get the following errors:
 * >  Deprecated: Assigning the return value of new by reference is deprecated in/
   > wp-includes/Text/Diff.php on line 380
   > Deprecated: Assigning the return value of new by reference is deprecated in/
   > wp-includes/Text/Diff.php on line 402
   > Deprecated: Assigning the return value of new by reference is deprecated in/
   > wp-includes/Text/Diff.php on line 424
   > Deprecated: Assigning the return value of new by reference is deprecated in/
   > wp-includes/Text/Diff.php on line 446
   > Deprecated: Assigning the return value of new by reference is deprecated in/
   > wp-includes/Text/Diff/Renderer.php on line 101
   > Deprecated: Assigning the return value of new by reference is deprecated in/
   > wp-includes/Text/Diff/Renderer.php on line 121
   > Deprecated: Assigning the return value of new by reference is deprecated in/
   > wp-includes/Text/Diff/Engine/native.php on line 107
   > Deprecated: Assigning the return value of new by reference is deprecated in/
   > wp-includes/Text/Diff/Engine/native.php on line 122
   > Deprecated: Assigning the return value of new by reference is deprecated in/
   > wp-includes/Text/Diff/Engine/native.php on line 124
   > Deprecated: Assigning the return value of new by reference is deprecated in/
   > wp-includes/Text/Diff/Engine/native.php on line 126
 * I’ve read somewhere that putting this into the code will remove the server from
   reporting these errors:
    `error_reporting(E_ALL & ~E_DEPRECATED);`
 * However I just want to make sure that is correct, also Post revision appears 
   to work even with the above error output.

The topic ‘Enabling Post Revision causes Diff.php error output.’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [stuartshields](https://wordpress.org/support/users/stuartshields/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/enabling-post-revision-causes-diffphp-error-output/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
