Title: [Plugin: Advanced Custom Fields] Fatal error: Cannot redeclare class
Last modified: August 20, 2016

---

# [Plugin: Advanced Custom Fields] Fatal error: Cannot redeclare class

 *  Resolved [nailliK](https://wordpress.org/support/users/naillik/)
 * (@naillik)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-fatal-error-cannot-redeclare-class/)
 * Fatal error: Cannot redeclare class acf_walker_taxonomy_field_checklist in /wp-
   content/plugins/advanced-custom-fields-taxonomy-field-add-on/taxonomy-field.php
   on line 513
 * [http://wordpress.org/extend/plugins/advanced-custom-fields/](http://wordpress.org/extend/plugins/advanced-custom-fields/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-fatal-error-cannot-redeclare-class/#post-3125501)
 * Until the developer fixes this, you can modify the file and wrap the class in
   a `class_exists()` condition. e.g.,
 *     ```
       if( !class_exists( 'acf_walker_taxonomy_field_checklist' ) )
       {
           class act_walker_taxonomy_field_checklist()
           {
               // ....
           }
       }
       ```
   
 *  Plugin Contributor [Elliot Condon](https://wordpress.org/support/users/elliotcondon/)
 * (@elliotcondon)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-fatal-error-cannot-redeclare-class/#post-3125573)
 * Hi guys,
 * This looks like an error with the advanced-custom-fields-taxonomy-field-add-on
   plugin. I would advise leaving a support question on his / hers plugin page
 * Thanks
 *  [Dave](https://wordpress.org/support/users/deeve007/)
 * (@deeve007)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-fatal-error-cannot-redeclare-class/#post-3125667)
 * Seems the developer tried fixing it using the wrapper:
 *     ```
       if( !class_exists( 'ACF_Walker_Taxonomy_Field_Checklist' ) ) :
       ....
       endif;
       ```
   
 * But this still causes an error sometimes. But when I changed to the following,
   error doesn’t occur:
 *     ```
       if( !class_exists( 'acf_walker_taxonomy_field_checklist' ) ) {
       ...
       }
       ```
   
 *  Thread Starter [nailliK](https://wordpress.org/support/users/naillik/)
 * (@naillik)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-fatal-error-cannot-redeclare-class/#post-3125679)
 * I tried changing if/endif to traditional {}, but I still receive the error on
   an irregular basis. Come on, ACF! Fix your plugin already!
 *  Thread Starter [nailliK](https://wordpress.org/support/users/naillik/)
 * (@naillik)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-fatal-error-cannot-redeclare-class/#post-3125680)
 * [@elliotcondon](https://wordpress.org/support/users/elliotcondon/): This error
   has been reported via github and they’re pointing us back to you.
 *  [Vincent Wasteels](https://wordpress.org/support/users/dttractrnet/)
 * (@dttractrnet)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-fatal-error-cannot-redeclare-class/#post-3125681)
 * I confirm [@deeve007](https://wordpress.org/support/users/deeve007/) fix works
   well.
 *  Plugin Contributor [Elliot Condon](https://wordpress.org/support/users/elliotcondon/)
 * (@elliotcondon)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-fatal-error-cannot-redeclare-class/#post-3125682)
 * Hi [@naillik](https://wordpress.org/support/users/naillik/)
 * Can you post a link to the thread where they link this back to me?
    I don’t see
   how this is an issue with ACF, the issue is with the taxonomy field add-on created
   by another developer.
 * P.S. v4.0.0 has it’s own taxonomy field built in!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: Advanced Custom Fields] Fatal error: Cannot redeclare class’
is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [Elliot Condon](https://wordpress.org/support/users/elliotcondon/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-fatal-error-cannot-redeclare-class/#post-3125682)
 * Status: resolved