• Resolved cheddargeorge

    (@cheddargeorge)


    Hi,

    I just installed a theme called “Responsive” (Version: 3.14), and it says to install a bunch of plugins, and lists them, etc.

    However, when I go to do this I end up with errors, and the server log shows why, per below:

    PHP Fatal error: Uncaught Error: Class 'TGM_Bulk_Installer' not found in /var/www/mysite/public_html/wp-content/themes/responsive/core/includes/classes/class-tgm-plugin-activation.php:1527\nStack trace:\n#0 /var/www/mysite/public_html/wp-content/themes/responsive/core/includes/classes/class-tgm-plugin-activation.php(362): TGMPA_List_Table->process_bulk_actions()\n#1 /var/www/mysite/public_html/wp-includes/class-wp-hook.php(286): TGM_Plugin_Activation->install_plugins_page('')\n#2 /var/www/mysite/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)\n#3 /var/www/mysite/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)\n#4 /var/www/mysite/public_html/wp-admin/admin.php(253): do_action('appearance_page...')\n#5 /var/www/mysite/public_html/wp-admin/themes.php(10): require_once('/var/www/mysite/p...')\n#6 {main}\n thrown in /var/www/mysite/public_html/wp-content/themes/responsive/core/includes/classes/class-tgm-plugin-activation.php on line 1527, referer: https://mysite.xxx/wp-admin/themes.php?page=install-responsive-addons

    Anyone have any idea what I need to do to fix this please? Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cheddargeorge

    (@cheddargeorge)

    FYI: The code at 1527 in the script referred to is as follows:

    /** Create a new instance of TGM_Bulk_Installer */
    $installer = new TGM_Bulk_Installer($skin = new TGM_Bulk_Installer_Skin(compact('url', 'nonce', 'names')));
    Thread Starter cheddargeorge

    (@cheddargeorge)

    Okay, so after much hair-pulling and lack of responses from anywhere, I finally figured out that I could just copy a particular file from another theme over the top of one in the Responsive theme and it worked just fine.

    So, the file which I needed to copy (because presumably the one bundled with the most recent version of Responsive is out of date) is:

    class-tgm-plugin-activation.php

    So, to figure this out, and to locate the relevant file(s), I just grepped for “TGMPA”, as follows in my web directories:

    grep -rl "TGMPA" /var/www/*

    … which, fortunately, found several other themes using the same bulk-installer method, and listed the location in /wp-content/themes/ where class-tgm-plugin-activation.php was being used.

    Checking a couple of files it was apparent that some were newer than others, and the file size considerably different (the Responsive one is smaller). So, I made a backup of the class-tgm-plugin-activation.php under the Responsive theme and copied one from the shoppingcart theme, which I happened to have installed, over the top of it. Voila!

    I imagine if one doesn’t a new copy locally then one could just download it from the TGMPA website (https://tgmpluginactivation.com/) and copy that file over.

    Hope that my solution might help some other struggling soul at some point.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught Error: Class ‘TGM_Bulk_Installer’’ is closed to new replies.