Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk Installation Issue #825

Open
bib-1 opened this issue Jul 17, 2024 · 1 comment
Open

Bulk Installation Issue #825

bib-1 opened this issue Jul 17, 2024 · 1 comment

Comments

@bib-1
Copy link

bib-1 commented Jul 17, 2024

I am trying to install more than on plugins it gets stuck on this page for a long time.
image

It just installs one plugin at once even though via bulk installation. We need to redo this step again and again until everything is installed. Is there issue in the tgm or the way I've setup? Here's my setup in my child theme's function.php:

`<?php

require_once get_template_directory() . '/lib/class-tgm-plugin-activation.php';

add_action('tgmpa_register', 'ion_register_required_plugins');

function ion_register_required_plugins()
{
	$plugins = [
		[
			'name'     => 'Elementor',
			'slug'     => 'elementor',
			'required' => true,
		],
		[
			'name'     => 'Better Search Replace',
			'slug'     => 'better-search-replace',
			'required' => true,
		],
		[
			'name'     => 'Wordfence Security',
			'slug'     => 'wordfence',
			'required' => true,
		],
		[
			'name'     => 'WP Mail SMTP',
			'slug'     => 'wp-mail-smtp',
			'required' => true,
		],
		[
			'name'     => 'WP 2FA (by Melapress)',
			'slug'     => 'wp-2fa',
			'required' => true,
		],
		[
			'name'     => 'Yoast SEO',
			'slug'     => 'wordpress-seo',
			'required' => true,
		],
	];
	
	$config = [
		'id'           => 'ion',            // Unique ID for hashing notices for multiple instances of TGMPA.
		'default_path' => '',               // Default absolute path to bundled plugins.
		'menu'         => 'tgmpa-install-plugins', // Menu slug.
		'has_notices'  => true,             // Show admin notices or not.
		'dismissable'  => true,             // If false, a user cannot dismiss the nag message.
		'dismiss_msg'  => '',               // If 'dismissable' is false, this message will be output at top of nag.
		'is_automatic' => true,            // Automatically activate plugins after installation or not.
		'message'      => '',               // Message to output right before the plugins table.
	];
	
	tgmpa($plugins, $config);
}

?>
`

@drkdw
Copy link

drkdw commented Nov 5, 2024

Same issue and see this in error log:

PHP Fatal error:  Uncaught ArgumentCountError: 3 arguments are required, 2 given in ……/public_html/wp-admin/includes/class-bulk-upgrader-skin.php:208
Stack trace:

No idea on how to fix it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants