Title: Fatal Error Activation &#8211; PHP7
Last modified: May 24, 2017

---

# Fatal Error Activation – PHP7

 *  Resolved [jochumr](https://wordpress.org/support/users/jochumr/)
 * (@jochumr)
 * [9 years ago](https://wordpress.org/support/topic/fatal-error-activation-php7/)
 * Hi
 * I get the following error on activation:
 * Fatal error: Cannot declare class OCDI_Plugin, because the name is already in
   use in
 * Any ideas?

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

 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years ago](https://wordpress.org/support/topic/fatal-error-activation-php7/#post-9165977)
 * Hi,
 * the “OCDI_Plugin” already exists in your WordPress installation, which is very
   strange… Do you maybe have 2 duplicates of the plugin installed?
 * Which theme are you using? Maybe the theme already has the OCDI plugin included
   in it?
 * Take care!
 *  Thread Starter [jochumr](https://wordpress.org/support/users/jochumr/)
 * (@jochumr)
 * [9 years ago](https://wordpress.org/support/topic/fatal-error-activation-php7/#post-9172640)
 * Hi
 * No, I don’t have duplicates installed. I can activate the plugin on individual
   sites (Multisite), but when I try to network activate it, the error happens…
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years ago](https://wordpress.org/support/topic/fatal-error-activation-php7/#post-9172863)
 * Hi,
 * I have never seen this issue before…
 * I have network activated OCDI plugin on my local dev WP multisite and it works
   ok. I just deactivated it and activated it again and all looks good.
 * I’m sorry, but I don’t know, what to advise you… It might be that your WP multisite
   is somehow at fault here?
 * Take care!
 *  Thread Starter [jochumr](https://wordpress.org/support/users/jochumr/)
 * (@jochumr)
 * [9 years ago](https://wordpress.org/support/topic/fatal-error-activation-php7/#post-9174649)
 * It is always the same error:
 * Fatal error: Cannot declare class OCDI_Plugin, because the name is already in
   use in /home/example/public_html/example.com/wp-content/plugins/one-click-demo-
   import/one-click-demo-import.php on line 21
 * There is no other copy of it, heeeeelp
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years ago](https://wordpress.org/support/topic/fatal-error-activation-php7/#post-9175341)
 * Hi,
 * I’m sorry, but I don’t have a straight answer/solution for you, since it’s working
   ok for my multisite… also I don’t know, why one instance of WP (even if it’s 
   a multisite) would trow this error, if it’s activating the plugin only once.
 * Could you try to quickly create a new WP multi site with 2 test sites and see
   if you get the same issue?
 * Can you tell me, if your setup is anything special? Custom settings? Server settings…
 * Take care!
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years ago](https://wordpress.org/support/topic/fatal-error-activation-php7/#post-9175344)
 * … also, which themes are you using on your “subsites”? Maybe one of them has 
   OCDI integrated in the theme? You can try to activate OCDI on every site (if 
   there are not too many) and see, if one of theme fails to do so? You did say 
   that you can activate the plugin on single site, right?
 * Take care!
 *  Thread Starter [jochumr](https://wordpress.org/support/users/jochumr/)
 * (@jochumr)
 * [9 years ago](https://wordpress.org/support/topic/fatal-error-activation-php7/#post-9175641)
 * Hi
 * I have confirmed that the ‘Werkstatt’ theme by Fuelthemes is using your plugin
   in their theme, so that must be what is causing the conflict….
 *  [Primoz Cigler](https://wordpress.org/support/users/cyman/)
 * (@cyman)
 * [9 years ago](https://wordpress.org/support/topic/fatal-error-activation-php7/#post-9175691)
 * I’ve expected this. We will try to contact them and explain it’s a bad practice,
   so they can fix it. However, I cannot promise they will act upon it.

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

The topic ‘Fatal Error Activation – PHP7’ is closed to new replies.

 * ![](https://ps.w.org/one-click-demo-import/assets/icon-256x256.png?rev=2506685)
 * [One Click Demo Import](https://wordpress.org/plugins/one-click-demo-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/one-click-demo-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/one-click-demo-import/)
 * [Active Topics](https://wordpress.org/support/plugin/one-click-demo-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/one-click-demo-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/one-click-demo-import/reviews/)

## Tags

 * [already](https://wordpress.org/support/topic-tag/already/)
 * [name](https://wordpress.org/support/topic-tag/name/)
 * [ocdi](https://wordpress.org/support/topic-tag/ocdi/)

 * 8 replies
 * 3 participants
 * Last reply from: [Primoz Cigler](https://wordpress.org/support/users/cyman/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/fatal-error-activation-php7/#post-9175691)
 * Status: resolved