• Resolved leighshepperson

    (@leighshepperson)


    I’m unsure if it’s my theme or the plugin, but after I installed it I’ve been getting this message

    Fatal error: Cannot redeclare tgmpa() (previously declared in /homepages/45/d665178449/htdocs/clickandbuilds/WriterintheDarkProductions/wp-content/plugins/sportspress/includes/libraries/class-tgm-plugin-activation.php:1927) in /homepages/45/d665178449/htdocs/clickandbuilds/WriterintheDarkProductions/wp-content/themes/alchem/inc/class-tgm-plugin-activation.php on line 1893

    I looked through the other topics that were answered about people who have a problem simialr. It seems they’re able to go into their code and change it. For some reason I can’t do that. The only page that shows up for me is the error page. Please help. This has me really worried!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @leighshepperson,

    The problem is with your theme which clearly has a search & replace error made by the theme developer (as you probably read in the other topics).

    To fix this, you either need to edit the code or replace the complete file. In your case, I suspect, replacing the complete file might be easiest, though you will need FTP access or another way to upload files to your server to do so.

    1. Download the current version of the library from https://tgmpluginactivation.com/download/
    2. Unzip the file and
    3. Copy/upload (via FTP) just the class-tgm-plugin-activation.php file to the /homepages/45/d665178449/htdocs/clickandbuilds/WriterintheDarkProductions/wp-content/themes/alchem/inc/ directory of your website, replacing the existing class-tgm-plugin-activation.php file.

    Once you’ve done that, all should be fine again.

    Thread Starter leighshepperson

    (@leighshepperson)

    Thank you for the help! I got it to work!

    I’m glad it’s resolved!

    Please, let us know if you need anything else.

    Kind Regards,
    -Roch

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pleas help! Fatal error showing.’ is closed to new replies.