Support » Plugin: One Click Demo Import » Fatal Error Activation – PHP7

  • Resolved jochumr

    (@jochumr)


    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)
  • 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!

    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…

    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!

    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

    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!

    … 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!

    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….

    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.