• I installed the plugin and immediately received an error:

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Cannot redeclare showmodule_shortcode() (previously declared in /public_html/wp-content/themes/divi_child_theme/functions.php:2746) in /public_html/wp-content/plugins/simple-divi-shortcode/simple_divi_shortcode.php on line 28

    • This topic was modified 5 years, 5 months ago by Wow Digital.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fabrice ESQUIROL

    (@creaweb2b)

    Hi, if you look at the error, you’ll see that you did a mistake. You previously installed the code from my blog inside functions.php and next you tried to install the plugin. The function name is the same, so you can’t redeclare the function showmodule. Plugin does the same job than showmodule function. So remove the function from functions.php and install and activate the module, or keep the function but don’t install the plugin.

    Thread Starter Wow Digital

    (@dmpp)

    No, I had never used any of your code – this was the first time we were trying something like this.

    Plugin Author Fabrice ESQUIROL

    (@creaweb2b)

    And so why can we read in error : Cannot redeclare showmodule_shortcode() (previously declared in /public_html/wp-content/themes/divi_child_theme/functions.php:2746)

    So the showmodule function is already declared inside functions.php

    Someone did add the function, the plugin can’t add it because it already exist…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin could not be activated because it triggered a fatal error.’ is closed to new replies.