• Resolved Svecc

    (@svecc)


    Hi,

    I’d like to install Jetpack locally, but I cannot activate it because of this error occurred.
    This is the whole message:

    Plugin could not be activated because it triggered a fatal error.
    Fatal error: Cannot redeclare class Social_Links in /wp-content/plugins/jetpack/modules/theme-tools/social-links.php on line 21

    Do you have any idea what should I do with it? Thanks in advance!

    https://wordpress.org/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    It seems that another plugin, or your theme, uses a class named Social_Links. Jetpack does too, and that creates the fatal error.

    We’ll get this fixed in the Jetpack 3.7, but until that happens, you can apply the changes described here to your own version of Jetpack:
    https://github.com/Automattic/jetpack/pull/2428/files

    Another alternative would be to find where else the Social_Links class is declared on your site, and rename all instances of that class to Svecc_Social_Links, for example.

    I hope this helps.

    Thread Starter Svecc

    (@svecc)

    Thank you for your prompt reply Jeremy! It worked out just fine! One of my widgets used the same class, so it was so easy to fix. Thanks again!

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

The topic ‘Fatal error: Cannot redeclare class Social_Links’ is closed to new replies.