Support » Plugin: Newsletter » Fatal error Cannot redeclare tgmpa_load_bulk_installer()

  • I can’t acceed into my All entries in cpanel. The following error appears:

    Fatal error: Cannot redeclare tgmpa_load_bulk_installer() (previously declared in /home1/molowny/public_html/wp-content/plugins/newsletter/includes/class-tgm-plugin-activation.php:3154) in /home1/molowny/public_html/wp-content/themes/converio/functions/tgm-plugin-activation/class-tgm-plugin-activation.php on line 2204

    I eliminated the Newsletter plugin but error is still going.

Viewing 8 replies - 1 through 8 (of 8 total)
  • That happened to me too. I deleted the plugin from my admin panel, but it didn’t work. I then deleted the whole Newsletter file from my file manager in cpanel. My site is now back up.

    It’s too bad, I liked the Newsletter plugin. I hope they fix it soon as it was a great plugin.

    Hi James! Thank you for yor response. I tried to do what you said but in my cpanl the plugin Newsletter wasn’t anymore and the problem persist. 🙁

    Oh, I am so sorry. I initially thought I was hacked because I couldn’t log in at all.

    I went to:

    ome1/molowny/public_html/wp-content/plugins

    in my directory. Newsletter and all the other plugins pop up in the right part of the directory. I deleted the file Newsletter and then deleted all my cache, cookies and data in my browser and it started working again.

    Sounds like you did the same thing. Hopefully you get it up and running soon my friend!

    it’s happened to me too.. my website sarahhospital.com
    i got:
    “Fatal error: Cannot redeclare tgmpa() (previously declared in D:\xampp\htdocs\rs-sarah\wp-content\plugins\newsletter\includes\class-tgm-plugin-activation.php:2126)”

    I can’t login to dashboard. I can’t login to cpanel to.

    Please Developer Tea, resolved this issue. Thanks a lot..

    It also conflicts happens with other themes. In my case solved it modifying the parent theme, but it would maybe be nicer if you could prefix that tgmpa() function with a unique namespace?

    is there anyway you can let me know how you modified the parent theme? I really liked the plugin and would like to use it again if I could figure out how to fix it.

    @molowny81‘s issue and @fahmineo‘s issue are related, but not the same, though the solution is.

    In @molowny81‘s case, the theme Converio uses a **very old**, out of date version of the external library TGMPA with known security vulnerabilities. The theme should really release an update which includes the latest version.

    In @fahmineo‘s case, the theme author has made a typo, or rather, they did a careless manual search and replace causing the error.

    For both cases, here is a simple solution:

    1. Download the current version of the library from http://tgmpluginactivation.com/download/ (for your purposes, just click on the “Zipball” link below the form)
    2. Unzip the file and
    3. Copy/upload (via FTP) just the class-tgm-plugin-activation.php file to the theme directory which is mentioned in the error message, replacing the existing class-tgm-plugin-activation.php file.

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

    P.S.: Oh and please give the author(s) of the theme you use a bollocking and tell them that if they download a fresh copy of TGMPA using the Custom TGMPA Generator, it will serve them with an up-to-date customized download of TGMPA which will automagically have done the search & replace (required by wp.org) in the correct way. Then they should release a new version of their theme with the updated library in it.

    • This reply was modified 2 years, 7 months ago by  jrf.

    @joseluiscruz

    it would maybe be nicer if you could prefix that tgmpa() function with a unique namespace

    There is a good reason not to do this. If people use TGMPA correctly, it will gather all the plugin requirements of both the theme as well as plugins onto one page for the admin to install in one go.
    If things would be prefixed/namespaced, each theme/plugin would create their own page for this which is bad for a usability perspective and confusing to the admin.

    • This reply was modified 2 years, 7 months ago by  jrf.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error Cannot redeclare tgmpa_load_bulk_installer()’ is closed to new replies.